Link to home
Start Free TrialLog in
Avatar of dzumwalt
dzumwalt

asked on

Getting "File Too Large" or "Out Of Memory" when reading 75 k file made with SaveImage and vsPrinter

I am trying to save an image of the output made with vsPrinter version 3.0

I am executing a command like below:

SavePicture frmReportPreview.vspReportPreview.Picture, szCurrentFile

This command produces a the attached file. As you can see, the file is only 75 k, but the dimensions are huge. As a result, there are many programs that cannot show the file including the win7 image preview.

Can anybody help with how to get this file to be a more manageable height and width? Page-1.jpg
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dzumwalt
dzumwalt

ASKER

Interesting. I changed the extension to wmf. Seemed to work a little better on a win7 computer. Executing a context menu "open" caused it to open in paint and I could then print it.

Is there any way you know of to output a smaller file .... or to actually output a jpg?
No, I've never used that program.  That is not a large file.  Also, the docs on the web for "vsPrinter control" don't show anything about an image format, just HTML and RTF.