DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Selection of a network printer

I have been trying to use picprint with the PrintName and PrintDevice variables to select a specific printer for printing out a report.  No matter what sort of combinations I have tried the report is always printed to the default printer.
 
Oddly, when I used the msgbox to show what PrintName held, it showed another keyword 'winspool' that is not on the enumerated list of valid keywords. 
 
Can someone give me an example of how to setup a print to a printer other than the default printer.
 
Jim West
Summitek
0 Kudos
Message 1 of 3
(3,314 Views)
Hi Jim,

when changing the printer in an Autosequence you have to set the variable 'printname'. This variable contains a free text (string). Because the content of the variable depends on many boundary conditions (Windows version, local or network printer) determine the text by following ways:

After DIAdem is started the variable is occupied with the Windows standard printer.
Do you have selected another printer interactive the variable contains after printing the text for the selected printer.
A respective printer change can be done now in Autosequences.

Example:
1. After the start of DIAdem: 'winspool,\\NI\LJ5P(1OGA1),Ne02:'
2. After the change to another printer: 'winspool,\\NI\STYLUS(1OGA2),FILE:'
3. Change to the standard printer in a Autosequence
     printname = "winspool,\\NI\STYLUS(1OGA2),FILE:"
     Call PicPrint("WinPrint")

Stefan


0 Kudos
Message 2 of 3
(3,301 Views)
Stefan,
 
Thanks for the help... as with most bugs it was programmer error.  I had a typo in the printer name that I was supplying.
 
Jim
0 Kudos
Message 3 of 3
(3,289 Views)