473,490 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Print Queue API Calls

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 in this fasion, I understand that
the LPDSVC receives the job on a specific port (I think 732). Then the
LPDSVC resubmits the job to the Windows Spooler service under the local
system account. My problem is that somewhere in this process the Total
Number of Pages becomes 0. Even the Windows Print Queue Monitoring utility
reports the number of pages as "N/A" or 0.

I searched the msdn site and various other sites but I could not find any VB
API calls to the Print Services for Unix. I have also looked for ActiveX
controls that would work with the LPDSVC service, but could find none that
had a TotalPages property.

Does anyone know whether this is simply a limitation of Microsoft's
implementation of LPD printing, or is there something that gets lost in the
transfer from LPDSVC to Spooler? Does anyone know of a way to be able to
get the Total Number of Pages?

Thanx in advance,

Dmitry

Nov 20 '05 #1
0 1000

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

Similar topics

0
1701
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...
6
6054
by: Richard Berg | last post by:
Hello, I need implementation advice: I am writing a program that should call some API functions in a specific order. The APIs are for another application, not Windows APIs. The order and type...
9
2481
by: Brian Henry | last post by:
If i inherite a queue class into my class, and do an override of the enqueue member, how would i then go about actually doing an enqueue of an item? I am a little confused on this one... does over...
6
16685
by: les | last post by:
Here's a class which uses 2.0 generics to implement an inter-thread message queue in C#. Any number of threads can post and read from the queue simultaneously, and the message object can be any...
1
4186
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
12504
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....
12
1388
by: Paul Rubin | last post by:
I'd like to suggest adding a new operation Queue.finish() This puts a special sentinel object on the queue. The sentinel travels through the queue like any other object, however, when...
4
4585
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
1825
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
7955
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...
0
6967
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
7142
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
7181
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
7352
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
5445
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,...
1
4875
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4565
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...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
272
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...

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.