.NET web app for creating XML/XSL pdf report

Posted on 2007-10-16
Last Modified: 2013-11-18
Hi all,
We're at the end of doing a design for a .NET web application. We need to be able to create pdf reports for the user of the results that the system generates. So the end user is entering alot of personal financial information, we run rules and calculations against the data and give them a report with a list of tax calculations etc.

Clients want to be able to format these reports themselves, so they can lay them out the way they want to, even though the data is still the same.

My feeling is that the system should produce XML data which stores info on the results. Then the clients can apply their own XSLT to the XML. I've only done very basic stuff with XML and XSL before and it was all with files as opposed to from apps.

So the questions are:
Can .NET web apps generate XML data on a webpage on the fly?
Is it even feasible to use XSL to try and create pdf reports in a report builder way?
If there is XSL for pdf, can the resulting pdf be saved by a system or does it always have to be recreated?

Sorry this is all a bit vague.
Question by:CoreSupport
    1 Comment
    LVL 12

    Accepted Solution

    - Yes. This is quite common for web services. There are many different ways of creating the xml, eg using start elements, end elements, and such, DOM structures, or string construction.

    - Yes. The general method is to use XSLT to convert the XML into XSL-FO, and then process the XSL-FO with a XSL-FO processor to convert it into PDF. XSL-FO is somewhat like CSS with XML.

    A couple links on this:

    - Sure. Why wouldn't you save the file? As long as the data doesn't change, the PDF should be valid.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
    Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now