Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 244882 - [Improve Report Layout Capabilities] Charts got clipped when exporting to PDF and DOC
Summary: [Improve Report Layout Capabilities] Charts got clipped when exporting to PDF...
Status: VERIFIED DUPLICATE of bug 240805
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.3.0   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 2.5.0 M5   Edit
Assignee: Gang Liu CLA
QA Contact: Tianli Zhang CLA
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2008-08-21 16:47 EDT by erlich CLA
Modified: 2009-02-05 04:03 EST (History)
3 users (show)

See Also:


Attachments
patch file for word emitter (1.25 KB, patch)
2008-09-08 22:45 EDT, JingwenShen CLA
no flags Details | Diff
modified class in the jar (31.36 KB, application/octet-stream)
2008-09-10 01:51 EDT, JingwenShen CLA
no flags Details
jar file for word emitter (44.05 KB, application/octet-stream)
2008-09-16 21:20 EDT, JingwenShen CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description erlich CLA 2008-08-21 16:47:04 EDT
I have a report with charts, with dimension fixed to 900x700. When i execute it on   web they look fine.. but when I export them to PDF or doc the appear clipped.. it  looks like the emitter is trying to prevent the chart for going outside the page..  but the problem with it is that it appears clipped..
On BIRT 2.2 the chart would be resized to adjust to page size...
Is there any way to configure the size to prevent this to happen??
Comment 1 Gang Liu CLA 2008-08-22 04:05:45 EDT
Please refer to bug #241194.
Comment 2 erlich CLA 2008-08-22 09:43:15 EDT
Yes, but that bug is only for PDF, i need it for PDF and DOC.
I need the patch for 2.3 release please, for both formats..
The patch submitted there won't work for me as it's for 2.2.2.
Comment 3 JingwenShen CLA 2008-08-25 00:48:08 EDT
In some cases, birt should not adjust the chart's height and width in doc.
Please refer to bug #232905
https://bugs.eclipse.org/bugs/show_bug.cgi?id=232905
Comment 4 Wei Yan CLA 2008-08-25 00:51:22 EDT
as there are two total different feature request for this issue, BIRT needs to define a new property max-height to archive the target.

defer to 2.5.0.
Comment 5 erlich CLA 2008-09-08 16:51:07 EDT
Could you submit me a patch just to make the exporting work as it did in 2.2?
As far as a i've seen on 2.2 source code.. it's just adding 3 or 4 lines..
I tried to do it but it didn't let me do it.. could you do it for me??
thanks

the version is 2.3 release
emitter jar is org.eclipse.birt.report.engine.emitter.wpml_2.3.0.v20080606.jar
Comment 6 JingwenShen CLA 2008-09-08 22:45:59 EDT
Created attachment 112031 [details]
patch file for word emitter
Comment 7 erlich CLA 2008-09-09 09:30:29 EDT
could you also provide it for PPT and PDF?? Thanks 
org.eclipse.birt.report.engine.emitter.ppt_2.3.0.v20080606.jar
org.eclipse.birt.report.engine.emitter.pdf_2.3.0.v20080606.jar
Comment 8 erlich CLA 2008-09-09 10:04:27 EDT
Could you provide me with the three jar files patched?
I have missed something in the building and it doesn't work for me..
Comment 9 erlich CLA 2008-09-09 10:34:08 EDT
The released birt source for 2.3 build file seems to be outdated..
javacSource and javacTarget is set to 1.3 and 1.2
If i changed them to 1.5 i get the following error
    [javac] bad class file: C:\BIRT\birt-source-2_3_0\plugins\org.eclipse.birt.report.engine\bin\org\eclipse\birt\report\engine\content\IStyle.class
    [javac] class file has wrong version 50.0, should be 49.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac] import org.eclipse.birt.report.engine.content.IStyle;

Please try to give me the jars
Thanks
Comment 10 JingwenShen CLA 2008-09-10 01:51:27 EDT
Created attachment 112163 [details]
modified class in the jar

class file that can been replaced in org.eclipse.birt.report.engine.emitter.wpml.jar
Comment 11 erlich CLA 2008-09-10 09:31:41 EDT
You attached the java file.. not the class file.. please attach the WordEmitterImpl.class file
Also please provide the same fix for PPT and PDF
Maybe the best is if you can provide me with the jar files directly..
Comment 12 erlich CLA 2008-09-16 09:23:16 EDT
Any update?
Comment 13 JingwenShen CLA 2008-09-16 21:20:41 EDT
Created attachment 112718 [details]
jar file for word emitter
Comment 14 erlich CLA 2008-09-17 10:26:07 EDT
Great it worked :)
Could you provide the same for PPT and PDF??
Thanks :)
Comment 15 Gang Liu CLA 2008-09-17 22:21:01 EDT
I can not provide a simple patch for 2.3.0 for PDF and PPT since we need do a lots of changes. so it is scheduled to 2.5.0
Thanks
Comment 16 Gang Liu CLA 2009-01-22 21:44:02 EST

*** This bug has been marked as a duplicate of bug 240805 ***
Comment 17 Tianli Zhang CLA 2009-02-05 04:03:41 EST
Verified.