Hello, ALL: I have several reports that tried to pass a PDF(ByteArrayOutputStream) document in a servlet. All reports are working well, both in IE and Netscape, except only one report won't display in the Netscape 4.79 unless I press the reload button in the Netscape. I've tried setContentLength(baos.size()),flushing buffers, and closing response.( i use API in the iText.jar to create the dynamic PDF file).Can anyone help?
Thanks in advance Maria Document document = new Document(PageSize.A4,10,10,20,20); ByteArrayOutputStream baos = new ByteArrayOutputStream(); PdfWriter.getInstance(document,baos); /~~~~~ after create document ~~~~/ document.close(); response.setContentLength(baos.size()); baos.writeTo(response.getOutputStream()); baos.flush(); baos.close(); __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
