By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 938 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,853 IT Pros & Developers. It's quick & easy.

Printing .pdf files in-process

P: n/a
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
Nov 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
"Danny van Kasteel" <Da*************@discussions.microsoft.com> wrote in
message news:92**********************************@microsof t.com...
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

Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.