L
lindak
Hi there
I've successfully used the printer control code in a word macro to print
particular sections of a document in duplex mode. Its been working for a
year or 2 without a problem.
My question is this - our organisation is rolling out new pcs running windows
XP (previously used Windows 2000). For XP users the macro fails, while it
still works for people who still have Windows 2000. I've isolated it to this
section of the macro:
iRet = OpenPrinter(sPrinterName, hPrinter, pd)
If (iRet = 0) Or (hPrinter = 0) Then
'Can't access current printer. Bail out doing nothing
Exit Function
End If
This is where the code bails. I wonder if there is some added security (or
antivirus control?) somewhere (the printers are networked printers) which is
not allowing access to the printer ....
Would appreciate any ideas anyone may have.
thanks
I've successfully used the printer control code in a word macro to print
particular sections of a document in duplex mode. Its been working for a
year or 2 without a problem.
My question is this - our organisation is rolling out new pcs running windows
XP (previously used Windows 2000). For XP users the macro fails, while it
still works for people who still have Windows 2000. I've isolated it to this
section of the macro:
iRet = OpenPrinter(sPrinterName, hPrinter, pd)
If (iRet = 0) Or (hPrinter = 0) Then
'Can't access current printer. Bail out doing nothing
Exit Function
End If
This is where the code bails. I wonder if there is some added security (or
antivirus control?) somewhere (the printers are networked printers) which is
not allowing access to the printer ....
Would appreciate any ideas anyone may have.
thanks