Hi crosslife,
To maintain the format of a cell when pasting a value from another cell with a different format, you can set SfSpreadsheet.CopyPaste.DefaultPasteOption to PasteOptions.Value. This ensures that only the value is pasted, without copying the format. Please find the code snippet below.
Code snippet:
spreadsheet.CopyPaste.DefaultPasteOption = PasteOptions.Value;
|
For more information regarding the paste options, please refer this user guide documentation.
Regards,
Sreemon Premkumar M.