473,666 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printer Properties

Hi!

How can I get the printer properties (the same as right click-properties in
the Printer menu) in a VB.NET 2005 application. I have the collection of
the printers but need to get to the properties.

Regards

Morten Fagermoen

Nov 24 '06 #1
2 2643
Do you mean get the properties (via wmi or similar) or open the printer
properties dialog...

rundll32 printui.dll, PrintUIEntry /p /n\\<servername> \<printer>

If above then great... otherwise, what properties are you after?

Pete


http://computermanagementconsole.co.uk/

Morten Fagermoen wrote:
Hi!

How can I get the printer properties (the same as right click-properties in
the Printer menu) in a VB.NET 2005 application. I have the collection of
the printers but need to get to the properties.

Regards

Morten Fagermoen
Nov 26 '06 #2
I'm looking for printer properties dialog so I will try your solution.

Thank you for your help!

Morten
"xla76" <pe*********@gm ail.comwrote in message
news:11******** *************@j 72g2000cwa.goog legroups.com...
Do you mean get the properties (via wmi or similar) or open the printer
properties dialog...

rundll32 printui.dll, PrintUIEntry /p /n\\<servername> \<printer>

If above then great... otherwise, what properties are you after?

Pete


http://computermanagementconsole.co.uk/

Morten Fagermoen wrote:
>Hi!

How can I get the printer properties (the same as right click-properties
in
the Printer menu) in a VB.NET 2005 application. I have the collection of
the printers but need to get to the properties.

Regards

Morten Fagermoen
Nov 26 '06 #3

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

Similar topics

1
13012
by: Pablo | last post by:
Friends, how can i get the name of the default printer??. I'm working with winforms. VB,C#, nevermind. Thanks a lot Pablo
5
2018
by: Tom Berry | last post by:
We currently are trying our first transformation from VB6 to VB.Net. Of course, the Printer object is gone, but I'm having trouble finding the replacement syntax necessary to perform similar actions or set variables. We are interested in doing this inline (no pop-up dialog box). Specifically, where how would I replace the following properties/methods of the old Printer objects. Printer.NewPage Printer.TextHeight Printer.TextWidth
0
1243
by: nikolaos | last post by:
Hi all!! i am relatively new to this forum. i am working on a big project in athens greece. it is all about office and vba. basically it is an automated testing software that tests whetther candidates have mastered the office applications or not. we have to develop the test engine in delphi(we have done that).
0
1211
by: notregister | last post by:
Hi, i have trying to send a PCL file to a printer using the following codes, but the printer would normally hang for a long time after i have send the command, and i do not know what wrong with it, this are ample code i found in msdn, and yet it could not work, pls advise Thanks Public Function PrintChunkParallel(ByVal lPort As Long, ByVal Chunk As String) As Long 'currently only for LPT1 only
1
9524
by: hasanainf | last post by:
Hi all and thanking you all in advance for your help My client wants to use a receipt printer. Since I have never used one before I have some questions. 1. Unlike other printers which are set by default to print a whole A4 size page, I want the receipt printer to print an unlimited lenght of receipt, that is to say that if five items are sold, the receipt printer should print company details with five items and a total figure and stop...
1
4826
by: Ed Sutton | last post by:
My C# app. apparently has problems with PageSettings not being initialized properly after calling PageSetupDialog. If a user selects a non-default printer from PageSetupDialog, the PageSize is apparently not-initialized properly. It appears to be printing to a very small page size and only prints a small piece of each page. Alternatively, if if a user selects the new printer, then user selects the paper size from the printer properties,...
3
3391
by: billelev | last post by:
Hi there, I have some code that prints a report to a pdf driver (Adobe). I am using this code on two different machines, and hence two different installations of Access. On one machine the pdf prints in color, on the other it prints only in black and white. I have traced the problem to the Adobe PDF printer properties menu WITHIN Access. On the machine that works, the color button is selected on the "Paper/Quality" tab by default,...
6
9763
by: Ian | last post by:
I am trying to get MS Access 2000 to print names and addresses onto a Dymo 400 label printer, I have set the Access Report to automatically select the correct printer, then select the label size of “99012 Large Address”. This works fine but when I move my database to another PC (with identical Dymo printer and drivers) the report defaults to the correct printer but does not select the label “99012 Large Address”. On different PC’s it...
2
3404
by: wassimdaccache | last post by:
Dear all I am using windows server 2003 sp1. I am connecting a printer called BIRCH prp080 to my pc using the serial port. the printer is working well when I install the driver but the problem is when I restart the computer the printer won't work. Right click properties in my printer driver will show me the message below The prp-080 printer driver is not installed on this computer. Some properties will not be accessible unless...
0
8445
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8871
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8640
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5664
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2771
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.