Tuesday, 26 August 2008

PRINTING REPORTS IN FLEX AND AIR



As my previous post stated - Printing reports with Adobe Flex & AIR can be quite challenging.

I've been prototyping an application that needs tabular reports with a preview and the ability to print or output as PDF. AlivePDF provide the solution to PDF output. i think I've got most other areas working. I've posted the source code and a sample application called TS-Ledger (a mock ledger program that demonstrates the printing facilities quite well).

Click here http://www.thorntonsoftware.co.uk/flex.html to download the source or demo app.

I hope this helps people get to grips with printing reports in Flex & AIR.

Enjoy... Steve

7 comments:

Anonymous said...

Hello,

Very interresting example. I saw an error when i want to save the pdf file on my desktop. No file generated end this is block the system.

Regards

Steve said...

Hi, thanks for the feedback. I'll have a look at the PDF creation, are you using a mac or pc?

Steve said...

Hi, two people have said that they get an error when they try to produce the PDF - yet I can't re-produce it on my PC (Vista) I've not been able to test it on a Mac so I'm wondering if it's a Mac thing. Has anyone managed to create PDF's on a Mac?

Thanks
Steve

Anonymous said...

Hello,

I manage to create PDF on a PC with XP. I have the same problem.

Regards

Steve said...

I think the PDF problem may be if you click on the PDF button twice or click on other parts of the preview screen it may interupt the PDF creation or hang the AIR runtime. The PDF takes a while to be created and there is no hourglass, but if you wait it should save successfully.

Unknown said...

Hi, I'd like to check out your sample, but the link is no longer valid...
Is there any other way to grab your sample ?

thx

Anonymous said...

I, too, would like to review your sample application but the link is still broken. Any way to get a look at it?