Bug 278604 - HTML Tables do not export to PDF/EXCEL
Summary: HTML Tables do not export to PDF/EXCEL
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.5.0   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: Future   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-01 07:13 EDT by Assaf CLA
Modified: 2011-07-25 01:58 EDT (History)
7 users (show)

See Also:


Attachments
Report that shows problem (14.96 KB, text/plain)
2009-06-01 07:13 EDT, Assaf CLA
no flags Details
File that shows problem (12.53 KB, text/plain)
2009-06-01 07:59 EDT, Assaf CLA
no flags Details
HTML file with replaced styles (as suggested that should be exported to PDF) (10.03 KB, text/html)
2009-07-05 10:18 EDT, Assaf CLA
no flags Details
Report the fails to export border in 2.5 Viewer but succeed in report designer (56.67 KB, text/plain)
2009-07-05 10:19 EDT, Assaf CLA
no flags Details
Test report which contains the Static HTML init (13.15 KB, text/plain)
2009-07-05 10:22 EDT, Assaf CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Assaf CLA 2009-06-01 07:13:59 EDT
Created attachment 137827 [details]
Report that shows problem

Build ID: 3.4.0

Steps To Reproduce:
1. See attached report
2. The report contains a single text field that is populated
   by text copeid from MS-WORD and pasted into a web 
   FCKEditor.Data was saved in DB and fetched into report  
   Text (HTML Content) Field.
3. Produce report in designer (run in viewer). -> Table 
    border is displayed.
4. Export report to PDF - Table Border is not displayed.
5. Export report to Excel - file won't open


More information:
Using Birt All in one 2.5M3.
Does not Work all in runtime 2.5S3
Comment 1 Assaf CLA 2009-06-01 07:58:32 EDT
I thought it had to do with copied data from MS WORD but actually it happens with regulat HTML Table code.
Also in this case export to PDF/WORD does not pass HTML table and excel does not open at all.

See new attachment.
Comment 2 Assaf CLA 2009-06-01 07:59:11 EDT
Created attachment 137833 [details]
File that shows problem
Comment 3 Gang Liu CLA 2009-06-02 04:40:28 EDT
Currently birt can not support border property on table tag, only can support style property.
Currently Case A  doesn't work, but case b should works
Case A:
<table border="1">
....
</table>

Case B
<table style="border-top-width: 1pt; border-top-style: solid; border-top-color: black;border-left-width: 1pt; border-left-style: solid; border-left-color: black;border-right-width: 1pt; border-right-style: solid; border-right-color: black; border-bottom-width: 1pt; border-bottom-style: solid; border-bottom-color: black;">
....
</table>
Comment 4 Assaf CLA 2009-06-02 04:55:29 EDT
(In reply to comment #3)
> Currently birt can not support border property on table tag, only can support
> style property.
> Currently Case A  doesn't work, but case b should works
> Case A:
> <table border="1">
> ....
> </table>
> Case B
> <table style="border-top-width: 1pt; border-top-style: solid; border-top-color:
> black;border-left-width: 1pt; border-left-style: solid; border-left-color:
> black;border-right-width: 1pt; border-right-style: solid; border-right-color:
> black; border-bottom-width: 1pt; border-bottom-style: solid;
> border-bottom-color: black;">
> ....
> </table>

-------------------------------------------------

Is this to be solved soon or do I need to use a workaround converting case A to case B ? 
Comment 5 Gang Liu CLA 2009-06-02 05:30:05 EDT
I think it can not be fixed in 2.5.0
Suggest using the workaround currently.
Comment 6 Assaf CLA 2009-07-05 10:16:19 EDT
This is very strange:

I used a workaround the replaces all styles of HTML table and td elements with the styling you provided:

The viewer - 2.5 still does not export the pdf correctly (no complete borders),
although , export from eclipse report designer itself (not the latest 2.5 but rather 2.5S3) does display the borders correctly in PDF..

Any ideas?

Thanks








(In reply to comment #5)
> I think it can not be fixed in 2.5.0
> Suggest using the workaround currently.

Comment 7 Assaf CLA 2009-07-05 10:18:01 EDT
Created attachment 140821 [details]
HTML file with replaced styles (as suggested that should be exported to PDF)

this same data was passed to a report which did not export the border to pdf through the viewer.
Comment 8 Assaf CLA 2009-07-05 10:19:09 EDT
Created attachment 140822 [details]
Report the fails to export border in 2.5 Viewer but succeed in report designer
Comment 9 Assaf CLA 2009-07-05 10:22:48 EDT
Created attachment 140823 [details]
Test report which contains the Static HTML init
Comment 10 Xiaoying Gu CLA 2010-09-13 04:38:47 EDT
Hi there,

The issue is has changed in the latest 2.6.0/2.6.1 build.

The table can be exported to pdf and excel now.

But RTL property of <table> tag is not supported in pdf and excel emitter.
Comment 11 Xiaoying Gu CLA 2010-09-13 04:46:36 EDT
And the align property of <div> tag is not supported in PDF/Excel