There is a way using the actionscript. Pass in the view to print to
print it out, You could also create a multipage print job using this
method too.

    printView ( view ) {
        var my_pj   = new PrintJob();
        var printed = false;

        // Check to print...
        if (my_pj.start()) {
            var mov = view.__LZmovieClipRef;

            // Check to see if defined
            if (mov != undefined) {
            // Debug.write(":: " + name + " " + mov + " " + eval(mov));
            my_pj.addPage(eval(mov));
          } // end if

          // Send the print job
          my_pj.send();
          printed = true;
        } // end if

        // Delete the print job
        delete my_pj;

        return printed;
    } // end printView()


On 9/5/06, Mario Menti <[EMAIL PROTECTED]> wrote:
> On 9/5/06, Raphaël Arbuz <[EMAIL PROTECTED]> wrote:
>
> >
> >
> >
> > Hi to all of you,
> >
> > I' trying to find a way to print a page with my Lazslo SWF in it. The
> problem is that my page needs reformating, so I can't let the user print it
> straight away. My idea would be to take a screenshot of the current state of
> the SWF on the fly, and to save it as an image that would open in a new
> browser window when a print button is pressed, that new window would be the
> page to print.
> >
> > If someone has a clue about how to do that, I would appreciate.
>
>
>
> Raphael,
>
> have you tried the "getURL('print:#bmovie', 'printer');" call, e.g. by
> adding a button like this to your app:
>
> <button height="20" onclick="getURL('print:#bmovie',
> 'printer');">Print ...</button>
>
> This works for me (brings up the print dialog, and on Mac OSX at least also
> lets you save to pdf), although unfortunately it seems to reset the
> application, which I haven't found a way around yet - if someone on this
> list knows a way to avoid the reset, I'd be glad to know :-)
>
> Cheers,
> Mario.
>
>
>
> _______________________________________________
> Laszlo-user mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>
>
>


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to