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
Post a Comment