export hyperlink column to excel (cannot open the specified file)

Viewed 67

I have a project that we use devexpress. I am using the following code to export to excel after filling a grid

        LoadData(false, "", true);
    ASPxLabel lblHeader_Titles = (ASPxLabel)ASPxRoundPanel1.FindControl("lblHeader");
    ASPxGridViewExporter1.FileName = lblHeader_Titles.Text;
    Response.HeaderEncoding = Encoding.Default;
    DevExpress.XtraPrinting.XlsExportOptionsEx optionsEx = new DevExpress.XtraPrinting.XlsExportOptionsEx();
    ASPxGridViewExporter1.WriteXlsToResponse(optionsEx);

There is no problem in my excel export process, but Hyperlink prints the column I use to excel without a hyperlink

<dxwgv:GridViewDataHyperLinkColumn Caption="Code" FieldName="TRANSFER_CODE" Name="CODE"
       ShowInCustomizationForm="True" VisibleIndex="1" Width="34%">
</dxwgv:GridViewDataHyperLinkColumn>

I'll be happy if you can help me.

link addition is done on HtmlDataCellPrepared

0 Answers
Related