I'm trying to use CopySheet to make a copy of an existing worksheet, but I'm getting the exception "Unknown ptg[00] in AdjustCell". My code is pretty simple:
NewSheet := XLSRW.Sheets.Add;
XLSRW.CopySheet(CurrSheet.Index, NewSheet.Index);
I'm using the trial version if that matters, and I do get the trial message at the top of each new worksheet.
Using Delphi 7. The worksheets do have charts on them, but I get the same error if I delete the charts.
Thanks,
Jamie