borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Printing stops problem)Next Topic (problem on papersize) New Topic New Poll Post Reply
AndreaVB Forum : Printing : Printer Name
Poster Message
sonmai
Level: Guest


icon Printer Name

How do I get the printer name of the the default printer?

Thanks,

sm

12-08-2002 at 09:02 PM
| Quote Reply
Merrion
Level: VB Guru

Registered: 15-04-2002
Posts: 37
icon Re: Printer Name


Debug.Print Printer.DeviceName


____________________________
--8<------------------------------
Free components and source code - see http://www.merrioncomputing.com/Download/index.htm for details

13-08-2002 at 02:20 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
Al Klein
Level: Guest

icon Re: Printer Name

That works nicely for locally connected printers.  Does anyone know of any way to get the name of the default printer if it's a network printer?  (I know I can get the share name - I need the "HP Desk" part to switch forms if the user is using a desk jet - the things only speak PCL3 and moving a Crystal report works differently in PCL3 and PCL5.)  (Or does anyone know a better way to move the report than to change the margins, which handles the page footer differently in PCL3 and PCL5 for some strange reason?)

22-08-2002 at 10:11 PM
| Quote Reply
AndreaVB Forum : Printing : Printer Name
Previous Topic (Printing stops problem)Next Topic (problem on papersize) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder