Subject: Re: Using FOP on a ASP.NET server to convert FO to PDF From: "Wim Sandra" <[EMAIL PROTECTED]> === I've integrated FOP in a ASP.NET server by implementing a COM component. The COM components export a very simple interface with a method that takes some XML data, a XSL-FO stylesheet and writes a PDF file (or writes the PDF data to some memory). The COM component calls the FOP java methods with JNI (Java Native Interface).
Ultimately, in your C# ASP.NET application, we more or less write: FOPLib.Fop fop = new FOPLib.Fop(); fop.fop2File(xmlData,xsltData,outputFileName); Response.Redirect(outputFileName); or FOPLib.Fop fop = new FOPLib.Fop(); uint numBytes = fop.fop2Memory(xmlData,xsltData); byte [] bytes = new byte [numBytes]; renderer.read(bytes); Response.Expires = 0; Response.Buffer = true; Response.ContentType = @"application/pdf"; Response.BinaryWrite(bytes); Response.End(); Wim "Balaji Loganathan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > Did u able to install Tomcat with IIS.if so then > integrating FOP with .NET server is easy. > My suggestion is , > 1.Try to install Tomcat and run some sample servlet > examples. > 2.Try to configure FOP with Tomcat so that u can run > the FopServlet(a sample servlet which convert FO/XSL > to pdf)from the browser. > 3.Try to configure Tomcat with IIS > 4.Then u can do the same with .NET server. > > Documentation/steps/guidelines are available from > Tomcat,FOP packages. > Just give another try.It will work. > > Rgds > Balaji > > http://www.sold.com.au - SOLD.com.au > - Find yourself a bargain!
