rename excel workbook in c# -


i know how rename excel workbook using microsoft.office.interop dll? use xlsx file create new workbook. know name attribute of workbook class reading.

excel.workbook classeur = xlsapp.workbooks.add(path + "\\template.xlsx"); 

anybody know? thank you

if want rename file in c#, can use method :

system.io.file.move(oldfilename, newfilename); 

if want use office methods, saveas method can useful, delete old file.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -