🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.reader
Article #3344

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

#3344
From: Michael_Gong
Date: Sat, 15 Nov 2008 04:27
31 lines
1373 bytes
Hi,

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.

Could anyone provide any suggestions?

By the way, I found some javascript code which was claimed to print pdf from a web page. But when I tried, the page pops up a warning message:

"File does not begin with '%PDF-'. "

Since title of the pop up window is 'Adobe Reader', I guess that the message is emitted by Adobe Reader. Does anyone know what the message mean ?

My code is :

html
head

function doit() {
var x = document.getElementById("doodad");
x.print();
}


/head
body

howdy
/body
/html

Thanks ahead !
Technical Details
Message-ID: <59b708bf.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!news4us.nl!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: 10273d,ef780dad4fde2fdf,start
X-Google-Attributes: gid10273d,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Michael_Gong@adobeforums.com
Newsgroups: adobe.reader
Subject: print pdf file from a web application in asp.net and C#
Message-ID: <59b708bf.-1@webcrossing.la2eafNXanI>
Date: Fri, 14 Nov 2008 20:27:35 -0800
Lines: 37
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!news4us.nl!webcrossing