On Apr 24, 6:16*pm, "George Ter-Saakov" <gt-...@cardone.comwrote:
It's going to be hard to print document from server to clients printer.
Although it's possible.
1st step: You need to register printer on a server. Google "print from
Windows service" to see how to do it.
2nd step: Adobe Arobat support "DDE automation" or simple command string. So
something like
AcroRd32.exe /t "C:\test.pdf" "\\servername\printername" "AdobePS Tektronix
Phaser 840" "123.45.678.910"
will work
Visit this linkhttp://support.adobe.com/devsup/devsup.nsf/docs/52080.htm
---------------------------------------------------------------------------*--------
How about merging all 300 pdfs into 1 big PDF file? Then you can open up it
in browser and have user to click "Print" button only once.
Then you do not need to mess with the printers/adobe....
Look for ITextSharp - free C# library to work with PDF.
George.
"S_K" <steve_kers...@yahoo.comwrote in message
news:9b**********************************@p25g2000 pri.googlegroups.com...
On Apr 22, 3:06 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.netwrote:
"S_K" <steve_kers...@yahoo.comwrote in message
news:34**********************************@e39g2000 hsf.googlegroups.com...
>>I have a directory full of a number of .PDF files that I need to
>>print. Is there any simple way to do this?
>>Using PdfReader purhaps?
>As this is an ASP.NET newsgroup, are you trying to print these
>documents
>via
>a web application i.e. through a web browser...?
I'm sorry. It's an ASP.NET web application.
You're not going to be able to persuade a web application to control a
printer automatically for security reasons - all modern web browsers are
designed specifically to prevent this...
Your best bet would be to make the PDF documents available as hyperlinks..
This would allow the user to display the documents individually and print
them as required...
Create a small thick client application (let's call it the print
manager) that gets installed on the dealers machine's. This can be a
simple executable that need not run as a service or even in the task
tray. Once all of the documents have been generated (as separate
documents on the server) and saved to the appropriate location on the
server (preferably in the database) a special document should be
downloaded to the client (called a manifest) that contains a list of
all the files (or file IDs) that need to be printed as well as their
print options. The manifest should have a unique extension that is
recognized and associated with the print manager such that when the
file is opened, the print manager automatically launches. The print
manager will download each document listed in the manifest and
automatically print it. Because the print manager runs as a thick
client, it can directly communicate with the printer, setting the
approprate page size, orientation and duplex settings. Alternatively,
the manifest file could contain only the list of documents and the
print options could be sent as meta-data along with the document.
Prefered method for communicating with the server