cancel
Showing results for 
Search instead for 
Did you mean: 

automatic printing without user interaction

Former Member
0 Kudos

Hi,

i have problems with printing my documents automatically. After updating a document the print should start automatically.

if i open the print dialog by following code the application stops and i have to press the print or cancel button manually.

moSBOApplication.ActivateMenuItem ("520") '"520"

I also tried the following lines without success:

SendKeys "^p", false

SendKeys "%d", False

Has anybody an idea for automatic printing without user interaction ? Its really important for me.

Thanks for help.

Markus

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Juha,

yes but it doesn't seem to work.

after executing moSBOApplication.ActivateMenuItem("520") the system is waiting for closing the printing dialog.

My code looks like that:

moSBOApplication.ActivateMenuItem("520")

sendkeys "",false

sendkeys "",false

the second line will not be interpreted until the dialog is closed !

Any idea ?

Markus

Former Member
0 Kudos

Hi,

i solved it on my own:

in the item event i activate the printing dialog:

.activateMenuItem("520")

and in the menu event i catch it:

If pVal.MenuUID = "520" Then

'press Button Drucken

SendKeys "%d", False

End If

what a brain

thanks for help

Former Member
0 Kudos

Have you searched the forum?

E.g.

And

HTH

Juha