Issue with ExcelSaveFlags.SaveCustomColumnHeaders (v 5.0.3518.2008)

Posted by: echernyak on 8 September 2017, 2:52 pm EST

    • Post Options:
    • Link

    Posted 8 September 2017, 2:52 pm EST

    Our app had code below working at v 4.0.3512.2008 but stopped working at 5.0.3518.2008. We are using VS2010(Target Framework: .NET Framework 3.5 or 4)

    .SaveExcel() method using ExcelSaveFlags.SaveCustomColumnHeaders stopped exporting data (exports Column Headers only).

    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

          Try

             Dim dtTest As New DataTable

             With dtTest

                .Columns.Add("StoredValue", Type.GetType("System.String"))

                .Columns.Add("DisplayValue", Type.GetType("System.String"))

                .Rows.Add("1", "Standard")

     

             End With

             With FpSpread1.ActiveSheet

                .DataSource = dtTest

             End With



          Catch ex As Exception

          End Try

       End Sub

       Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

          Try

             'Using this flag: populate column headers but no data

             FpSpread1.SaveExcel("C:\TEMP\11.XLS", FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders)



             'code below

             'Poulates data only

             'FpSpread1.SaveExcel("C:\TEMP\11.XLS")

          Catch ex As Exception

          End Try

       End Sub

     

  • Posted 8 September 2017, 2:52 pm EST

    More details on this issue. When exporting with FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders .SaveExcel exports RowCount - 1 rows to Excel so last row will never be exported. In test case above there was only one row in the spread so no data rows were exported

  • Posted 8 September 2017, 2:52 pm EST

    Hello,

    I would like you to know that the issue you are currently facing was a bug in Spread v5.0.3518, but it was fixed in the latest maintenance release of Spread v5 i.e. v5.0.3522. So, I would request you to update to the latest version of Spread v5 i.e. v 5.0.3522, to resolve the issue that you are currently facing. You can download the latest version from the following link:

                                      ftp://ftp.fpoint.com/SpreadWinForms5/

    Hope it will help you. Please let me know if you have any queries further.

    Thanks,

    Manpreet Kaur.

  • Posted 3 November 2017, 9:47 am EST

    Hi,

    We are facing the same problem and want to know how to obtain the maintenance release. The FTP link you have mentioned required username & password and how do I obtain that?

    thanks,

    Prem Gopinath

  • Posted 13 November 2017, 12:06 am EST

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels