private void printallbtn_Click(object sender, EventArgs e)
        {
            All_Cat_Report   report = new All_Cat_Report();
            View_Report_Form prf    = new View_Report_Form();

            report.Refresh();
            prf.crystalReportViewer1.ReportSource = report;
            prf.ShowDialog();
        }
        private void exportpdfbtn_Click(object sender, EventArgs e)
        {
            All_Cat_Report             report   = new All_Cat_Report();
            ExportOptions              export   = new ExportOptions();
            DiskFileDestinationOptions dfoption = new DiskFileDestinationOptions();
            PdfFormatOptions           pdf      = new PdfFormatOptions();
            SaveFileDialog             save     = new SaveFileDialog();

            save.Filter           = "ملف اكسيل | *.pdf";
            save.InitialDirectory = @"C:\";
            if (save.ShowDialog() == DialogResult.OK)
            {
                dfoption.DiskFileName = save.FileName;
                export = report.ExportOptions;
                export.ExportDestinationType    = ExportDestinationType.DiskFile;
                export.ExportFormatType         = ExportFormatType.PortableDocFormat;
                export.ExportFormatOptions      = pdf;
                export.ExportDestinationOptions = dfoption;
                report.Refresh();
                report.Export();
                MessageBox.Show("تمت العملية بنجاح", "معلومة", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }