get the printout gridControl with only one button on two pages in tabPanel RRS feed

  • Question

  • Hello There are two pages in the tabControl element in my form. I have gridControl1 and gridControl2. Here is the code that I use in two different gridcards. It comes as output preview window together with the output of the page I want to display.

    private void Btnprint_Click(object sender, EventArgs e)
                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;

    • Moved by CoolDadTx Monday, April 9, 2018 2:55 PM Third party product
    Monday, April 9, 2018 10:44 AM

All replies

  • These forums are for MS products only. Please post questions related to third party products like DevExpress in their forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Monday, April 9, 2018 2:55 PM