[英]Export Data in Excel Sheet cells
I am exporting the data in the excel sheet in classic asp. 我要在经典ASP中的excel表中导出数据。 I am using the external table approach for export data in excel sheet.
我在Excel工作表中使用外部表方法导出数据。
I want to know is there any way to export the data into excel sheet cell. 我想知道有什么方法可以将数据导出到Excel工作表单元格中。 Because when I am using exported file for import I show me the error.
因为当我使用导出文件进行导入时,会显示错误。
Regards & Thanks, 谢谢!
Jelly Saini 果冻赛尼
Perhaps not exactly what you need, but this works: 也许不完全是您所需要的,但这可行:
<%
Set ExcelApp = CreateObject("Excel.Application")
ExcelApp.Application.Visible = True
ExcelApp.DisplayAlerts = False
Set ExcelBook = ExcelApp.Workbooks.Add
ExcelBook.Worksheets(1).Cells(1, 1).Font.Size = 12
ExcelBook.Worksheets(1).Cells(1, 1).Font.Bold = True
ExcelBook.Worksheets(1).Cells(1, 1).Value="Hello"
ExcelBook.SaveAs Server.MapPath(".") & "\Hello.xls"
ExcelApp.Application.Quit
Set ExcelApp = Nothing
%>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.