We are evaluating ASPose.Cells to replace our existing MS Excel based formatting app.
I am run in a road block. I am trying to Copy Values and Style from one workskeet to another worksheet. Looks like values are getting copied over but not the style. He is my sample code.
*** This code works well if the source range and target range are on the same worksheet.
/--Code start
Range source = getRange(sourceSheet, startSourceRange, endSourceRange);
Range target = getRange(targetSheet, startTargetRange, endTargetRange);
DataTable dt = sourceSheet.Cells.ExportDataTable(source.FirstRow, source.FirstColumn, source.RowCount, source.ColumnCount);
targetSheet.Cells.ImportDataTable(dt, false, target.FirstRow, target.FirstColumn, false, false);
//target.CopyValue(source); // Doesn't copy values
target.CopyStyle(source);
//Code end