R
Ron Dadras
Hi,
My C# program generates two Word 2003 documents and needs to print the
documents to different printers. The program presents Windows printer dialog
box to get the name of desired printer but when it passes this printer name
to Word, the Word will not be able to print. I found out Word will print
using default printer but does not like the names I get from printer dialog
box. Further investigation revealed Word affixes extra location details to
the end of the printer name.
For example:
Printer name shown in printer dialog box: \\ymp2\hp psc 2400 series
Printer name expected by word: \\ymp2\hp psc 2400 series on Ne05
Printer name shown in printer dialog box: Adobe pdf
printer name expected by word: Adobe pdf on Ne03
How do I get the correct printer names as what the word expects?
Thanks,
RD
My C# program generates two Word 2003 documents and needs to print the
documents to different printers. The program presents Windows printer dialog
box to get the name of desired printer but when it passes this printer name
to Word, the Word will not be able to print. I found out Word will print
using default printer but does not like the names I get from printer dialog
box. Further investigation revealed Word affixes extra location details to
the end of the printer name.
For example:
Printer name shown in printer dialog box: \\ymp2\hp psc 2400 series
Printer name expected by word: \\ymp2\hp psc 2400 series on Ne05
Printer name shown in printer dialog box: Adobe pdf
printer name expected by word: Adobe pdf on Ne03
How do I get the correct printer names as what the word expects?
Thanks,
RD