Groups | Blog | Home
all groups > vb.net > january 2005 >

vb.net : printing


notregister
1/30/2005 7:09:02 PM
how can i open a print dialog to select one printer and store it's name in a
string, so that i can call this string anytime anywhere to set the printer
setting later on in my program...

i tried

Dim pd As New PrintDialog()
pName = pd.PrinterSetting.PrinterName

but it always get the default printer name...how do i open the dialog box to
select any printer?
Herfried K. Wagner [MVP]
1/31/2005 12:33:14 PM
"notregister" <notregister@discussions.microsoft.com> schrieb:
[quoted text, click to view]

PrintingDemo
<URL:http://dotnet.mvps.org/dotnet/samples/printing/PrintingDemo.zip>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
AddThis Social Bookmark Button