hi,i am new here.
my source is :(in the method of service(request,response) of a servlet)
ServletOutputStream out = res.getOutputStream();
ByteArrayOutputStream m_baos = new ByteArrayOutputStream();
Document m_document = new Document();
PdfWriter pw = PdfWriter.getInstance(m_document,m_baos);
PdfContentByte pcb = pw.getDirectContent();
m_document.open();
m_document.add(new Paragraph(new Date().toString()));
PdfPTable table = new PdfPTable(1);
table.setTotalWidth(200);
PdfPCell cell = new PdfPCell(new Phrase("aaaaaaaaaa"));
table.addCell(cell);
//******************
m_document.newPage();
//******************
table.writeSelectedRows(0,1,21,500,pcb);
table = new PdfPTable(1);
table.setTotalWidth(200);
cell = new PdfPCell(new Phrase("aaaaaaaaaa"));
table.addCell(cell);
table.writeSelectedRows(0,1,21,500,pcb);
res.setContentType("application/pdf");
m_document.close();
m_baos.writeTo(out);
res.setContentLength(m_baos.size());
out.flush();
m_baos.close();
The problem is that if i use the "newPage()" method of Document-object,
there will be nothing on the IE with the version of 5.5.
But it works OK with the IE6.0.
I need help!
tnanks.
Envirement:W2k,tomcat4.0,
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions