change a value in an excel sheet from c# -
i want change specific value in excel sheet c#. when print value of cell changed gives me new one, when re-run code or if checked real excel sheet old value still there. code following:
console.writeline("now enter please new password:"); string newpass = console.readline(); currentworksheet.cells[2,1].value = newpass; console.writeline(currentworksheet.cells[2, 1].value.tostring());
am missing , why excel sheet isn't changing?? appreciated.
you manipulate excel file using kind of excel library. modify value, not save file.
check documentation of library, there should kind of save
command save modified excel sheet disk.
Comments
Post a Comment