Posted 30 May 2025, 11:29 am EST
We have multiple instances where a customer reports they can’t save a report as Excel because of an invalid error:
hexadecimal value 0x02, is an invalid character
Usually it is because of the backwards " (ascii code 148), but it can also be a 1/2 (ascii 189) or the degree or circle R, or any number of things.
not sure if you see the difference below, but the first line is the error line, the second line is fine because I changed the "
PULLEY 4” IDLER
PULLEY 4" IDLER
I have read other forum posts that it is due to the XLSX and the XML limitations.
What are our options without having to have our customers change their data?
The command we are using in the program is:
Dim xls As New GrapeCity.ActiveReports.Export.Excel.Section.XlsExport
xls.FileFormat = GrapeCity.ActiveReports.Export.Excel.Section.FileFormat.Xlsx
xls.Export(in_myDoc, in_file)
xls.Dispose()