I finally got everything working in IE and Netscape ..
thanks to all who helped out.


Amit wrote:

> Hi all,
>     I finally got all my stuff working in netscape but not in IE6.
> In IE6 there just a blank page. No errors nothing. I am on WInNT and
> using Acrobat reader5
> Here is my code:
>
> public void makePDF(String xmlFile, String xslFile,
>                          HttpServletResponse response) throws
> ServletException {
>
>    java.io.Reader reader;
>    Writer writer = new StringWriter();
>
>         try {
>
>             ByteArrayOutputStream out = new ByteArrayOutputStream();
>   XSLTransform.transform(xmlFile,
>                                        xslFile, writer);
>
>   writer.flush();
>             writer.close();
>
>   reader = new StringReader(writer.toString());
>
>       Driver driver = new Driver(new InputSource(reader), out);
>       driver.setRenderer(Driver.RENDER_PDF);
>           driver.run();
>             byte[] content = out.toByteArray();
>   response.setContentType("application/pdf");
>             response.setContentLength(content.length);
>             response.getOutputStream().write(content);
>             response.getOutputStream().flush();
>
>         } catch (Exception ex) {
>             throw new ServletException(ex);
>         }
>
>     }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to