print pdf file from a web application in asp.net and C#


hi,

i have web application written in asp.net , c#. generates bunch of pdf file using crystal report. need batch print pdf files web page user's local printer.

could provide suggestions?

by way, found javascript code claimed print pdf web page. when tried, page pops warning message:

"file not begin '%pdf-'. "

since title of pop window 'adobe reader', guess message emitted adobe reader. know message mean ?

my code :

<html>

<head>

<script>

function doit() {

var x = document.getelementbyid("doodad");

x.print();

}

</script>



</head>

<body>

<embed id="doodad" src ="c:/test2.pdf" width="0" height="0"

name="whatever">

<button onclick="doit()">howdy</button>

</body>

</html>


thanks ahead !



More discussions in Acrobat Reader


adobe

Comments

Popular posts from this blog

sd card Could not find FAT16/FAT32 partition [solved]

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

DHT11 Time out error using v0.4.1library