We are looking for suggestions on how to handle the following: We need to print a DataGrid with DataGrid columns chosen by a user at runtime in a dynamic fashion. The app that's been written utilizes the mx.printing.FlexPrintJob method to accomplish this task. Specifically, the code already written for the PrintDataGridExample example provided in the ASDoc has been leveraged (great example by the way) and integrated it into an app as a starting point.
The example falls short of where our app needs to be taken in this way... we have a requirement that the user be able to print the data displayed in the datagrid with the dynamically selected columns (and not just a standard set of columns). We want to specify the DataGrid columns at runtime making the app more dynamic for our clients. The application is a search app that allows the users to choose the individual fields that they not only wish to search on but also select which fields to display in the final report product. We've considered simply passing to the DataGrid's dataProvider the 'raw data' thus allowing the DataGrid to dynamically set the columns but we must also provide special formatting for the certain fields at runtime like a currency field (if chosen) and the date fields (if chosen). We know how to provide the raw data to the dataProvider at runtime AND we know how to format pre-defined <mx:columns> with specific itemRenders at design-time to apply special formats to the appropriate cells. We just haven't yet combined the two methods. Any help/suggestions would be greatly appreciated. Thanks in advance. Rob

