J
john Hoffman
Hello,
I am using automation in C# with an Excel spreadsheet.
All is well until I try to print to a printer other than
the default one. I use a C# print dialog to return me the
printer name to print to such as:
\\myserver\HP LaserJet 5Si MX
Using an Excel Macro as an example the macro yields:
Application.ActivePrinter = "\\eme_server\HP LaserJet
5Si MX on Ne01:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1,
ActivePrinter:= _
"\\eme_server\HP LaserJet 5Si MX on Ne01:",
Collate:=True
Where can I find the port information i.e. "on Ne01"??
If I leave it off, Excel hangs!!
TIA,
John Hoffman
I am using automation in C# with an Excel spreadsheet.
All is well until I try to print to a printer other than
the default one. I use a C# print dialog to return me the
printer name to print to such as:
\\myserver\HP LaserJet 5Si MX
Using an Excel Macro as an example the macro yields:
Application.ActivePrinter = "\\eme_server\HP LaserJet
5Si MX on Ne01:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1,
ActivePrinter:= _
"\\eme_server\HP LaserJet 5Si MX on Ne01:",
Collate:=True
Where can I find the port information i.e. "on Ne01"??
If I leave it off, Excel hangs!!
TIA,
John Hoffman