[Laszlo-dev] proposed printing API
Adam Wolff
adam at laszlosystems.com
Wed Jan 26 07:52:20 PST 2005
As I understand it, this will limit a print job to one page. It seems
that you'll need to add something to the API here.
One way to implement this would be to have a printpage view that is
the only kind of child a printview will accept. For simplicity, a
printview without a printpage child is implicitly a single page print
job.
One problem: you can't add frames to a flash movieclip at runtime (nor
can you label frames.) We could workaround this two ways:
1) Include flash movieclips capable of printjobs from, say 1-20 pages
and add a maxprintpages attribute which determines the high end of
that range. Kinda like maxtextsize
2) Add the capability to the server to generate printer movieclips,
and request them at runtime. (This would make the implementation much
more complicated, because you'd have to wait until your movieclip
loaded before you could lay out your print job.)
Also, printview will need a setBoundingBox method.
A
Sarah Allen wrote:
> I've written up a proposal for adding printing to LPS:
> http://www.openlaszlo.org/wiki/index.php?title=Printing
>
> Many thanks for Adam and Tucker for their help researching the Flash
> capabilities.
>
> Your comments, questions and suggestions much appreciated.
>
> Sarah
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
More information about the Laszlo-dev
mailing list