Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating an image file from a report
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01577617
Message ID:
01577803
Vues:
55
>>>>>>>I have a report which generates a label complete with name, address and a barcode - I want to create a jpg image of this report preferably being able at the same time to set size parameter on the image - how do I do this
>>>>>>
>>>>>>Check out FoxyPreviewer, which contains much more than you would guess from its name.
>>>>>
>>>>>I think there must be an easier way I have had a look
>>>>>
>>>>>Using dibap32 is the way to go I think
>>>>
>>>>All I know, is that with FoxyPreviewer it's only a few lines of code. I don't use this option myself, but I assume these lines would be sufficient:
>>>>DO LOCFILE("FoxyPreviewer.App")
>>>>REPORT FORM yourform.frx OBJECT TYPE 16 TO FILE "yourfile.jpg" noconsole
>>>
>>>Foxypreviwer works greatr but my report look lost in the middle of a large white area - is there anyway i can control the size
>>
>>You can change the paper size from your FRX, that way your label will appear according to the page size.
>>Check in VFP9 HELP for the accepted configurations in the EXPR field of the FRX, yopu can set all of them manually
>>
>>Another easy option is to capture the whole image, and use GDI+ to crop the portion that you need.
>
>Thanks for the help and suggestions - where do I find GDI+

Just to add, you mentioned that the report contains barcodes, for this you can use FoxBarcode class that is fully compatible with FoxyPreviewer.

-- FoxBarcode --
http://vfpx.codeplex.com/wikipage?title=FoxBarcode
Luis María Guayán
Tucumán, Argentina
________________________________
SysOp de www.PortalFox.com
Nada corre como un zorro
________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform