简体   繁体   中英

Export OWC11.axSpreadsheet to Excel file in VB.net Visual Studio 2013

I am using a spreadsheet control (Microsoft OWC.axSpreadsheet) in Visual Studio 2013. I am wondering if there is a way to export the contents to an Excel spreadsheet. The control supports an Export function. I am just not sure the proper syntax.

Looking around, I found the answer. This code will export the contents of the owc control to a spreadsheet file:

Positions.Export("c:\\testexport.xls", Microsoft.Office.Interop.Owc11.SheetExportActionEnum.ssExportActionNone, Microsoft.Office.Interop.Owc11.SheetExportFormat.ssExportXMLSpreadsheet)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM