By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,558 Members | 1,673 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,558 IT Pros & Developers. It's quick & easy.

get the default printer

P: n/a
Friends,

how can i get the name of the default printer??. I'm
working with winforms. VB,C#, nevermind.

Thanks a lot
Pablo
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Pablo --

To get the name of the default printer, simply examine the
PrinterSettings.PrinterName() property on a PrintDocument control.

If you want to make sure that it is in fact the default printer, check the
IsDefault method.

Hope this helps.
-Amanda

VB .NET Team

_____________
This post is provided "as is" and confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Pablo" <t-******@infocorp.com.uy>
Sender: "Pablo" <t-******@infocorp.com.uy>
Subject: get the default printer
Date: Fri, 19 Sep 2003 08:49:37 -0700
Lines: 7
Message-ID: <14****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcN+xaEkRLUwnQYERJOGNC04Dnb5kQ==
Newsgroups: microsoft.public.dotnet.languages.vb
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:139491
NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

Friends,

how can i get the name of the default printer??. I'm
working with winforms. VB,C#, nevermind.

Thanks a lot
Pablo


Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.