简体   繁体   中英

Excel Worksheet Name Not Recognized

I have a C# application that I use to create an excel file for import into another application. The problem is, the application that accepts the imports is reporting that the 'tables' its looking for do not exist. The tables are the respective sheets which I name in C# as follows:

worksheet1 = workbook.Sheets[1];
Microsoft.Office.Interop.Excel.Worksheet worksheet = (Worksheet)worksheet1;
worksheet1.Name = "Pay";

From my research, renaming the sheet this way does not fully rename the sheet. any ideas on this?

问题在于应用程序正在查找命名范围而不是实际的工作表名称。谢谢!

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