We recommend you to kindly see the document for your reference on Smart Markers especially under “Grouping Data” sub-topic that you use for your needs:
If you still find the issue, kindly create a sample console application (runnable) to reproduce the issue on our end, also attach your input and output files here. Moreover, attach your expected output file here, we will check your issue soon.
It looks like some sort of limitation regarding formatting when using more parameters like shift etc. in the smart markers having dynamic formulas. We need your template file, please create it in MS Excel with smart marker and also post your expected file, we will log a ticket for it and look into it later on.
I can notice the issue as you have mentioned by running your sample project with your template file. I find the following issues in the generated file:
i) The original subtotal row doesn’t copy the style of the data row.
i hope that the Aspose.Cells supports DeleteRange(name, shift) API.
as you see my sample above. i create a method to judge the range contains whole row or column. but it can not do if the range contains some row/column and other cells.
and once if one range is deleted, other ranges below it (or by the right side) should not change the original cells they keep.
“Cells.DeleteRange()” method having corresponding ShiftType enumeration member e.g ShiftType.None.
If you still find any problem, we recommend you to kindly start a new thread om Aspose.Cells forums and post us with all the details, sample console application, template files etc. We will check and reply you there.