
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