Click here to Skip to main content
15,902,893 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,
i am exporting gridview to excel sheet using devexpress gridview exporter is there any way can i open this excel file in editable mode before exporting ? need solution or any other best idea.

What I have tried:

ASPxVerticalGrid1.ExportXlsxToResponse(new XlsxExportOptionsEx { ExportType = ExportType.WYSIWYG })
Posted
Updated 4-May-18 20:50pm
Comments
Wendelius 5-May-18 2:41am    
Not sure what you mean. Before you call the export method, there is no Excel file to open?

1 solution

If you mean that you want to export the Excel file and then manipulate it before sending to client, then you can use ASPxPivotGridExporter.ExportToXlsx Method[^] to do the Export and then use for example Excel Interop to manipulate the Excel file.

For more details, see How to: Access Office Interop Objects by Using Visual C# Features (C# Programming Guide) | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900