Try this 

printPreview.pdfExportEnabled = false;
printPreview.page.width = PaperFormat.A4R.width;  // assign this
printPreview.page.height = PaperFormat.A4R.height;// assign this

var source:ReportDP = new ReportDP();
var report:PortfolioReport = new PortfolioReport();
report.width = PaperFormat.A4R.width;                // assign this
report.height = PaperFormat.A4R.height;              // assign this        
doc = new Document(report, source, PaperFormat.A4R);                            
                
doc.pdfEnabled = false;                 
printPreview.doc = doc;     


Manik wrote:
> 
> 
> 
> you can get the latest FlexReport source code from googlecode -
> http://code.google.com/p/flexreport/
> 
> 
> On May 3, 5:43 pm, ahmet dizioglu <[email protected]> wrote:
>> > Hi,
>> > Where can I download flexreport mxml?
>>
>> > On Fri, Apr 24, 2009 at 9:53 AM, Manik <[email protected]> wrote:
>>
>> >> I want to use FlexReport <http://www.kemelyon.com/bts/2008/01/14/
>> >> flexreport/ <http://www.kemelyon.com/bts/2008/01/14/%0Aflexreport/>>
>> in
>> >> my flex application. Its a good reporting tool for
>> >> flex but it works with PaperFormat A4 only ... when i change
>> >> PaperFormat from A4 to some other say A3, Legal or Letter etc. i get
>> >> below error -
>>
>> >> Error: Error #2030: End of file was encountered.
>> >> at flash.display::BitmapData/setPixels()
>> >> at org.print::Page/render()
>>
>> >> Can anybody please tell me how can i change paper format at runtime in
>> >> flex report.
>>
>> >> Thanks
>> >> Manik- Hide quoted text -
>>
>> - Show quoted text -
> 
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en
> -~----------~----~----~----~------~----~------~--~---
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/-flex_india%3A21830--Change-PaperFormat-in-FlexReport-tp23224041p26722546.html
Sent from the Flex India mailing list archive at Nabble.com.

--

You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.


Reply via email to