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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

to print Adobe Files

Status
Not open for further replies.

Z1

Programmer
May 8, 2000
14
US
Hi guys,

I have thousands of PDF images to print. How can I print the images from VFP Prompt ?

Thanks a Lot
Z1
 
Z1

I have thousands of PDF images to print.

Would it not be better to create a mini application and print them under program control, rather than from the VFP pronpt?

Please advise

Chris :)
 
Dear Chris,

My objective is to print PDFs. Thats all. How I will do it from the application?

I able to open the PDF Files from the application but to print I have to use Adobe Print Menu. That is my problem. I donot want to use Adobe Print option. Is there any command from which I can print the Adobe Files directly to the printer?

Thanks

Z1
 
Hi Z1

PlanetPDF.com has loads of PDF stuff, including a 'tips' section. Tip no 37 covers batch printing of PDFs which may help.

We're going have to solve this problem for an upcoming project, so if you've got any tips when you've solved your problem we'd be glad to hear them

Good luck

Glen
 
Z1

If the suggestion by Glen doesn't work for you, try the following:-

Create a table of path\filenames of the PDFs you want to print, using a concatenation of values returned by CURDIR() and ADIR().

Set the windows default printer either through Windows or programatically, (see HOWTO: Change the default Windows printer from FoxPro, Q103645 at MSDN).

Retrieve the path\filename of the application associated with PDFs through a WinAPI call to the Registry.

This will then enable you to print the PDFs through SCAN .. ENDS using a WinAPI call such as ShellExecute(), with the path\filename being the lpOperation parameter and TABLE.filename being the lpFile parameter.

HTH

Chris :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top