Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refer to Ne0 Printer number programatticaly 1

Status
Not open for further replies.

sxschech

Technical User
Jul 11, 2002
1,033
US
In a follow up to thread "Active Printer Ne Issue: Moved from XP/Office2003 to Win7/Office2007"...

The NE0 number for Acrobat changed again over the weekend. I finally searched and found code that will programatically identify the NE0 number so that I don't have to hard code the value and hopefully this will allow printing to PDF to work in the future without having to occasionally search for the NE0 number.

Here is the link to the code for identifying the Printer Number:


In the actual code for doing the printing, make the following change:

Code:
Application.ActivePrinter = [red]"Adobe PDF on Ne04:" 'or whatever Ne0 number it is[/red]
to
Code:
Application.ActivePrinter = [red]FindPrinter("Adobe PDF") [/red]
 


Hi,
[purple]
Great TIP! -> *[/purple]


Please publish it in a FAQ.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks Skip. Per your request, I have posted it to the FAQ section.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top