在一个项目中,当用户点击一个按钮时,通过互操作库获取一些数据并将其写入到excel实例中。
现在,我希望:当excel实例获取所有数据时,必须打开一个另存为对话框,并将该excel实例保存到用户指定的路径。
有办法做到这一点吗?
编辑:
我将数据放到excel中的代码如下:
Public Sub ExportToExcel(ByVal dt As DataTable, ByVal outputPath As String)
' Create the Excel Application object
Dim excelApp As New Microsoft.Office
使用C#和ASP.NET,我试图通过Microsoft Interop读取服务器上的一个Excel文件,对其进行一些处理,保存它,然后将其下载到客户机上。在本地主机上运行正常,但在客户端计算机上显示以下消息
Server Error in '/' Application.
Microsoft Office Excel cannot access the file 'C:\inetpub\wwwroot\ICNMS\Mysheet.xlsx'. There are several possible reasons:
• The file name or pat
因为在学校我必须使用Excel,所以我用PlayOnLinux安装了Microsoft 2010。Office工作得很好,除非我尝试在Excel中使用解决器函数。当我激活解算器时,Excel就会关闭。当我重新启动Excel时,它会产生以下消息:
Excel experienced a serious problem with the 'solver add-in' add-in. If you have seen this message multiple times, you should disable this add-in and check to see if an