Hi !
I have a model with subtotals table (see attachments),
I merge my documents :
Aspose.Cells.WorkbookDesigner designer = new Aspose.Cells.WorkbookDesigner();
designer.Workbook = new Aspose.Cells.Workbook(templatePath);
designer.SetDataSource(myDataSet);
designer.Process(); // test with true or false argument
when my table of mydataset is empty, the smart makers formula remains !
Is it possible to delete automatically this smart makers on merge ?
thanks
Hi,
Indeed,
With the last version the content of Subtotal formula is removed,
However, I am forced to use specific version 7.0.1.0 and the Subotal formula is not delete !
I use this function to remove the remaining formula “&=”
public static void DeleteRowWhenCellStartWith(Workbook wb, string startWith)
{
Cell findCell;
foreach (Worksheet ws in wb.Worksheets)
while (true)
{
findCell = ws.Cells.FindStringStartsWith(startWith, null);
if (findCell != null)
ws.Cells.DeleteRow(findCell.Row);
else break;
}
}
Thanks
Hi,