473,386 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Printing .pdf files in-process

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
1 1486
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: db | last post by:
Hi group I have noticed that the printing framework in java supports a great deal of files, but not MS/Word .doc files. So if I want to print doc files what should I do? Get a lib that supports...
5
by: Donnal Walter | last post by:
We want to be able to print HTML or PDF files to a given printer from Python in a kind of batch mode (without opening a preview window or printer dialog for each file). The printer is on a network,...
0
by: lubprog | last post by:
hi, I am printing jpg files which are on a disk. The file name is selected from a database and the file is located on the disk and then printed. I am able to print the file but it takes a long...
2
by: ryanp | last post by:
Printing From Server ASP.NET Anyone have a good solution for easily printing files of different types programmically... for example word documents, photoshop psd files, jpeg's, xls documents,...
2
by: Dan | last post by:
We are running into trouble when trying to print proprietary formats (ie; .pdf, .xls, .doc, etc.) from our VB.NET application. Binary files generate garbage when printed. We have no trouble...
1
by: Gidi | last post by:
Hi, I've created a form that prints a document which i created (with the printDocument class), I draw the page's lines and text. when i'm printing it on my computer, with my printer, the...
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
0
by: ryanf | last post by:
Hello, I need some help with printing pdf files through php. I have a script that will create many pdf files but I want them printed. I found this program to print pdf from the command line from...
0
by: Hank | last post by:
We have been printing pdf files through Adobe, from Access for several years. Adobe version 5.0 is currently installed. Recently we have received PDF files that were created under the Adobe 7.0...
3
by: crashonyou | last post by:
hello again..i've been searching for quite some time now already looking for a solution to printing word documents with python..same thing for internet explorer..i was experimenting around with some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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
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
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...

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.