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
470
Export to Excel with cell > 32K woes
posted

I'm trying to use the Excel Exporter (I'm using Infra 3 12.1) but some of the cells in my grid have > 32KB so it does not work.

To get around this I tried to used the CellExporting event - but the obvious method of setting e.value to be the adjusted string I want written unfortunately also updates the grid.

So following some other advice on the Infra site I tried:

e.Workbook.WindowOptions.SelectedWorksheet.Rows(e.CurrentRowIndex).Cells(e.CurrentColumnIndex).Value = my_adjusted_value

I then find that I need to set e.cancel = True to stop it trying to write the value from the grid.

So now I have the correct data in my excel sheet. BUT, it hasn't set the format the same as the other cells and so my data is presented differently from the rest of the cells.

What is the correct approach to achieve this????

Parents Reply Children
No Data