Board index » Visual Studio » Changing default printer

Changing default printer

Visual Studio50
How can I change by program the default printer in VB.net if I have two

printers connected in one computer?

I want to print diferents reports in diferents printers connected in one

computer and I want to change the default printer depending of the report.



Please help us.

Rigoberto


-
 

Re:Changing default printer

I'm not sure if this helps:



Add a pagesetup dialog to your form



Private Sub MenuItem18_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles MenuItem18.Click

'page setup

PageSetupDialog1.Document = PrintDocument2

PageSetupDialog1.Document.DefaultPageSettings.Color = False

PageSetupDialog1.Document.DefaultPageSettings.Landscape = True

PageSetupDialog1.ShowNetwork = True

PageSetupDialog1.PrinterSettings.PrinterName = "Acrobat PDFWriter"

PageSetupDialog1.ShowDialog()

End Sub



"rquintana" wrote:



Quote
How can I change by program the default printer in VB.net if I have two

printers connected in one computer?

I want to print diferents reports in diferents printers connected in one

computer and I want to change the default printer depending of the report.



Please help us.

Rigoberto

-

Re:Changing default printer

"rquintana" <rquintana@discussions.microsoft.com>schrieb:

Quote
I want to print diferents reports in diferents printers connected in one

computer and I want to change the default printer depending of the report.



See (complete thread):



<URL:http://groups.google.de/groups?threadm=%23Cv9v3W%24EHA.208%40TK2MSFTNGP12.phx.gbl" rel="nofollow" target="_blank">groups.google.de/groups>



--

M S Herfried K. Wagner

M V P <URL:dotnet.mvps.org/>">dotnet.mvps.org/>

V B <URL:dotnet.mvps.org/dotnet/faqs/>">dotnet.mvps.org/dotnet/faqs/>



-

Re:Changing default printer

Mr MVP,



Why did you point the user to that page when the bottom Microsoft article is

in VB 6 & you aren't prepared to convert it to VB.NET?



On last question: Will you put my name forward for the MVP program, as I

have been programming for 25 years in Assembly, C, C++, a little HTML/ASP, VB

3 - VB.NET & a little C#? 99.9% (18 hours a day approx.) of my time spent

coding in VB.NET.



"Herfried K. Wagner [MVP]" wrote:



Quote
"rquintana" <rquintana@discussions.microsoft.com>schrieb:

>I want to print diferents reports in diferents printers connected in one

>computer and I want to change the default printer depending of the report.



See (complete thread):



<URL:http://groups.google.de/groups?threadm=%23Cv9v3W%24EHA.208%40TK2MSFTNGP12.phx.gbl" rel="nofollow" target="_blank">groups.google.de/groups>



--

M S Herfried K. Wagner

M V P <URL:dotnet.mvps.org/>">dotnet.mvps.org/>

V B <URL:dotnet.mvps.org/dotnet/faqs/>">dotnet.mvps.org/dotnet/faqs/>





-

Re:Changing default printer

"Crouchie1998" <Crouchie1998@discussions.microsoft.com>schrieb:

Quote
Mr MVP,



My name is Herfried.



Quote
Why did you point the user to that page when the bottom Microsoft article

is

in VB 6 & you aren't prepared to convert it to VB.NET?



Even MVP's days only have 24 hours.



Quote
On last question: Will you put my name forward for the MVP program, as I

have been programming for 25 years in Assembly, C, C++, a little HTML/ASP,

VB

3 - VB.NET & a little C#? 99.9% (18 hours a day approx.) of my time spent

coding in VB.NET.



For being awarded as an MVP, it does not matter how many hours a day one

spends using a certain product or how many "languages" one speaks.



How do I become an MVP?

<URL:mvps.org/about/mvp.html>">mvps.org/about/mvp.html>



More information on the MVP program:



<URL:mvp.support.microsoft.com/>">mvp.support.microsoft.com/>



--

M S Herfried K. Wagner

M V P <URL:dotnet.mvps.org/>">dotnet.mvps.org/>

V B <URL:dotnet.mvps.org/dotnet/faqs/>">dotnet.mvps.org/dotnet/faqs/>



-

Re:Changing default printer

I have read those articles & have also e-mailed the webmaster some time ago.

See below:



Thank you for interest in the Microsoft Most Valuable Professional (MVP)

Program.

MVPs are a diverse group of individuals from around the world who have two

things in common â?? expertise in one or more of Microsoftâ??s products or

technology areas, and a willingness to share their knowledge and their

experiences with others.

If you would you like to be considered, please send us the following

information:

First Name, Last Name

Email address, and/or online alias

Product or Technology of expertise:

Where we can find you, or your nominee (e.g. newsgroup, web site, message

board, book, magazine, school, conference, etc.)

Mail the above information to mvpga@microsoft.com

Kindest Regards,

MVP Global Administrator

mvpga@microsoft.com



I spend around 18 hours a day either programming or programming/answering

questions in the forums & have done since 1997. So, I think I am in it for

the long haul, don't you?



"Herfried K. Wagner [MVP]" wrote:



Quote
"Crouchie1998" <Crouchie1998@discussions.microsoft.com>schrieb:

>Mr MVP,



My name is Herfried.



>Why did you point the user to that page when the bottom Microsoft article

>is

>in VB 6 & you aren't prepared to convert it to VB.NET?



Even MVP's days only have 24 hours.



>On last question: Will you put my name forward for the MVP program, as I

>have been programming for 25 years in Assembly, C, C++, a little HTML/ASP,

>VB

>3 - VB.NET & a little C#? 99.9% (18 hours a day approx.) of my time spent

>coding in VB.NET.



For being awarded as an MVP, it does not matter how many hours a day one

spends using a certain product or how many "languages" one speaks.



How do I become an MVP?

<URL:mvps.org/about/mvp.html>">mvps.org/about/mvp.html>



More information on the MVP program:



<URL:mvp.support.microsoft.com/>">mvp.support.microsoft.com/>



--

M S Herfried K. Wagner

M V P <URL:dotnet.mvps.org/>">dotnet.mvps.org/>

V B <URL:dotnet.mvps.org/dotnet/faqs/>">dotnet.mvps.org/dotnet/faqs/>





-

Re:Changing default printer

Crouchie,



"Crouchie1998" <Crouchie1998@discussions.microsoft.com>schrieb:

Quote
I spend around 18 hours a day either programming or programming/answering

questions in the forums & have done since 1997. So, I think I am in it for

the long haul, don't you?



I am not able to decide who is awarded and who not. From my own experience,

I can only tell you that it took more than a half year of very active

participation in Microsoft public newsgroups until I was awarded.

Nevertheless, there is no guarantee that somebody is awarded at all, and

when he/she is awarded. MVP ist nothing for people who "want to be MVP",

it's a side-effect of regular and voluntary participation and willingness to

help/share.



So, if you want to become an MVP, post to the groups or other communities

monitored by Microsoft so that Microsoft Support Engineers etc. will become

aware of you.



--

M S Herfried K. Wagner

M V P <URL:dotnet.mvps.org/>">dotnet.mvps.org/>

V B <URL:dotnet.mvps.org/dotnet/faqs/>">dotnet.mvps.org/dotnet/faqs/>



-