I have an HTML component in an AIR app. I load a page into it, but how can I
print the contents of that page? I've tried this which works, but my page is
cropped strangely (I get the top left corner of the page - clipping contents
to the right and I don't come close to getting the whole page):

function doPrintAir():void {

    var pjob:PrintJob = new PrintJob();

    if ( pjob.start() ){

        var poptions:PrintJobOptions = new PrintJobOptions();

        poptions.printAsBitmap = true;

pjob.addPage(browser.htmlLoader, null, poptions);

            pjob.send();

       }

}



-- 
http://ericd.net
Interactive design and development
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to