I have a small test program that puts "hello world!" in a vpe document with the background & foreground colours set, it then exports this via WriteDoc() to a pdf(PictureExportPage can be used too). When the program runs as a background service(similar to a windows service but through a Progress Application Server), I lose all the colour settings for the text(pictures are ok). If the same program is run from a standard logged in user, the exported document is fine. The wierd thing is, the demo banner appear in colour .
It's writting in Progress 4GL but it's easy to see what's going on.
define variable lv-vpe-hdl as com-handle no-undo.
create "VPEControl.VPEControl.35" lv-vpe-hdl.
lv-vpe-hdl:OpenDoc().
lv-vpe-hdl:TransparentMode = 0.
lv-vpe-hdl:BkgColor = COLOR-TABLE:GET-RGB-VALUE(2).
lv-vpe-hdl:TextColor = COLOR-TABLE:GET-RGB-VALUE(20).
lv-vpe-hdl:Write(100,100,-1,-1, "Hello World!").
lv-vpe-hdl:WriteDoc("c:\temp\vpecolourtest.pdf").
lv-vpe-hdl:CloseDoc().
release object lv-vpe-hdl.
Any ideas please ?
I'm using VPE Verison 3.50 Professional Edition (tested against 3.6r4 too).
Thanks,
David Morrison
Shuttleworth Business Systems