I really need some detailed help here. I tried adding my datagrid to a UIComponent and then adding the UIComponent to a Sprite. This causes a blue rectangle to appear when I try to print. While this is better than a blank page, it's still quite not what I need.
Can someone please tell me what I need to do to get the contents of my datagrid to appear as part of my printed output when using the PrintJob class with a non-visible sprite? Thanks! Wayne --- In flexcoders@yahoogroups.com, "wayneposner" <[EMAIL PROTECTED]> wrote: > > i've tried setting the height/width on the datagrid, the sprite the > datagrid is being added to and the class level sprite, but nothing > seems to work. When I check the properties in the debugger the > values for height/width are 0 regardless of what I tried to set them > to. > > > var pdg:PrintDataGrid=new PrintDataGrid(); > var s:Sprite=new Sprite(); > pdg.explicitHeight=600; > pdg.explicitWidth=600; > pdg.setActualSize(600,600); > pdg.width=600; > pdg.height=600; > s.addChild(pdg); > s.height=600; > s.width=600; > > My class executing this code extends Sprite so I've simply added > this.width=600; > this.height=600; > > to the constructor of my class. Still no luck. What am I doing > wrong??? > > Thanks! > Wayne > > --- In flexcoders@yahoogroups.com, Tom Chiverton <tom.chiverton@> > wrote: > > > > On Monday 21 August 2006 22:41, wayneposner wrote: > > > I'm tyring to add a datagrid to a sprite class that doesn't > display > > > any data--its used strickly for printing. When I add the > datagrid > > > to the sprite, the resulting printed output is just a blank page. > > > > There is an issue with printing non-visible content - one work > around is to > > add your datagrid and set it's data, then use callLater to fire > the printJob > > or you can set a width/height on the top level Sprite by hand. > > > > -- > > Tom Chiverton > > Helping to preemptively expedite proactive supply-chains > > > > **************************************************** > > > > This email is sent for and on behalf of Halliwells LLP. > > > > Halliwells LLP is a limited liability partnership registered in > England and Wales under registered number OC307980 whose registered > office address is at St James's Court Brown Street Manchester M2 > 2JF. A list of members is available for inspection at the > registered office. Any reference to a partner in relation to > Halliwells LLP means a member of Halliwells LLP. Regulated by the > Law Society. > > > > CONFIDENTIALITY > > > > This email is intended only for the use of the addressee named > above and may be confidential or legally privileged. If you are not > the addressee you must not read it and must not use any information > contained in nor copy it nor inform any person other than Halliwells > LLP or the addressee of its existence or contents. If you have > received this email in error please delete it and notify Halliwells > LLP IT Department on 0870 365 8008. > > > > For more information about Halliwells LLP visit www.halliwells.com. > > > -- 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/