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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -