On 2008-11-15 05:51, Mike wrote:
Quote:
I have a web application written in asp.net and C#. It generates a
bunch of pdf file using crystal report. Now I need to batch print all
those pdf files from a web page to user's local printer.
I don't think that's possible, or at least not without the help of
ActiveX objects.
Quote:
By the way, I found some javascript code which was claimed to print
pdf from a web page.
If that's the code you've posted, it would only open one PDF document
with the Acrobat Reader plugin (if it even works).
Quote:
But when I tried, the page pops up a warning
message:
>
"File does not begin with '%PDF-'. "
That means that the PDF plugin doesn't recognize the resource as a valid
PDF file ("%PDF-...." is the PDF file header). The file may be missing,
or invalid, or the security settings don't allow opening local files.
Quote:
<script>
function doit() {
var x = document.getElementById("doodad");
x.print();
DOM nodes don't have a print() method.
Why don't you just merge the PDF files on the backend, and let the user
print it all from a single file?
- Conrad