Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to convert a Report (or DOC-file) to an JPG image?

Status
Not open for further replies.

surotkin

Programmer
Dec 10, 2003
103
CA
Hello everyone,
does anybody know how to convert a Report (or DOC-file) to an JPG image?

Thanks.
surotkin
 
Not sure about jpeg, but you can do a screen print, paste into MSPaint, and save as a bitmap (.bmp), which should open in any viewer that supports jpegs...

I have great faith in fools; self-confidence my friends call it.
-Poe
 
Hi genomon,
thanks for reply.
However, I need to automate it (write code)?

I am looking for API.

surotkin
 
By using Ghostscript (and its companion GSView) you should be able to print to a JPG file.
I've not tried it, but the first task would be to download the latest GPL Ghostscript and GSView and install it on your PC.
You would then need to install a postscript printer driver on port FILE: on your PC (or a specified filename on disk, so you don't have to ask the user what name they typed in).

The code would then have to:
1. Open the Postscript file on disk in GSView
2. Save it to another location using the JPG output viewer.

With Access reports, you can use the built in Snapshot Viewer facility. This is an idea similar to PDF, but only for Access reports. The viewer is on the Office CD or freely downloadable from the Microsoft website, but it won't work for Word documents.

John
 
Hi jrbarnett,
thanks for your response.

I did my own research as well and I found another way (I believe easier way, though it is not free) to convert DOC-file into JPEG-image.

The software name is “docPrint” ( You can run it as a command line (use SHELL function) or use SDK to include into your application.

Thanks.
surotkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top