Printing via script

Hi,

I have made a little script that provides a list of printer locations to the user, the user can choose one of them and the script will print the report to that printer.

But I am stuck in the last part… I have the printername in a variable but can’t pass it to the printout option.

I tried:

Message="("+chr(34)+message+chr(34)+")"
Msgbox Message, 64
doc.printout Message

The Msgbox shows: (“HP400 FINDTTC”)
But the report is printed to the standard printer.

Anyone who can help me with this last step?

Regards,

Eilko


Applicatiebeheer Financiele Systemen Tel. +31-53 - 4842403 Dagblad Tubantia / Twentsche Courant Fax. +31-53 - 4842505 Enschede, the Netherlands


Listserv Archives (BOB member since 2002-06-25)