473,378 Members | 1,457 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,378 software developers and data experts.

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\printer1) but I
would like to be able to show the standard Windows print queue dialog.

Thanks,

Andy
Apr 10 '06 #1
4 10240
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*****@newsgroups.nospam> wrote in message
news:eG**************@TK2MSFTNGP03.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\printer1) 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.Diagnostics;

Process myProcess = new Process();

myProcess.StartInfo = new ProcessStartInfo(@"\\server\printer1", "");

myProcess.Start();

Thanks!

Andy

"Andy" <An*****@newsgroups.nospam> wrote in message
news:ec****************@TK2MSFTNGP05.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*****@newsgroups.nospam> wrote in message
news:eG**************@TK2MSFTNGP03.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\printer1) but I
would like to be able to show the standard Windows print queue dialog.

Thanks,

Andy


Apr 12 '06 #4

"Andy" <An*****@newsgroups.nospam> kirjoitti
viestissä:ec****************@TK2MSFTNGP05.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("shell32.dll")]
static extern int SHInvokePrinterCommand(IntPtr hwnd, uint uAction, string
lpBuf1, string lpBuf2, bool fModal);
const uint PRINTACTION_OPEN = 0;

....

SHInvokePrinterCommand(Handle, PRINTACTION_OPEN, "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
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...
1
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
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...
22
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...
1
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...
6
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....
4
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...
1
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...
2
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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...

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.