Current filter:
                                You should refresh the page.
                                  • Description:
                                    I have several grids on different tabs of a TabControl. I want to preview and print all these grids at once, that is have a single Print Preview window and start a single print job.

                                    Answer:
                                    Applies to:
                                    XtraPrinting Library, XtraGrid, XtraTreeList, XtraVerticalGrid
                                    You should create a separate PrintableComponentLink for each GridControl. Then add all these links to a single CompositeLink. Finally, you can use the ShowPreview or Print methods of the composite link as if you were using a single PrintableComponentLink.

                                    [C#]
                                    using DevExpress.XtraGrid; using DevExpress.XtraPrinting; ... GridControl[] grids = new GridControl[] {gridControl1, gridControl2}; PrintingSystem ps = new PrintingSystem(); DevExpress.XtraPrintingLinks.CompositeLink compositeLink = new DevExpress.XtraPrintingLinks.CompositeLink(); compositeLink.PrintingSystem = ps; foreach(GridControl grid in grids) { PrintableComponentLink link = new PrintableComponentLink(); link.Component = grid; compositeLink.Links.Add(link); } compositeLink.CreateDocument(); compositeLink.ShowPreview();
                                • Gary Gaughan-Smith 11.27.2014

                                  We need to be able to do this for WPF Controls. What is the recommended way to do this for WPF and DXGrids and DXCharts?

                                • Andrew L (DevExpress Support) 11.27.2014

                                  Hello Gary,

                                  I have noticed that you created a ticket with the same question: WPF Printing.
                                  We will process your question in it.

                                0 Solutions

                                Creation Date Importance Sort by