frankfenghua / flexreport

Automatically exported from code.google.com/p/flexreport
0 stars 0 forks source link

Smeared image on preview #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. change PageFormat to LETTER
2.
3.

What is the expected output? What do you see instead?
valid pages in previewer and pdf output.

What version of the product are you using? On what operating system?
latest svn as of yesterday...

Please provide any additional information below.

I changed the demoreport.mxml template to have the following;

width="792" height="1224" 

and changed the FelxReportDemo.mxml to have;

doc = new Document(report, source, PaperFormat.LETTER);

and I get the attached image.

Original issue reported on code.google.com by pa...@compuace.com on 10 Aug 2008 at 9:14

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I believe this is expected behavior for the unusual dimensions you specified.  
As 
per PageFormat.as, the LETTER dimension should be width="612" height="792"  
Changing 
demoreport.mxml to these dimensions should correct this issue.

Original comment by steve.j....@gmail.com on 12 Aug 2008 at 11:35

GoogleCodeExporter commented 8 years ago
Steve: 

You are absolutely correct. I got the number by looking into the PaperFormat.as 
file 
and I copied Tabloid instead of Letter.

Perhaps we can make a property of the <Report> tag to be PaperFormat and use 
the 
same dimensions as we do in the Document method.

Paul

Original comment by pa...@compuace.com on 13 Aug 2008 at 4:44