Éric Moreau
asked on
Automatically print documents
I have an application (written in VB5) that needs to print documents without user intervention.
I have some problems with two applications: Project and PowerPoint. They always pop the printer dialog box.
How can I respond automatically to them (I only want to press Enter).
Thanks.
I have some problems with two applications: Project and PowerPoint. They always pop the printer dialog box.
How can I respond automatically to them (I only want to press Enter).
Thanks.
ASKER
I have tried it and it doesn't always work. I start multiple impression in a short time so I can't be sure which window will receive the key.
An other solution is the SendMessage API function but I don't have the handle to the printer dialog box!
Sorry, try again!!!
An other solution is the SendMessage API function but I don't have the handle to the printer dialog box!
Sorry, try again!!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I had to give some parameters that have default value. I think that Microsoft and me do not have the same signification of "Default value".
Thanks.
Thanks.
have you tried sending an Enter with SendKeys?
Bye