Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code in report
Message
De
18/02/2008 14:17:41
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01293004
Message ID:
01293526
Vues:
30
>>>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.
>
>Hi Greg,
>
>PMFJI, but what if you need to print multiple invoices in one report? How would you use your technique then?
>
>Thanks in advance.

Not sure. Never thought about it. I guess you would need to call a routine generate the bitmaps by placing the routine call in the image control's "Print When" that generate the next bitmap before the image attempts to display it on the report. But, this is only theory.
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform