private void simpleButton1_Click(object sender, EventArgs e) { // Create a PrintingSystem component. PrintingSystem ps = new PrintingSystem(); // Create a link that will print a control. PrintableComponentLink link = new PrintableComponentLink(ps); // Specify the control to be printed. link.Component = gridControl1; // Subscribe to the CreateReportHeaderArea event used to generate the report header. link.CreateReportHeaderArea += new CreateAreaEventHandler(link_CreateReportHeaderArea); link.CreateDocument(); if (rp == null) { rp = new ReportPreview(); } rp.ShowForm(_ReportName, link.PrintingSystem); }