[flexcoders] Re: Help with adding datagrid to non-visible Sprite

2006-08-23 Thread wayneposner
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 [EMAIL PROTECTED] 
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/
 




Re: [flexcoders] Re: Help with adding datagrid to non-visible Sprite

2006-08-23 Thread Tom Chiverton
On Wednesday 23 August 2006 13:12, wayneposner 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.

Did you try putting the sprite on a visible object (say by using a viewstack 
and changing selectedIndex while you print) and/or calling printJob.start() 
etc. in a sperate method invoked by callLater() ?

-- 
Tom Chiverton
Helping to autoschediastically enhance interdependent schemas



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/