>>>>>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.