Newbie needs help to print multiple datarows from xml

Hi everyone!

I am actually getting into reporting, I never had to deal with it so far but I want to add printing options to a bigger application. Currently I am using XML files to provide data, here is an example file with some simple dummy fields:

<?xml version="1.0" standalone="yes"?>
<DocumentElement>
<DataRow>
<Firstname>Anna</Firstname>
<Lastname>Mueller</Lastname>
</DataRow>
<DataRow>
<Firstname>Bernd</Firstname>
<Lastname>Schmidt</Lastname>
</DataRow>
</DocumentElement>

My application is written in C# and I am calling FastReport out of my Code. I made a simple *.frx file but I don't get it how to print multiple datarow's. I have read that I have to use a masterband but I cannot find one in my FastReportDesigner (I am sure FastReport 4.6 had one). I wrote it by calling FastReport several times (each time per datarow) but I am pretty sure there is an easy way to push all my data to FastReport and let my Report do all the work.

I am using FastReport for .NET 2.0 and I have a payware version. I have a feeling that I am missing a BIG point about reporting in general and of course I did some research.

I would be delighted and very thankful if someone could give me a little hint or example how to deal with XML + multiple datarows... Its not an option to use a SQL database or anything else, I wanna learn how to do it and the final application will be used with as less files/services as possible.


With best regards from Germany!

Comments

  • edited 6:06AM
    Hi Jay,

    First you need to create a datasource: DATA>ADD DATA SOURCE

    Then press button "New connection"

    As connection type choose "Xml database"

    Select your datafile and press OK

    Then, in your datawindow, you'll find your table

    Drag the fields on the Data band

    Run your report.

    That should do it...

    Greets

  • edited 6:06AM
    vroyk wrote: »
    Hi Jay,

    First you need to create a datasource: DATA>ADD DATA SOURCE

    Then press button "New connection"

    As connection type choose "Xml database"

    Select your datafile and press OK

    Then, in your datawindow, you'll find your table

    Drag the fields on the Data band

    Run your report.

    That should do it...

    Greets


    Hey, Thank You!

    That was the missing key, its finally working :-)

    Geetings!

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.