protected void ASPxCallbackPanel1_Callback(object source, CallbackEventArgsBase e)
    {
        XtraReport1 report          = new XtraReport1();
        var         skipedOparation = new SkipedOperation();

        skipedOparation.UpdateDetail(Convert.ToInt32(e.Parameter));
        DocumentViewer1.Report = report;
        DocumentViewer1.Report.CreateDocument();
    }
    private void DetailReport_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
    {
        int catid = (int)GetCurrentColumnValue("CategoryID");

        // Fill the dataset with data from the data adapter.
        this.productsTableAdapter1.Fill(this.dataSet11.Products, catid);
        SkipedOperation operation = new SkipedOperation();

        if (operation.SkippedDetailBands.Contains(catid))
        {
            e.Cancel = true;
        }
    }
    private void xrLabel4_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
    {
        XRLabel label = sender as XRLabel;
        int     catid = (int)GetCurrentColumnValue("CategoryID");

        label.NavigateUrl = string.Format("javascript:parent.ASPxCallbackPanel1.PerformCallback('{0}');", catid.ToString());
        SkipedOperation operation = new SkipedOperation();

        if (operation.SkippedDetailBands.Contains(catid))
        {
            label.Text = "+";
        }
        else
        {
            label.Text = "-";
        }
    }