Pretty sure this is a known bug. I think the workaround is to addChild the PDG before setting height.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Raman Walia Sent: Tuesday, February 12, 2008 5:23 AM To: [email protected] Subject: [flexcoders] PrintDataGrid set height RTE Has anybody else encountered this problem, every-time I set the height to the PrintDataGrid it gives a runtime exception TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.controls::DataGrid/http://www.adobe.com/2006/flex/mx/internal::getMea suringRenderer()[E:\dev\flex_201_borneo\sdk\frameworks\mx\controls\DataG rid.as:1432 <http://www.adobe.com/2006/flex/mx/internal::getMeasuringRenderer()%5bE: /dev/flex_201_borneo/sdk/frameworks/mx/controls/DataGrid.as:1432> ] at mx.controls::DataGrid/http://www.adobe.com/2006/flex/mx/internal::measur eHeightOfItemsUptoMaxHeight()[E:\dev\flex_201_borneo\sdk\frameworks\mx\c ontrols\DataGrid.as:1538 <http://www.adobe.com/2006/flex/mx/internal::measureHeightOfItemsUptoMax Height()%5bE:/dev/flex_201_borneo/sdk/frameworks/mx/controls/DataGrid.as :1538> ] at mx.printing::PrintDataGrid/mx.printing:PrintDataGrid::measureHeight()[E: \dev\flex_201_borneo\sdk\frameworks\mx\printing\PrintDataGrid.as:534] I tried googling and there is a bug logged against Flex SDK for it. SDK-9818. I did download the latest SDK which according to the bug has the fix, but I am still getting exactly the same problem. Any help would be greatly appreciated. Warm Regards Raman Walia ________________________________ Meet people who discuss and share your passions. Join them now. <http://in.rd.yahoo.com/tagline_groups_7/*http:/in.promos.yahoo.com/grou ps>

