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?
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.