Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334578 - Postscript Files do print correctly with diff page sizes
Summary: Postscript Files do print correctly with diff page sizes
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.1   Edit
Hardware: PC Windows XP
: P3 major with 1 vote (vote)
Target Milestone: 3.7.1   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 15:06 EST by alexh572000 CLA
Modified: 2011-07-01 02:25 EDT (History)
4 users (show)

See Also:


Attachments
test file (5.28 KB, application/force-download)
2011-01-18 14:30 EST, alexh572000 CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description alexh572000 CLA 2011-01-17 15:06:48 EST
A postscript file created by brit engine, does print correctly when the report has difference size paper in the report.  

Example      Page A - 8.5*11
             Page B - 11*17

page A prints fine 
Page B prints on 8.5*11 crop the the page
Comment 1 Wei Yan CLA 2011-01-18 13:28:39 EST
BIRT layout the report on the master page defined in the report design, so it won't changed with the page size of the printer.

If the print size is different with the master page, you should change the master page size in the design.
Comment 2 alexh572000 CLA 2011-01-18 13:59:12 EST
(In reply to comment #1)
> BIRT layout the report on the master page defined in the report design, so it
> won't changed with the page size of the printer.
> 
> If the print size is different with the master page, you should change the
> master page size in the design.

Page A Master page is set to 8.5*11
Page b Master page is set to 11*17 

The printing error still occurs
Comment 3 Wei Yan CLA 2011-01-18 14:08:32 EST
Can you attach your report design? It seems that your content exceeds the master page size. If so, you need adjust the content size in the design.
Comment 4 alexh572000 CLA 2011-01-18 14:24:35 EST
(In reply to comment #1)
> BIRT layout the report on the master page defined in the report design, so it
> won't changed with the page size of the printer.
> 
> If the print size is different with the master page, you should change the
> master page size in the design.

Page A Master page is set to 8.5*11
Page b Master page is set to 11*17 

The printing error still occurs
Comment 5 alexh572000 CLA 2011-01-18 14:30:17 EST
Created attachment 187038 [details]
test file
Comment 6 alexh572000 CLA 2011-01-18 14:31:50 EST
run test file as postscript and try to print
Comment 7 Wei Yan CLA 2011-01-18 15:04:15 EST
As BIRT doesn't know the printer setting, such as if we need choose customer paper from some tray or just scale it to fit the page size etc, so it is better to insert postscript command into the BIRT generated ps file before sending it to the printer.

I find a article from the internet and hope it helps.
http://www.tek-tips.com/viewthread.cfm?qid=1325467&page=3
Comment 8 Jun Ouyang CLA 2011-05-23 06:43:58 EDT
Add a new render option, IPostscriptRenderOption.AUTO_PAPER_SIZE_SELECTION, which means select paper size according to page size automatically. This option is set to true by default.
Comment 9 Jun Ouyang CLA 2011-06-27 23:09:11 EDT
Add another new render option, IPostscriptRenderOption.FitToPaper, which means scale the page content to fit paper size. Its default value is false.

But this render option is not exposed on UI, user can only set it by API. To make this option work, a paper size should be specified together.