Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360284

Summary: grid rows and content wrapping on PDF page break
Product: z_Archived Reporter: Donald Hayes <dbh03079>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: NEW --- QA Contact: Hao Zhou <hao.zhou>
Severity: normal    
Priority: P3 CC: bluesoldier, jouyang
Version: 2.6.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
rptdesign file
none
resulting PDF file none

Description Donald Hayes CLA 2011-10-07 16:47:46 EDT
Build Identifier: BIRT V2.6.X, V3.7.0

Using PDF output, if a grid is being rendered at the bottom of the page so that it will wrap to the next page, under certain circumstances the contents with a grid row will wrap inconsistently.  See the attached rptdesign and PDF file as an example.

The issue happens often when using the Unicode "ballot box" characters.  It may also be related to the margin values being set through a CSS style in order to make things visually line up better.

The problem exists in BIRT V2.6.X and also in V3.7.0.

Reproducible: Always

Steps to Reproduce:
1. Open attached rptdesign file
2. View report as PDF
Comment 1 Donald Hayes CLA 2011-10-07 16:48:21 EDT
Created attachment 204776 [details]
rptdesign file
Comment 2 Donald Hayes CLA 2011-10-07 16:48:54 EDT
Created attachment 204777 [details]
resulting PDF file

note grid wrapping at bottom of page
Comment 3 Jun Ouyang CLA 2011-10-12 22:56:58 EDT
Caused by: com.actuate.reportapi.enginemanager.JREMException: There is non-fatal error. Cause : Can not load the report query: 247. Errors occurred when generating the report document for the report element with ID 247. (Element ID:247)
	at org.eclipse.birt.report.engine.data.dte.DataPresentationEngine.doExecuteQuery(DataPresentationEngine.java:164)
	at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:267)
	at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1905)
	at org.eclipse.birt.report.engine.internal.document.v4.ReportItemExecutor.executeQuery(ReportItemExecutor.java:412)
	at org.eclipse.birt.report.engine.internal.document.v4.TableItemExecutor.doExecute(TableItemExecutor.java:72)
	at org.eclipse.birt.report.engine.internal.document.v4.ReportItemExecutor.execute(ReportItemExecutor.java:294)
	at org.eclipse.birt.report.engine.internal.document.v4.ContainerExecutor.prepareChildExecutor(ContainerExecutor.java:226)
	at org.eclipse.birt.report.engine.internal.document.v4.ContainerExecutor.hasNextChild(ContainerExecutor.java:110)
	at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.hasNextChild(WrappedReportItemExecutor.java:86)
	at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.hasNextChild(WrappedReportItemExecutor.java:86)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:62)
	at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
	at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
	at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:111)
	at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:160)
	at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
	at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
	at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
	at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:132)
	at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
	at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)
	at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
	at org.eclipse.birt.report.engine.api.impl.RenderTask$PageRangeRender.render(RenderTask.java:681)
	at org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:294)
	at com.actuate.birt.report.engine.internal.ActuateRenderTask.render(ActuateRenderTask.java:50)
	at com.actuate.reportapi.engine.birt.ViewReportTask.renderReport(Unknown Source)
	at com.actuate.reportapi.engine.birt.ViewReportTask.doTask(Unknown Source)
	at com.actuate.reportapi.engine.Task.execute(Unknown Source)
	at com.actuate.reportapi.enginemanager.ThreadPool$ControlRunnable.run(Unknown Source)
Comment 4 Jun Ouyang CLA 2011-10-12 22:58:43 EDT
Sorry, made a mistake. Please ignore above comment.