Losing coloured text with WriteDoc.

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Losing coloured text with WriteDoc.

Postby davem » Fri Mar 24, 2006 5:02 pm

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
davem
 
Posts: 18
Joined: Fri Mar 24, 2006 12:52 pm

Postby IDEAL Software Support » Mon Mar 27, 2006 6:43 pm

From the technical point of view, there is no reason for any loss of colors.

Are you sure that your variables named COLOR-TABLE:GET-RGB-VALUE(2). and COLOR-TABLE:GET-RGB-VALUE(20). have correct values?

This is the only idea we have.

If your values are correct, we need a working and running EXE by e-mail which makes the problem reproduceable. We will then debug it. However, please note that we will charge for our working time if this is not a problem related to a bug in VPE.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm

Postby davem » Tue Mar 28, 2006 8:58 am

Hi Thorsten,

You're spot on!!!

The COLOR-TABLE statement was not returning the correct values under the APPSERVER environment. It's SOOO obvious when you know the anwser :)

Many thanks,

Dave
davem
 
Posts: 18
Joined: Fri Mar 24, 2006 12:52 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 65 guests