Community
Participate
Working Groups
I have create a minimal .rptdesign file in eclipse helios using Birt 2.6.0 with the below xml file as a datasource: <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> I have the created a table and bound it to a dataset with the following rowmapping: /note and the following columnmapping: Column Name: to Data Type String XPath Exp.: /to On the table I have made bounds around the whole table and around the details row. Further I have added a 10 point padding to the data item in the details row (I have also tried to add the padding to the cell instead but get the same result). When I preview and export to PDE everything looks fine. But when I export to word (word 2010) there is no bounds around the details and there is not padding. PDE: http://img831.imageshack.us/img831/2213/pdfd.png Word: http://img543.imageshack.us/img543/6148/word.png Any ideas why the output is wrong when exporting to word? The resulting report can be seen below: <?xml version="1.0" encoding="UTF-8"?> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.21" id="1"> <property name="createdBy">Eclipse BIRT Designer Version 2.6.0.v20100531 Build <2.6.0.v20100609-1613></property> <property name="units">in</property> <property name="iconFile">/templates/blank_report.gif</property> <property name="bidiLayoutOrientation">ltr</property> <property name="imageDPI">110</property> <data-sources> <oda-data-source extensionID="org.eclipse.datatools.enablement.oda.xml" name="Data Source" id="7"> <property name="FILELIST">C:\Users\mm\workspace_helios_reports\gg\bb.xml</property> </oda-data-source> </data-sources> <data-sets> <oda-data-set extensionID="org.eclipse.datatools.enablement.oda.xml.dataSet" name="Data Set" id="8"> <structure name="cachedMetaData"> <list-property name="resultSet"> <structure> <property name="position">1</property> <property name="name">to</property> <property name="dataType">string</property> </structure> </list-property> </structure> <property name="dataSource">Data Source</property> <list-property name="resultSet"> <structure> <property name="position">1</property> <property name="name">to</property> <property name="nativeName">to</property> <property name="dataType">string</property> <property name="nativeDataType">12</property> </structure> </list-property> <xml-property name="queryText"><![CDATA[table0#-TNAME-#table0#:#[/note]#:#{to;STRING;/to}]]></xml-property> <xml-property name="designerValues"><![CDATA[<?xml version="1.0" encoding="UTF-8"?> <model:DesignValues xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design" xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel"> <Version>1.0</Version> <design:ResultSets derivedMetaData="true"> <design:resultSetDefinitions> <design:resultSetColumns> <design:resultColumnDefinitions> <design:attributes> <design:name>to</design:name> <design:position>1</design:position> <design:nativeDataTypeCode>12</design:nativeDataTypeCode> <design:precision>-1</design:precision> <design:scale>-1</design:scale> <design:nullability>Unknown</design:nullability> </design:attributes> <design:usageHints> <design:label>to</design:label> <design:formattingHints/> </design:usageHints> </design:resultColumnDefinitions> </design:resultSetColumns> <design:criteria/> </design:resultSetDefinitions> </design:ResultSets> </model:DesignValues> ]]></xml-property> <list-property name="privateDriverProperties"> <ex-property> <name>MAX_ROW</name> <value>-1</value> </ex-property> <ex-property> <name>XML_FILE</name> </ex-property> </list-property> </oda-data-set> </data-sets> <styles> <style name="report" id="4"> <property name="fontFamily">sans-serif</property> <property name="fontSize">10pt</property> </style> <style name="crosstab-cell" id="5"> <property name="borderBottomColor">#CCCCCC</property> <property name="borderBottomStyle">solid</property> <property name="borderBottomWidth">1pt</property> <property name="borderLeftColor">#CCCCCC</property> <property name="borderLeftStyle">solid</property> <property name="borderLeftWidth">1pt</property> <property name="borderRightColor">#CCCCCC</property> <property name="borderRightStyle">solid</property> <property name="borderRightWidth">1pt</property> <property name="borderTopColor">#CCCCCC</property> <property name="borderTopStyle">solid</property> <property name="borderTopWidth">1pt</property> </style> <style name="crosstab" id="6"> <property name="borderBottomColor">#CCCCCC</property> <property name="borderBottomStyle">solid</property> <property name="borderBottomWidth">1pt</property> <property name="borderLeftColor">#CCCCCC</property> <property name="borderLeftStyle">solid</property> <property name="borderLeftWidth">1pt</property> <property name="borderRightColor">#CCCCCC</property> <property name="borderRightStyle">solid</property> <property name="borderRightWidth">1pt</property> <property name="borderTopColor">#CCCCCC</property> <property name="borderTopStyle">solid</property> <property name="borderTopWidth">1pt</property> </style> </styles> <page-setup> <simple-master-page name="Simple MasterPage" id="2"> <page-footer> <text id="3"> <property name="contentType">html</property> <text-property name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property> </text> </page-footer> </simple-master-page> </page-setup> <body> <table id="9"> <property name="borderBottomColor">#000000</property> <property name="borderBottomStyle">solid</property> <property name="borderBottomWidth">medium</property> <property name="borderLeftColor">#000000</property> <property name="borderLeftStyle">solid</property> <property name="borderLeftWidth">medium</property> <property name="borderRightColor">#000000</property> <property name="borderRightStyle">solid</property> <property name="borderRightWidth">medium</property> <property name="borderTopColor">#000000</property> <property name="borderTopStyle">solid</property> <property name="borderTopWidth">medium</property> <property name="dataSet">Data Set</property> <list-property name="boundDataColumns"> <structure> <property name="name">to</property> <text-property name="displayName">to</text-property> <expression name="expression" type="javascript">dataSetRow["to"]</expression> <property name="dataType">string</property> </structure> </list-property> <column id="22"/> <column id="23"/> <column id="24"/> <header> <row id="10"> <cell id="11"> <label id="25"> <property name="fontWeight">bold</property> <property name="textAlign">left</property> <text-property name="text">to:</text-property> </label> </cell> <cell id="12"/> <cell id="13"/> </row> </header> <detail> <row id="14"> <property name="borderBottomColor">#000000</property> <property name="borderBottomStyle">solid</property> <property name="borderBottomWidth">medium</property> <property name="borderLeftColor">#000000</property> <property name="borderLeftStyle">solid</property> <property name="borderLeftWidth">medium</property> <property name="borderRightColor">#000000</property> <property name="borderRightStyle">solid</property> <property name="borderRightWidth">medium</property> <property name="borderTopColor">#000000</property> <property name="borderTopStyle">solid</property> <property name="borderTopWidth">medium</property> <cell id="15"> <data id="26"> <property name="whiteSpace">nowrap</property> <property name="resultSetColumn">to</property> </data> </cell> <cell id="16"/> <cell id="17"/> </row> </detail> <footer> <row id="18"> <cell id="19"/> <cell id="20"/> <cell id="21"/> </row> </footer> </table> </body> </report>
Duplicated of bug 264626. Workaround is to set border on row cell. *** This bug has been marked as a duplicate of bug 264626 ***
(In reply to comment #1) > Duplicated of bug 264626. > > Workaround is to set border on row cell. > > *** This bug has been marked as a duplicate of bug 264626 *** Ok but what about the missing indention? As can be seen from the screenshots only the padding is inserted when exporting to PDF.
Padding and Margin properties are not supported in Word. Please see detail info in: https://bugs.eclipse.org/bugs/show_bug.cgi?id=180657 Mark this bug as dup of bug 264626 *** This bug has been marked as a duplicate of bug 264626 ***