Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code in report
Message
From
18/02/2008 13:51:48
 
 
To
18/02/2008 10:49:30
Raza Malik
Universal Accounting Software
Edgewater, New Jersey, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01293004
Message ID:
01293504
Views:
31
>Hi Greg!
>
>Naomi is right. It works fine while printing one invoice at a time. How can I get different signature when printing multiple invoices.

The method we are using is to store the signature (as returned from signature object) in a memo field with the invoice header data. Then as you walk through the list of invoices, call the routine I provided earlier. It extracts the signature, reformats it to a BMP, writes to a standard file (call it Signature.bmp). The invoice would then have a image control that always looks for a bitmap file called Signature.BMP. Be sure to execute CLEAR RESOURCES Signature.Bmp either before or after recreating the bitmap. Otherwise FoxPro tends to cache the bitmap used into memory, and then the report use the cached version and not the new one on disk.

I created a generic routine called "CreateSignBmp" and pass it the text version of the signature. This help because the routine is not directly tied to a single table.

Hope this helps.
Greg Reichert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform