Hi Christian,
You can transform formats by using CopyTo method. Please refer the following code snippet to achieve this:
[c#]
//Copying the range.
X.Range["A1:A10"].CopyTo (X.Range ["B1"],ExcelCopyRangeOptions.CopyStyles);
Here is the sample for your reference:
http://websamples.syncfusion.com/samples/XlsIO.Windows/63038/main.htmAnd also, you can transfer formats by creating a Global style and then you can assign that style to other ranges. Please refer the following code snippet to achieve this:
//Set style.
IStyle BackColorStyle;
BackColorStyle = workbook.Styles.Add("BackColorStyle");
//Set back color.
BackColorStyle.ColorIndex = ExcelKnownColors.Pale_blue;s
//Number format
BackColorStyle.NumberFormat = "hh:mm";
//Apply style
X.Range["A1:A10"].CellStyleName = "BackColorStyle";
//Copy style
X.Range["C1:C10"].CellStyleName = X.Range["A1:A10"].CellStyleName;
Here is the sample for your reference:
http://websamples.syncfusion.com/samples/XlsIO.Windows/63038_1/main.htmKindly let me know if you have any other questions.
Thanks,
Melba