|
-
Dec 11th, 2003, 10:29 PM
#1
Thread Starter
Fanatic Member
How to get the name of default printer?
How to get the name of default printer? .. please help
thanks
Winanjaya
-
Dec 12th, 2003, 05:05 AM
#2
Sleep mode
Like this :
VB Code:
Dim P_Name As New PrintDocument
MessageBox.Show(P_Name.PrinterSettings.PrinterName())
-
Jan 30th, 2004, 04:52 PM
#3
Addicted Member
Keeps you from having to create a PrintDocument
VB Code:
Dim Settings As New System.Drawing.Printing.PrinterSettings()
Dim strPrinter As String = Settings.PrinterName
-
Feb 4th, 2004, 02:57 AM
#4
Sleep mode
Re: Keeps you from having to create a PrintDocument
Ok , if you don't want to create any obj , then use the static class PrinterSettings .
VB Code:
Printing.PrinterSettings.InstalledPrinters.Item(0)
-
Feb 7th, 2004, 08:02 PM
#5
Addicted Member
will that return you the default printer, or just the first of your installed printers?
-
Feb 7th, 2004, 08:17 PM
#6
Sleep mode
I've just tested it here and it returns the default printer name even if it's the last one installed .
-
Feb 8th, 2004, 11:31 AM
#7
Addicted Member
OK, cool. Even fewer lines of code.
-
Feb 8th, 2004, 10:47 PM
#8
Sleep mode
-
Feb 9th, 2004, 08:55 AM
#9
Addicted Member
You really are a pirate, aren't you ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|