pdf export for text element containing html table [message #195637] |
Mon, 16 October 2006 08:25  |
Eclipse User |
|
|
|
Originally posted by: thomaskr.segue.at
This is a multi-part message in MIME format.
--------------080600080304020101000204
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
hi,
i have a text element which contains a html statement to create a table.
the table is rendered correctly in html. however when i try to export
the report to pdf, it is empty.
attached is a simple example for demonstration
--------------080600080304020101000204
Content-Type: text/xml;
name="bar.rptdesign"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="bar.rptdesign"
<?xml version="1.0" encoding="UTF-8"?>
<!-- Written by Eclipse BIRT 2.0 -->
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.6" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 2.1.0.N20060628-1351 Build <20060628-1537></property>
<property name="units">in</property>
<property name="comments">Copyright (c) 2006 <<Your Company Name here>></property>
<method name="initialize"><![CDATA[var width1 = 40;
var width2 = 60;]]></method>
<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="1369">
<property name="height">0.687in</property>
<property name="width">2.104in</property>
<column id="1376">
<property name="width">2.104in</property>
</column>
<header>
<row id="1370">
<property name="height">20px</property>
<cell id="1371"/>
</row>
</header>
<detail>
<row id="1372">
<cell id="1373">
<text id="1368">
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<table border="2" cellpadding="0" cellspacing="0" width="100%">
<tr height="10px">
<td bgcolor="blue" width="60%"></td><td bgcolor="orange" width="40%"></td>
</tr>
</table>]]></text-property>
</text>
</cell>
</row>
</detail>
<footer>
<row id="1374">
<property name="height">0.239in</property>
<cell id="1375"/>
</row>
</footer>
</table>
</body>
<list-property name="images">
<structure>
<property name="name">green.gif</property>
<property name="data"> R0lGODlhCgAKAIAAAACAAAAAACH5BAAAAAAALAAAAAAKAAoAAAIIhI+py+0P YysAOw== </property>
</structure>
<structure>
<property name="name">red.gif</property>
<property name="data"> R0lGODlhCgAKAIAAAP8AAAAAACH5BAAAAAAALAAAAAAKAAoAAAIIhI+py+0P YysAOw== </property>
</structure>
</list-property>
</report>
--------------080600080304020101000204--
|
|
|
|
|
Re: pdf export for text element containing html table [message #205533 is a reply to message #199596] |
Fri, 08 December 2006 03:41  |
Eclipse User |
|
|
|
Originally posted by: screek.gmx.de
Hi,
did you find a solution or workaround for this problem in the meantime?
Thanks,
Christian
"Christian Eckert" <screek@gmx.de> wrote in message
news:eiphs4$nfd$1@utils.eclipse.org...
> Hi,
>
> I just checked this and I could reproduce the error.
> Unfortunatelly I have no solution for this problem. Looks like a bug.
>
> Regards,
> Christian
>
> "Thomas Krupa" <thomaskr@segue.at> wrote in message
> news:eimts0$ime$2@utils.eclipse.org...
>> still no comments on this issue?
>>
>>
>>
>>> hi,
>>>
>>> i have a text element which contains a html statement to create a table.
>>> the table is rendered correctly in html. however when i try to export
>>> the report to pdf, it is empty.
>>> attached is a simple example for demonstration
>>>
>>>
>>> ------------------------------------------------------------ ------------
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <!-- Written by Eclipse BIRT 2.0 -->
>>> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.6"
>>> id="1">
>>> <property name="createdBy">Eclipse BIRT Designer Version
>>> 2.1.0.N20060628-1351 Build <20060628-1537></property>
>>> <property name="units">in</property>
>>> <property name="comments">Copyright (c) 2006 <<Your Company
>>> Name here>></property>
>>> <method name="initialize"><![CDATA[var width1 = 40;
>>> var width2 = 60;]]></method>
>>> <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="1369">
>>> <property name="height">0.687in</property>
>>> <property name="width">2.104in</property>
>>> <column id="1376">
>>> <property name="width">2.104in</property>
>>> </column>
>>> <header>
>>> <row id="1370">
>>> <property name="height">20px</property>
>>> <cell id="1371"/>
>>> </row>
>>> </header>
>>> <detail>
>>> <row id="1372">
>>> <cell id="1373">
>>> <text id="1368">
>>> <property name="contentType">html</property>
>>> <text-property
>>> name="content"><![CDATA[<table border="2" cellpadding="0"
>>> cellspacing="0" width="100%">
>>> <tr height="10px">
>>> <td bgcolor="blue" width="60%"></td><td bgcolor="orange"
>>> width="40%"></td>
>>> </tr>
>>> </table>]]></text-property>
>>> </text>
>>> </cell>
>>> </row>
>>> </detail>
>>> <footer>
>>> <row id="1374">
>>> <property name="height">0.239in</property>
>>> <cell id="1375"/>
>>> </row>
>>> </footer>
>>> </table>
>>> </body>
>>> <list-property name="images">
>>> <structure>
>>> <property name="name">green.gif</property>
>>> <property
>>> name="data"> R0lGODlhCgAKAIAAAACAAAAAACH5BAAAAAAALAAAAAAKAAoAAAIIhI+py+0P YysAOw== </property>
>>> </structure>
>>> <structure>
>>> <property name="name">red.gif</property>
>>> <property
>>> name="data"> R0lGODlhCgAKAIAAAP8AAAAAACH5BAAAAAAALAAAAAAKAAoAAAIIhI+py+0P YysAOw== </property>
>>> </structure>
>>> </list-property>
>>> </report>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04961 seconds