Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using shellexec to print from Adobe
Message
From
28/04/2006 10:02:09
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01117459
Message ID:
01117494
Views:
27
Borislav - It still open acrobat although everything is dimmed out and the screen where the pdf is blank. It also doesn't let me print the second pdf only the first pdf.

Any other ideas on printing multiple pdf without user interface?

Thanks
Gaylen

>Last parameter of ShellExecute is ShowWindow, you could use
>#define SW_HIDE 0
>to hide the window:
>
>#define SW_HIDE 0
>.....
>=ShellExecute(0, "print",lcfilename,"","",SW_HIDE)
>
>
>>I am trying to use shellexec to print from Adobe without opening Adobe. The names of the file are in a table. The code is as follows:
>>
>>
>>
>>SELECT filenames
>>
>>SCAN
>>lcfilename =  ALLTRIM(filenames.names)
>>
>>	 DECLARE Integer FindWindow In win32api String cnull, String cwinname
>>	 DECLARE Integer ShellExecute In shell32.Dll ;
>>	  integer nWinHandle, ;
>>	  string cOperation, ;
>>	  string cFilename, ;
>>	  string cParameters, ;
>>	  string cDirectory, ;
>>	  integer nShowWindow
>>	=ShellExecute(0, "print",lcfilename,"","",1)
>>
>>ENDSCAN
>>
>>
>>I can print the first pdf's and nothing else, and Adobe open and is shown on the screen. Is there any way I can suppress Adobe from showing and print all the files not just the first.
>>
>>Thanks
>>Gaylen
Previous
Reply
Map
View

Click here to load this message in the networking platform