Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating an image file from a report
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01577617
Message ID:
01577735
Views:
73
>>>>>>>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+

Google for VFPX Downloads GdiPlusX
Download the files, and then apply the techniques that you'll find in this link:
http://weblogs.foxite.com/vfpimaging/2008/05/11/crop-images-with-gdiplusx/
Previous
Reply
Map
View

Click here to load this message in the networking platform