Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2060
Export to Excel Current Formatting v13.2
posted

Hi,

I'm having a problem with the formatting of currency during the export to excel.  I'm using version 13.2 of the controls.

I want the column values to be formatted as "£#,##0.00" however it formats it as "$#,##0.00" when it gets to excel.  

I created a simple class

Public Class Data

Public Property Price As Double

End Class

Then create a list of about 10 numbers using this class, bound the list to the grid and then exported the grid to excel.

On the initializeColumn event I was setting the column format as below.

Private Sub UltraGridExcelExporter1_InitializeColumn(sender As Object, e As Infragistics.Win.UltraWinGrid.ExcelExport.InitializeColumnEventArgs) Handles UltraGridExcelExporter1.InitializeColumn

e.ExcelFormatStr = "£#,##0.00"

End Sub

When I view the exported spreadsheet the numbers are formatted "$#,##0.00"

If I try it with "€#,##0.00" it will format it using the €.  It seems to not like £ any more.

Your help will be greatly appreciated.

kind regards,

Nathan

Parents Reply Children
No Data