Home Forums WPF controls Xceed DataGrid for WPF Printing Twice

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #26430 |

    I have a grid with Master->Detail->DetailofDetail
    I can print the Grid once with datagrid.Print()
    but if I try it a second time it goes through the motions and shows the progress dialog but closes fast and nothing.

    IOW it wont print twice
    I have to close the window re open it then I can print one more time until I close again

    Any Help would be greatly appreciated

    Imported from legacy forums. Posted by MiddleTommy (had 1907 views)

    User (Old forums)
    Member
    Post count: 23064

    We have just fixed this bug. The fix will be available in the next service release.

    Imported from legacy forums. Posted by Pascal (had 2842 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi – I had the same issue using version 2.
    The issue is that in the DataGridControl the method InvalidateViewStyle is called from the EndInit routine.

    This tries to add the view as a logical child via this.AddLogicalChild( this.GetView() );

    Because the view already existed fron the 1st print the same view instance is returned and the logicalchild add will fail.

    The solutiuon was not to define the PrintTableView in xaml but to a create a new one in code and assign it to the PrintView just before printing

     

     

    Imported from legacy forums. Posted by Nigel (had 902 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.