protected void Grid_ContextMenuItemClick(object sender, ASPxGridViewContextMenuItemClickEventArgs e)
    {
        try
        {
            switch (e.Item.Name)
            {
            case "ExportToPDF":
                ASPxGridViewExporter1.WritePdfToResponse();
                break;

            case "ExportToXLS":
                ASPxGridViewExporter1.WriteXlsToResponse();
                break;

            case "ExportToWORD":
                ASPxGridViewExporter1.WriteRtfToResponse();
                break;

            case "ExportToCSV":
                ASPxGridViewExporter1.WriteCsvToResponse();
                break;
            }
        }
        catch (Exception ex)
        {
            //_Security.ErrorDesscription = ex.Message;
            //_Security.ErrorModule = "Exporting  Corporation Tax Inquiry";
            //_Security.SaveError();
        }
    }
    protected void Grid_ContextMenuItemClick(object sender, ASPxGridViewContextMenuItemClickEventArgs e)
    {
        switch (e.Item.Name)
        {
        case "ExportToWord":
            ASPxGridViewExporter1.WriteRtfToResponse();
            break;

        case "ExportToPDF":
            ASPxGridViewExporter1.WritePdfToResponse();
            break;

        case "ExportToXLS":
            ASPxGridViewExporter1.WriteXlsToResponse();
            break;

        case "ExportToCSV":
            ASPxGridViewExporter1.WriteCsvToResponse();
            break;
        }
    }
Beispiel #3
0
 protected void ASPxButton2_Click(object sender, EventArgs e)
 {
     ASPxGridViewExporter1.WriteRtfToResponse();
 }
 protected void btnExportWord_Click(object sender, EventArgs e)
 {
     ASPxGridViewExporter1.WriteRtfToResponse();
 }
 protected void ASPxButton3_Click(object sender, EventArgs e)
 {
     SetHeaderStyle();
     ASPxGridViewExporter1.GridViewID = SetGrid();
     ASPxGridViewExporter1.WriteRtfToResponse();
 }