473,809 Members | 2,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Opening a Print Queue

Hi,

Does anyone know if there is a way to open the print queue dialog for a
specified printer?

I already know what the printers name is (e.g. \\server\printe r1) but I
would like to be able to show the standard Windows print queue dialog.

Thanks,

Andy
Apr 10 '06 #1
4 10302
Hi Andy,

I am afraid the .NET Framework doesn't support to open a Print Queue
dialog. If you need a workaround on this issue, I suggest you consult this
issue in our corresponding Win32 SDK or Shell specific newsgroups, you may
receive some suggestions from there.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 11 '06 #2
Anyone had any thoughts on this?

There must be an API somewhere that can allow me to open the print queue
UI...

Thanks!

Andy

"Andy" <An*****@newsgr oups.nospam> wrote in message
news:eG******** ******@TK2MSFTN GP03.phx.gbl...
Hi,

Does anyone know if there is a way to open the print queue dialog for a
specified printer?

I already know what the printers name is (e.g. \\server\printe r1) but I
would like to be able to show the standard Windows print queue dialog.

Thanks,

Andy

Apr 12 '06 #3
OK, I've worked this out myself:
using System.Diagnost ics;

Process myProcess = new Process();

myProcess.Start Info = new ProcessStartInf o(@"\\server\pr inter1", "");

myProcess.Start ();

Thanks!

Andy

"Andy" <An*****@newsgr oups.nospam> wrote in message
news:ec******** ********@TK2MSF TNGP05.phx.gbl. ..
Anyone had any thoughts on this?

There must be an API somewhere that can allow me to open the print queue
UI...

Thanks!

Andy

"Andy" <An*****@newsgr oups.nospam> wrote in message
news:eG******** ******@TK2MSFTN GP03.phx.gbl...
Hi,

Does anyone know if there is a way to open the print queue dialog for a
specified printer?

I already know what the printers name is (e.g. \\server\printe r1) but I
would like to be able to show the standard Windows print queue dialog.

Thanks,

Andy


Apr 12 '06 #4

"Andy" <An*****@newsgr oups.nospam> kirjoitti
viestissä:ec*** *************@T K2MSFTNGP05.phx .gbl...
Anyone had any thoughts on this?

There must be an API somewhere that can allow me to open the print queue
UI...


Something like

[DllImport("shel l32.dll")]
static extern int SHInvokePrinter Command(IntPtr hwnd, uint uAction, string
lpBuf1, string lpBuf2, bool fModal);
const uint PRINTACTION_OPE N = 0;

....

SHInvokePrinter Command(Handle, PRINTACTION_OPE N, "your-printer-name-here",
null, false);
Might do..

Bit more in

http://msdn.microsoft.com/library/en...asp?frame=true
Apr 12 '06 #5

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

Similar topics

0
1723
by: Dmitry Akselrod | last post by:
Hello Everyone, I have an almost well working Print Queue Monitoring software written. The software works quite well with typical Windows printing situations. However, there's a problem when a job is submitted to a print queue via LPD printing. I have a couple of server with Print Services for Unix installed (Windows 2000 SP4+). These servers are able to receive print jobs as Unix-type LPD print queue. Whenever a job is submitted...
1
1596
by: kishore kumar via DotNetMonster.com | last post by:
hi I want to know the print queue details for local printer and how many jobs r there in print queue. plz help me -- Message posted via http://www.dotnetmonster.com
0
1713
by: Broadica | last post by:
hi, i wanted to know how can we read and intercep printing job queue in our system which will be forward to a print server? senario: assume there is a network of computer. 10 pc. 1 of the pc.. is setup with a printer. and the printer is share among all pc in the network.
22
130480
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the document and closes it with the following code: <body onload="window.print(); window.close();"> This works correctly (or at least the way I expect it to work under MS Internet Explorer, but it cuases Netscape to "crash"
1
4204
by: brogdon | last post by:
I'm attempting to build an ASP.NET (VB) application that will do server-side printing of PDF files. I have used a Process object to launch Adobe's AcroRd32 program with the /t switch which causes it to open an Acrobat Reader window and silently send the document I want printed to a local network printer: Dim psiInfo As ProcessStartInfo = New ProcessStartInfo (pathtoadobe, "/t " + filename + " " + printername) psiInfo.CreateNoWindow =...
6
12535
by: mtn244 | last post by:
Print jobs are not deleting from print queue after completion. This problem is on a peer-to-peer network of four computers and one printer. Windows 2000 with Service Pack 2 is the operating system. The print jobs, which display in the queue as "Printed", can be manually removed. Is there a configuration setting that dictates whether or not print jobs remain in the print queue? I am not experienced with networks and print queue...
4
4601
by: j_depp_99 | last post by:
Thanks to those guys who helped me out yesterday. I have one more problem; my print function for the queue program doesnt work and goes into an endless loop. Also I am unable to calculate the length of my queue. I started getting compilation errors when I included a length function. <code> template<class ItemType> void Queue<ItemType>::MakeEmpty() {
1
1846
by: zbrozlo | last post by:
Hi, I have strange problem with my perl program. My program consists of two parts, first written in python and second in perl. Perl part is a server, but also uses two sockets for "talking" with gui written in python. Problem is, that from totally unknown reason perl program quits at line, where i'm trying to 'print' anything for AWAY gui socket. Here's part of my code : #!/usr/bin/perl use strict; use warnings; use IO::Socket; use...
2
7999
by: RB0135 | last post by:
Hi All, Is this possible: 1) An application prints to a printer/print queue (mainly XP). 2) A vb.net application monitors the print queue (I know this can be done) 3) Retrieve the RAW information from the PrintJob (Cant seem to find anything on this) 4) Delete the Job when I have the RAW information (I know this can be done)
0
9721
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
9601
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
10635
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
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10378
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10115
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
5550
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...
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3013
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.