Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • 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.

                                1 Solution

                                Creation Date Rating Importance Sort by
                                0

                                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?

                                • Hello Gary,

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

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2017 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners