473,664 Members | 2,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I am bypassing the print spooler?

In my commercial financial application I run a deposit report. I use an
option to copy the report to the Clipboard. I then run a .NET consol app to
“grab” the Clipboard and format the data and print laser deposit tickets. I
use the following to set my printer:
PrintDocument doc = new PrintDocument() ;
if (printer != "default")
doc.PrinterSett ings.PrinterNam e = printer;
I then raise an event:
doc.PrintPage += new PrintPageEventH andler(this.Pri ntPage);
Then the:
PrintPageEventA rgs ev.Graphics.Dra wString
draws a line one at a time.

I believe I am bypassing the print spooler. Is this wishful thinking on my
part?

Thanks
Austin

Jan 20 '07 #1
1 1891
No, you're not bypassing the Print Spooler.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

In case of Minimalism, break Philip Glass.

"Austin Stephens" <Au************ @discussions.mi crosoft.comwrot e in
message news:0D******** *************** ***********@mic rosoft.com...
In my commercial financial application I run a deposit report. I use an
option to copy the report to the Clipboard. I then run a .NET consol app
to
"grab" the Clipboard and format the data and print laser deposit tickets.
I
use the following to set my printer:
PrintDocument doc = new PrintDocument() ;
if (printer != "default")
doc.PrinterSett ings.PrinterNam e = printer;
I then raise an event:
doc.PrintPage += new PrintPageEventH andler(this.Pri ntPage);
Then the:
PrintPageEventA rgs ev.Graphics.Dra wString
draws a line one at a time.

I believe I am bypassing the print spooler. Is this wishful thinking on
my
part?

Thanks
Austin

Jan 22 '07 #2

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

Similar topics

0
1718
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
5069
by: nhmark64 | last post by:
Hi, How do wait for a print spooler to be empty? My application sucks up all the CPU cycles after i print some reports. I want to delay the CPU intensive stuff until after the print spooler finishes. Thanks, Mark
0
364
by: RDI | last post by:
I need to watch a certain print spooler and if a print job appears, extract the print data to a PRN file on the hard disk and delete it from the spooler. Can VB.Net do this? If so, can someone point me in the right direction please? -- RDI
9
2724
by: Scott M | last post by:
I'm printing a directory of about 500 multi-page tifs to a high speed printer and the spooler process is killing me!!! here is a little code..... Public Function PrintImage(ByVal SourceFile As String) As Boolean Try
2
5265
by: James Wong | last post by:
Hi everybody, I would like to know whether there is a method to know how many pending jobs to be printed in print spooler from VB .NET 2005. My problem is that if a large document is sent to printer, then another document is sent almost at the same time, the second one may not print correctly. I'm using PrintDocument to do the print job. So I want to know whether the previous large one is finished, then send the second one to aviod...
1
1759
by: =?Utf-8?B?c2hlaWxh?= | last post by:
i have a lexmark series 1200 printer that was working fine untill we installed a new ink cartridge since then we have not been able to use printer have tried all listed solutions from run services start spooler to uninstalling and trying to reinstall printer show that spooler is started but when i try to install priner it always comes back saying cant install print spooler not working any suggestions as to what i can do now thanks --...
1
2864
by: =?Utf-8?B?c2hlaWxh?= | last post by:
i have a lexmark 1240 printer changed ink cartridge printer has not worked since have tried going to run services print spooler hitting automatic then start shows spooler started when i go back to reinstall printer get error can not install spooler not running what else can i try -- sheila
1
1894
by: =?Utf-8?B?ZGF2aWR0aGV3ZWI=?= | last post by:
I have a recurring issue with a Print Spooler on a Windows 2000 Server. A print job will get stuck and take a large amount of the CPU time. I stop the print spooler in Services, go into Windows (or Winnt) | System32 | Spool | Printers and delete all jobs in that folder and restart the print spooler. This fixes the issue temporarily, but several days later, the same process occurs. Is there a way to trace where the stuck print job is...
0
1721
by: =?Utf-8?B?Sm9obg==?= | last post by:
If I'm posting in the wrong group please let me know. We've been experiencing issues with the print spooler service on our print server running Windows Server 2003 SP2. Occasionally the service will fail without any specific errors. In the event viewer there will be the following error, event ID 7031 "The Print Spooler service terminated unexpectedly. It has done this 2 time(s). The following corrective action will be taken in 60000...
0
8438
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8779
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...
0
8636
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...
1
6187
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5660
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
4186
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...
0
4356
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
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
1761
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.