Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conversion of tricky .FRX to .JPG Image
Message
From
11/10/2005 17:01:05
 
 
To
08/10/2005 14:49:29
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01057331
Message ID:
01058090
Views:
44
>>I've got some VFP6 SP5 single-page reports that have been programmatically hacked to insert bitmap images. These reports preview and print perfectly in native VFP6.
>>
>>I'd like to be able to output these reports as .JPG images.
>>
>>I already own XFRX (current version) which mostly does the job, except that it crashes on W2K and the generated image files are not rendered correctly enough.
>>
>>I tried the current FRX2Any evaluation, it crashes after creating a bunch of extra .JPG files, none of which is anywhere near correct.
>>
>>I've also downloaded the MERE evaluation, but it looks like it might be using a hammer to kill a fly and it's not inexpensive for the limited task I want to do.
>>
>>Does anyone know of any other tools or techniques that could be used to render .FRX reports into .JPG images accurately?
>
>How about output to a PostScript driver and then using GhostScript to convert .ps to .jpg? GS is amazingly fast - I was really surprised when I tried it. Though, I wasn't printing to a .ps, I was generating a .ps file (which is also fast when done in VFP), simply because I needed a special image generated on-the-fly.

I've now tried this. The problem is exactly the same as with XFRX and FRX2Any. Each report page includes embedded .BMPs with .MSK files that aren't handled correctly.

I thought that by going the .PS/GhostScript route it would solve the problem, it should simply be redirecting the output that would have gone to a printer, to a .PS file, then converted. But somehow, that is not the case. It's strange that the problem is the same. I'm wondering if it's something simple such as the .BMP and .MSK files have to be in the same folder as the .FRX when it's printed, or what. Especially strange since native VFP6 Preview or Print always works 100% correctly.

Sidebar: the quality of the .JPGs generated by GhostScript via PostScript are not as good as the GDIPlus-generated output of XFRX/FRX2Any, and typical file sizes are 4x as large.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform