BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

FlexReport For Printing In Adobe Flex

| by Jon Rose Follow 0 Followers on Jan 31, 2008. Estimated reading time: 1 minute |
Rob Rusher, a Flex developer and enthusiast, points us to FlexReport. Poor printing support in Flash is a common problem for Flex applications.
It doesn't matter where I go, I always run into people having printing issues with Flex. Most have found the FlexPrintJob class and samples on how to use it, but for those who print multiple pages the results are sometime less than stellar.

I just found a new open source project called FlexReport. It is said to address report layouts, multi-page reports and print preview.
FlexReport is released under the LGPL license and available at RIAForge. The API features include: Report Layout support, Multi-page content, and Print preview.
  1. Report layout: in order to print a page in Flex you need to create a container and add it to a FlexPrintJob. Not a big issue when working with static content. But when creating dynamic reports where you don’t know how many pages you’ll have this process can quickly become a nightmare.
  2. Multi-page content: The only component specifically designed for printing is PrintDataGrid. There’s no support for text or images.
  3. Print preview: as I said before organizations need printing. But a thing they don’t need is wasting paper. There’s no way to make a print-preview with PrintJob. And no one likes printing 100 pages of a table, just to realize they are printing the wrong data.
You can checkout the demo application at: http://www.kemelyon.com/flexreport/. Also, you can read more on the project blog.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

fonts by Matt Giacomini

Are the blurry fonts one of the features?

I would have liked to have seen the result of generating the PDF, but the site blew up when I clicked the PDF link.

Re: fonts by Ashley Moran

The Adobe PDF icon doesn't work, I just get "PDF GENERATION IS DISABLED! " and some PHP errors. (And they what looks like an ASCII dump of a PDF file.)

But I did a print-to-PDF in OS X and the fonts are just are unclear - like bitmaps with blur filter on top. Oh, and it injected a blank page after each page of content...

Shouldn't this have been labelled pre-alpha? It seems way to early to be any use yet, unless it's just a bad demo.

Re: fonts by Frederico Garcia

Hi,

FlexReport was made for printing, and whenever there was a choice between print quality and display quality, printing was preferred. That's the case with fonts. In flash, anti-aliased fonts have different metrics from aliased (and when printing you use aliased fonts), so in order to accurately preview you must use aliased fonts (blurry).

If you download the sources for use in your own project, you'll see a file named create.php which you must uncomment. Print-to-PDF is using alivePDF, take a look at www.alivepdf.org if you have any questions. This functionality is to be improved in the next version (it's just there now as a proof of concept).

If you find reproducible bugs please mail me a short description so they can be addressed in the next version.

Kind regards,

Frederico Garcia

Print Report in Flex by blake dearborn

Has anyone checked out a report generation and printing object called BentBit Report? It is really pretty remarkable.

www.bentbit.com/?goto=main/product.asp

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

4 Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT