473,396 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

winforms - change the default printer

Friends,

I need to change the default printer from code, with no
user iterativity. Any sample code? suggestion? C#,VB,
nevermind!.

Thanks
Pablo
Nov 15 '05 #1
1 1663
Hi Pablo,

You can use SetDefaultPrinter class of WMI.

In case that you are using W9X take a look also to this :
http://support.microsoft.com/default...NoWebContent=1
Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Pablo" <t-******@infocorp.com.uy> wrote in message
news:0f****************************@phx.gbl...
Friends,

I need to change the default printer from code, with no
user iterativity. Any sample code? suggestion? C#,VB,
nevermind!.

Thanks
Pablo

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Pablo | last post by:
Friends, I need to change the default printer from code, with no user iterativity. Any sample code? suggestion? C#,VB, nevermind!. Thanks Pablo
5
by: Hank | last post by:
My Access 2000 code has been running for several years in our main plant. Now we need to install it, as a stand-along application, at remote sites, some of which are out of state. My problem is...
2
by: Pablo | last post by:
Friends, I need to change the default printer from code, with no user iterativity. Any sample code? suggestion? C#,VB, nevermind!. Thanks Pablo
1
by: goJoe | last post by:
Hello! i amn trying to add a Visuail basic 6 code to an excisting code that has the purpose to change the current default printer to another printer by name and then after the printer to change...
1
by: ThunderMusic | last post by:
hi, Is there an easy way to change the default printer from .net? thanks ThunderMusic
1
by: PCB | last post by:
Hi all! I have a subroutine that prints reports on a specific printer. The code works fine as long as all the printers available to the computer are on the network. However, if the computer also...
7
by: Mark | last post by:
Hi, I am creating application in VB 2005. and when I print report it adds extra 0.45 cm margin on left and top, and the reason for this is physical margins of printer. Is it possible to change...
0
by: elbetzio | last post by:
Evening, I've got a highly irritating bug with the reportviewer control that appears to be a show-stopper for one of our bigger applications we're writing. When I try and print more than 1...
8
by: Phil Stanton | last post by:
Using Access 2000 (Yes I know there is no Printer specified) and an MDE File (Yes I know I can't open a report in design view). Is there any way using VBA of temporarily changing the report's...
0
by: AP | last post by:
I have had this before in the past and just ignored it, but now I need a solution. Basically, using ACC2003 if I have one particular printer as the default, the reports will not open in design,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.