Thanks for the tip! That worked great on the printing part of the bug. Still have weird zooming issues, though.
For anyone else's reference, I changed the code around to this: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="0xFF0000"> <mx:Script> <![CDATA[ private function buttonClick(e:Event):void { import mx.printing.FlexPrintJob; var myPrintJob:FlexPrintJob = new FlexPrintJob(); myPrintJob.start(); vbox.height = vbox.width * myPrintJob.pageHeight / myPrintJob.pageWidth; myPrintJob.addObject(vbox, FlexPrintJobScaleType.MATCH_WIDTH); myPrintJob.send(); vbox.percentHeight = 100; } ]]> </mx:Script> <mx:VBox id="vbox" height="100%" width="100%" backgroundColor="0x00FF00"> <mx:Button label="Print" click="buttonClick(event)" width="100%" height="5%"/> <mx:DataGrid width="100%" height="90%" backgroundColor="0x0000FF"> <mx:dataProvider> <mx:ArrayCollection> <mx:source> <mx:Object> <mx:Artist>Pavement</mx:Artist> <mx:Price>11.99</mx:Price> <mx:Album>Slanted and Enchanted</mx:Album> </mx:Object> <mx:Object> <mx:Artist>Pavement</mx:Artist> <mx:Album>Brighten the Corners</mx:Album> <mx:Price>11.99</mx:Price> </mx:Object> </mx:source> </mx:ArrayCollection> </mx:dataProvider> </mx:DataGrid> <mx:Button label="Empty" width="100%" height="5%"/> </mx:VBox> </mx:Application> Note that I took the height/width off application (that seems to get it confused) and that I adjusted the height so it would fill the page. --- In [email protected], "Abdul Qabiz" <[EMAIL PROTECTED]> wrote: > > I suggest, you to use Flex PrintJob class instead of Player's PrintJob. Flex > 2 PrintJob gives you more control. > > mx.printing.FlexPrintJob ? > > If you still see the same problem...let us know... I know the person, who > can answer this best :) > > -abdul > > On 6/15/06, Peter Blazejewicz <[EMAIL PROTECTED]> wrote: > > > > Hi Jason, > > > > I've submitted that (zoom in/zoom out/show all) as plugin usability > > bug some time ago to Flex > > Team QA, > > haven't received confirmation yet from them though, > > > > kind regards, > > Peter Blazejewicz > > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

