Posted 26 October 2021, 12:38 am EST
Hi C1,
I am in the process of adding support to OneDrive/Office365 to our app: when saving a C1FlexGrid as excel file, the resulting file shall be written to OneDrive.
So I don’t save the grid to a file but to a MemoryStream, and store the data of this stream to OneDrive.
This causes trouble when saving multiple C1FlexGrid to a single file: “SaveGridExcel” to file has the feature to append sheets to an existing file if it does not contain the specified sheetname. We use this feature in one place.
The stream method does not support this feature: each call to “SaveGridExcel” creates a new “C1XLBook”. So, no multi sheet document can be created.
Would it be possible to add a “SaveGridExcel” overload that loads the C1XLBook from the specified stream and thus adds additional sheets?
A workaround would be to save the grids to a temp file, and then upload this temp file to OneDrive.
Best regards
Wolfgang