I forward your question to the mailing list, but this is the kind of problems
that will work on 99 PC's configurated in a similar way, but not on the 1
that is configurated slightly different.
br,
Bruno
[EMAIL PROTECTED] wrote:
Hi, Bruno: I am using itext to dynamically create pdf pages in browsers. For Acrobat Reader 5,my code can create PDF file in both IE(5.5) and NetScape(4.7 and 6). When I use Acrobat Reader 6(I removed Acrobat Reader 5.5 and restart my machine and then I installed Acrobat Reader 6)), the same code only works in NetScape(4.7, 6). It doesn't work for IE(5.5) at all. Below is the code I am using to create the pdf in browser:
private void showReport(byte[] report, String mimeType, String filename)throws ApplicationException { String contentType = new StringBuffer(50).append(mimeType).append(";name=").append(filename).toString(); String contentDisp = new StringBuffer(50).append("inline;filename=").append(filename).toString(); hasOutputAlreadyBeenSent = true; setNoCach(); ivResponse.setContentType(contentType); ivResponse.setHeader("Content-Disposition", contentDisp); ivResponse.setContentLength(reportSize); try { ServletOutputStream out = ivResponse.getOutputStream(); out.write(reportChunk); out.flush(); } catch (java.io.IOException e) { throw new ApplicationException(REPORT_CANNOT_BE_GENERATED); } }
Could you please point out the problem in my code or the problem with Acrobat Reader 6 in IE or any way to walk around? It is very urgent. Right now the project is in system testing phase. Thank you very much !
Best Regards Gary Tang Consultant
M Systems Group 130 King St. West P.O. Box 427, Suite 1800 Toronto, ON M5X 1E3
Tel: (905) 293-5233 Fax: (416) 865-3369 [EMAIL PROTECTED] www.msystemsgroup.com
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
