hidden hit counter
Help!

Change printer spool data programatically

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Print RSS
Next:  Cannot delete corrupt directory--W2000 Server  
Author Message
user668
External


Since: Nov 03, 2004
Posts: 1



PostPosted: Wed Nov 03, 2004 3:17 pm    Post subject: Change printer spool data programatically
Archived from groups: microsoft>public>windowsnt>print (more info?)

Hi,
I have a requirement as follows.
When somebody prints on a shared network printer, my program wants to
insert a text (say my name) extra at the beginning of the page or at the end
of the page while printing. How can I do that? Do I need to write a driver
level program? Any help will be appreciated.

Regards,

Krishnakumar
Back to top
Felix Maxa MSFT
External


Since: Jan 22, 2004
Posts: 2



PostPosted: Fri Nov 05, 2004 1:37 pm    Post subject: Re: Change printer spool data programatically [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

This is not always possible. A "RAW" stream does not have page information.
Normally applications let the GDI negotiate the data type for the print job.
And GDI tries to negotiate it to EMF. In certain scenarios (like win9x to
nt) the data type cannot be EMF, it will be RAW. RAW is just a stream of
data in printer language. The best you can do with RAW is insert some text
before or after the print job.

Anyway, what you need to write is a print processor. Be aware there are many
printer drivers that come with their own print processor. They might not
work correctly if you replace their print processor with yours. You'd
probably have to invoke their print proc from yours.

Even this print proc solution is complicated. You need to read the emf
ercoreds for a page and insert emf recored for each page to draw your text.
This can be done easier if you write a printer driver, but that is very
complicated.

HTH

--
Felix Maxa
Windows Printing Team

This posting is provided "AS IS" with no warranties, and confers no rights.


"Krishnakumar N" <krish.kumar.TakeThisOut@m2comsys.com> wrote in message
news:%23KT3YJYwEHA.4004@TK2MSFTNGP10.phx.gbl...
 > Hi,
 > I have a requirement as follows.
 > When somebody prints on a shared network printer, my program wants to
 > insert a text (say my name) extra at the beginning of the page or at the
 > end
 > of the page while printing. How can I do that? Do I need to write a driver
 > level program? Any help will be appreciated.
 >
 > Regards,
 >
 > Krishnakumar
 >
 ><!-- ~MESSAGE_AFTER~ -->
Back to top
RajeshVijayan



Joined: Apr 26, 2006
Posts: 2



PostPosted: Wed Apr 26, 2006 7:17 am    Post subject: Re: Change printer spool data programatically [Login to view extended thread Info.]

Dear Krishnakumar,
Did u get any solution for this... Am having a similar requirement.

Thanks and Regards
Rajesh
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Print All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum