EXCEL导入rpt
时间: 2023-10-30 10:01:08 浏览: 216
根据引用内容和,你可以使用C#中的ALSM_EXCEL_TO_INTERNAL_TABLE函数来实现EXCEL导入。下面是一个示例代码:
```csharp
using Microsoft.Office.Interop.Excel;
...
// 获取Excel文件路径
string filePath = "your_file_path.xls";
// 创建Excel对象
Application excel = new Application();
Workbook workbook = excel.Workbooks.Open(filePath);
Worksheet worksheet = workbook.Sheets<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [C#EXCEL导入导出](https://blog.csdn.net/weixin_44491552/article/details/88351637)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [SAP根据excel表格数据将数据导入表中](https://blog.csdn.net/pikeduo/article/details/128368590)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文