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 1 1488
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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,...
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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,...
|
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,...
|
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...
| |