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

Move printjob

How can I move a printjob from one printqueue to another. The printqueue's
both have the same printerdriver.
Nov 21 '05 #1
1 1929
Hi Philip,

Welcome to MSDN newsgroup.
Regarding on the managing print job you mentioned, based on my experience,
the .NET framework dosn't directly provide such raw (low level) programming
interface. Interacting with printer need RAW platform api calls and on
windows operating system, we have the winspool components. So I'd suggest
you first try work this out through unmanaged code(like c/c++) than call
the unmanaged component through platform invoke in .net code. Here are some
related reference and article about windows spooler component programming:

#Introduction to Spooler Components
http://msdn.microsoft.com/library/en...plarch_6aecc06
5-5eb8-4145-9081-c7418a466710.xml.asp?frame=true

#Printing Architecture
http://www.codeproject.com/useritems/wpa.asp

How to monitor a printer queue from VB.NET
http://www.codeproject.com/vb/net/printwatchvbnet.asp

#PrintMon.exe Demonstrates the Win32 Spooler API
http://support.microsoft.com/default...b;en-us;196805

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: Move printjob
| thread-index: AcXey7kvjlMhGZjuS9qQQWwUU4CZaQ==
| X-WBNR-Posting-Host: 213.236.81.130
| From: =?Utf-8?B?UGhpbGlwIFdhZ2VuYWFy?= <ph*************@online.nospam>
| Subject: Move printjob
| Date: Tue, 1 Nov 2005 02:05:01 -0800
| Lines: 2
| Message-ID: <0C**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.languages.vb:113000
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| How can I move a printjob from one printqueue to another. The
printqueue's
| both have the same printerdriver.
|

Nov 21 '05 #2

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

Similar topics

1
by: bmgz | last post by:
I am have made a simple script that moves all desktop clutter (ie files that are not *.lnk) to a specified folder eg. c:\myhome\mydocs\desktopdebris\2003-12-16 ...
0
by: Roger | last post by:
Hi, Im trying to cancle a specific printjob via code on a remote machine. the remote machine i a win2000 machine. Ive tried using System.Management , wmi but apparently im only allowed to...
9
by: trint | last post by:
Instead of just sending one document at a time, I need to send multiple documents as a print job because our laserprinter will only stack and staple one printjob it receives at a time. I need to...
2
by: notregister | last post by:
Hi i have a printer that is connected to my PC using a t100base lan cable instead of the usual usb or parallel port cable. how do i send a printjob directly to the printer using VB.Net??
0
by: Philip Wagenaar | last post by:
I want to change the Username/owner of a printjob in the spoolfile. I know I have to use the SetJob function in the winspool.drv and that I have to declare this by adding the following to my...
1
by: Phil Endecott | last post by:
Dear Postgresql experts, According to the documentation for MOVE, it returns the number of rows that it has moved over. It seems to me that this is true for MOVE FORWARD n, but not for MOVE...
1
by: Todd7 | last post by:
I am writing a python program to load a pdf file into an IEHtmlWindow which displays it through adobe acrobat reader 7. Depending on the buttons the user clicks, the program moves it to another...
1
by: kkizer | last post by:
I have a problem with this simple code below. Moving the files works perfectly, but once in a blue moon the file that it is trying to move dissapears before it can move it. and when this happens...
3
by: Arpan | last post by:
A Form has a FileUpload, 2 Buttons & a TextBox web server controls. Using the FileUpload control, I want to give users the provision to move & delete files that DO NOT exist in C:\Inetpub\wwwroot...
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
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,...
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
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,...
0
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...
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,...
0
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...

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.