Monday, March 22, 2010

XML Export


From 3.0 version a report can be exported to xml .

Generated predefined tags  are :

<document> for the exported file
<record> for any row from layout
<text> for static text
<image> for images

All the other tags for database columns, functions, hyperlinks, parameters, variables are represented by the name of the entities.

Some simple example for a report with just the columns in the detail band :
<?xml version="1.0" standalone="yes"?>
<document>
    <meta name="author" content="Advantage Software Factory"/>
    <meta name="creator" content="NextReports 3.0"/>
    <meta name="subject" content="Created by NextReports Designer 3.0"/>
    <meta name="date" content="Tue Mar 09 14:36:10 EET 2010"/>
    <meta name="keywords" content="www.next-reports.com"/>
    <record>
        <Project>Boom Server</Project>
        <First_x0020_Name>Brandon</First_x0020_Name>
        <Last_x0020_Name>Dunn</Last_x0020_Name>
        <Hours>2.0</Hours>
        <Date>2008-09-01</Date>
        <Activity_x0020_Code>WRK</Activity_x0020_Code>
    </record>
    ....... 
</document> 

No comments: