Win32api shellexecute Bshow

J

Josh

Hi All,

I am trying to print a pdf file from python using the Win32api
shellexecute method and am having a problem, or perhaps just a
misunderstanding, with the bshow parameter. Am I correct to assume that
if the bshow parm is set to 0, that the program will not show when
launched? e.g.:

win32api.ShellExecute (0, "print", "test.pdf", None, ".", 0)

When this statment is executed, Adobe Acrobat is launched and made
visible to the user, however the actual PDF is hidden. I do not wish
for Acrobat to be seen either.

Any thoughts?

Thanks

Josh
 
I

infidel

Acrobat is stupid like this. I haven't yet found a way to prevent it
from launching a new window, so I gave up and went with GhostScript and
GSPrint instead. Works fabulously.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top