Printing .pdf files in-process

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I'm in need of a component that allows for printing a .pdf file, while
assuming the identity of a windows account of choice. This is absolutely
necessary, as the account is used to direct the print job to a specific
mailbox on the printer.

Basically, I'd like to create a thread, have it assume a specific windows
identity (which may be a different one for each print job), and invoke a
method on an in-process component that prints a .pdf file to a printer of my
choice. The job should then arrive in the account's mailbox in the printer,
and I can go back to dreaming of cute fuzzy animals in peace once again.

The thread creation and impersonation of identity have all been a relative
breeze, but printing turns out to be a tough nut to crack, unless I'm missing
something glaringly obvious.

As you may have already guessed, this is meant to be used in a server
environment, so don't even THINK of suggesting I open a GUI and perform a
SendKey to trigger the print! :o)

Does anyone know how I can direct a file to the printer spooler, or how to
get a .pdf file to print in general, WITHOUT any user interaction?

Thanks in advance,

Danny van Kasteel
 
Hi Danny,

Maybe a commercial tool is the solution for your problem.
On www.textcontrol.com is a activex component wich is able to read and print
..PDF files.
And no, it is not freeware!

Greetings,

Patrick van Bakkum
MCSD
 
Back
Top