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

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -