3 Replies Latest reply on Feb 8, 2010 10:54 AM by Ansury

    FlexPrintJob-ing a DataGrid

    Francisc Level 3



      I have a DataGrid that I want to print but with the aspect of the PrintDataGrid component.

      Casting the DataGrid to the PrintDataGrid Class is not succeeding, so I've gradually instantiated the PrintDataGrid to match the data and columns of the DataGrid.


      Q1. Is there a better way of doing what I described.

      Q2. Can I not print the PrintDataGrid object if it is not added to stage?


      Thank you!

        • 1. Re: FlexPrintJob-ing a DataGrid
          Flex harUI Adobe Employee

          PrintDataGrid is correct.  It must be added to stage in order to print


          • 2. Re: FlexPrintJob-ing a DataGrid
            Ansury Level 3

            And I really hate that, not to mention other seriously limiting flaws with PrintDataGrid such as the ability to go back a page so it can be used for a print preview.  Maybe we can get a decent version of PrintDataGrid that plays nice with print preview functions in Flex 4?  If Adobe really wants Flex to gain popularity in the business environment, less crummy print support is really needed.


            Current "print preview" options are lousy and don't scale to large print jobs well.  I had to spend far too long creating a custom print preview dialog which works fine but I had to basically re-create my entire datagrid (and go to the appropriate page from the beginning) just to enable a "back" button in the preview!  If you have a lot of pages it's slow...

            • 3. Re: FlexPrintJob-ing a DataGrid
              Ansury Level 3

              Q1 - Probably the "best" examples I've seen on using PrintDataGrid have been Adobe's examples, which yeah, they don't allow so much flexibility.


              I've yet to try 3.5's version but if it's anything like 2.0's..... bleh.