>I may be mixing things up since I haven't done any reports in a very long time. Anyway, if possible use strtofile() and pictureval instead of setting picture to the name of the picture, Or is that only on forms, I can't remember?
Hi Tore,
The goal here is to keep the layout (FRX) file without changes as we have lots of clients with various layouts. Here is the whole problem described in details - I am wondering if someone can reproduce it:
SET REPORTBEHAVIOR 80
Code to print the report (called from a timer) in a scan loop:
thisform.log(" Sending data to graphic layout report.", program(), 5)
clear resources
cSigFile = ''
report form (m.lcForm) to printer noconsole nowait
cSigFile = ''
In the report we have the variable defined called cSigFile with the value to store cSigFile (the variable name itself) and initial value
goSig.GetSigFile(SigId)
The picture is using the same expression goSig.GetSigFile(sigID) although I tried using cSigFile variable also with the same result. The report uses 3 same pictures with the same expression. The Print When condition for the top picture is set to be not empty(cSigFile) and for the other two check SigID field not equal 0.
I am printing 2 records - one has SigID and SigData, the other has SigID = 0 and no SigData. The signature is printed for both records where I have Print When condition involving cSigFile variable.
The printing is done from a form with a timer. I am using FoxIT PDF writer just because I don't have other printers installed locally. In both cases I have to supply file name and the file is immediately opens in the viewer and I can see that signature in both files.
I am not sure what can I try - it looks to me a bug in VFP Report Writer - I am using VFP9 with all latest hotfixes.
If it's not broken, fix it until it is.
My Blog