.NETGURU
XSL Transform from XML to PDF in .NET
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngxml' list.


Rachit Verma
I wanted to know if it is possible to transform an XML file to pdf
output in ASP.NET web application using XSL stylesheet? If so then
how??

_________________________________________________________
There is always a better job for you at Monsterindia.com.
Go now http://monsterindia.com/rediffin/

Reply to this message...
 
    
Brian W. Spolarich

| -----Original Message-----
| From: Rachit Verma [mailto:Click here to reveal e-mail address]
| Sent: Wednesday, July 03, 2002 7:23 AM
| To: aspngxml
| Subject: [aspngxml] XSL Transform from XML to PDF in .NET
|=20
|=20
| I wanted to know if it is possible to transform an XML file to pdf=20
| output in ASP.NET web application using XSL stylesheet? If so then=20
| how??

The best (only?) way I know of generating PDF from XML is to use FOP =
(Formatting Objects Processor), an Apache implementation of the XSL =
Formatting Objects (XSL-FO) specification.

http://xml.apache.org/fop/index.html

FOP is implemented in Java, so this begs the question of how to access =
Java classes/code from within .NET.

Below is a note I sent out a while back addressing that particular =
issue, regarding FOP as well.

My recommendation would be, if you're using VS.NET to do .NET =
development, to try the Visual J# .NET approach and let us know if =
you're able to get things working. My understanding is that you should =
be able to instantiate objects from Java classes in C# and call their =
methods seamlessly using the Visual J# .NET redistributable package (but =
I haven't tried it).

Regards,

-brian

---

| 1. I've been reading about FOP to implement XML to PDF transformation
| using XSL formatting objects. If this route is taken, what=20
| does VS.NET have to offer?

To my knowledge there are no FOP implementations for .NET, and the =
mature ones are the Java ones.

That said, there are ways to deal with Java in the .NET framework. =
One product, Java/.NET by Intrinsync uses .NET remoting and Java RMI to =
provide pass by reference and pass by value support between the two =
environments. Its not completely straightforward, but I bet you could =
get at the classes you need this way.

http://www.devx.com/dotnet/articles/ir051402/ir051402-1.asp

The other way would be to use the Microsoft Visual J# .NET VM to run =
these:

http://msdn.microsoft.com/visualj/jsharp/beta.asp

You can download the Visual J# IDE (integrated w/ VS.NET) or just the =
runtime piece. This is currently in beta. =20

| 2. There are other commercial products out there (one being
| http://big.faceless.org/products/report/index.jsp) that bypass XML
| formatting objects. =20
|=20
| Are there other alternatives that are cost-efficient and that I can
| implement quite easily and quickly? I don't know if there are ways to
| avoid licensing headaches, but if this is a given, I want to invest in
| sound products. Please advise. Thank you in advance.

I think FOP is probably the cleanest way to the transformation, and if =
you can get the Visual J# piece to work that would be the fastest and =
cheapest route. I believe the RTM version of Visual J# .NET will be =
released as part of the MSDN subscription (i.e. bundled with VS.NET).

If you do try this let us know what success you have and any pointers.

Best regards,

-bws =20

Reply to this message...
 
    
Andre Berkowitz
Look at http://www.xmlforasp.net/codeSection.aspx?csID=14

-----Original Message-----
From: Rachit Verma [mailto:Click here to reveal e-mail address]
Sent: Wednesday, July 03, 2002 4:23 AM
To: aspngxml
Subject: [aspngxml] XSL Transform from XML to PDF in .NET

I wanted to know if it is possible to transform an XML file to pdf
output in ASP.NET web application using XSL stylesheet? If so then
how??

_________________________________________________________
There is always a better job for you at Monsterindia.com.
Go now http://monsterindia.com/rediffin/

| [aspngxml] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngxml.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification