The code I previously provide had a typo so here is the correct one. I'm having 
a really hard time figuring this on out.


Message: 9
Date: Mon, 11 Jul 2005 09:07:57 -0700
From: "Francisco Carvalho" <[EMAIL PROTECTED]>
To: <itext-questions@lists.sourceforge.net>
Subject: [iText-questions] AutoPrint

I'm writing an ASP.NET application using iTextdotNET. The application is =
"wizard like". At the previous to last screen a PDF letter is displayed to =
the user (embed in a HTML page) and the user is asked to select the =
delivery method of the letter (email or print). If (s)he selected print, =
the application takes the user to the summary page where it should pop-up =
the print dialog box. I'm able to get the app to work in my dev environment=
 running XP but when I move the application to a win2k machine the print =
option does not work.=20

Any suggestions?

here is the code that I'm using?

PdfReader reader = new PdfReader(sPDFFile);
string output = sPDFFile;
PdfStamper stamp2 = new PdfStamper(reader, new 
System.IO.FileStream(output,FileMode.Create));
stamp2.addJavaScript("this.print(true);");
stamp2.close();

pdfPanel.Attributes.Add("src", output);


HTML side:
<EMBED ID="pdfPanel" HEIGHT="200" WIDTH="100%" runat="server" 
type="Application/pdf; charset="utf-8"></EMBED>


thanks
Francisco




-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to