This sounds really interesting. When you run a com component you don't need a servlet for FOP or to integrate servlets into IIS? Very interesting!! How easy is it to write the component itself? And, if you can do this easily why is there a project for FOP C# at http://sourceforge.net/projects/fop-dotnet/ for a full implementation.



I'm finding Java really complicated compared with .NET so I hope there is some open source integration for FOP on it soon! My you I don't really know what a com component is so I .NET turns my brains to liquid also!

From: FOP Newsgroup (@Basebeans.com) <[EMAIL PROTECTED]>
Subject: Re: Using FOP on a ASP.NET server to convert FO to PDF
Date: Tue, 18 Jun 2002 14:10:01 -0700

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();




FOPLib.Fop fop = new FOPLib.Fop();

uint numBytes = fop.fop2Memory(xmlData,xsltData);

byte [] bytes = new byte [numBytes];


Response.Expires = 0;
Response.Buffer = true;
Response.ContentType = @"application/pdf";


"Balaji Loganathan" <[EMAIL PROTECTED]> wrote in message
> 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!

Send and receive Hotmail on your mobile device: http://mobile.msn.com

Reply via email to