Marc Hughes


Home
Blog
Twitter
LinkedIn
GitHub
about
I am a developer from a bit west of Boston.

Printing horrors

17 Jun 2008

Printing in a Flash/Flex application can be tricky to get right.  I've been working on a very print-heavy application recently.  We've been having a long standing intermittent bug where we print a large document, but some things on that document that were created through the Flash drawing API wouldn't be on the paper.

We added a

var options:Object = canvas.prepareToPrint( canvas );

Before the print and a

canvas.finishPrint( options, canvas);

After the print, and it seems to have solved our problem even though the documentation says we shouldn't ordinarily need to explicitly call those.