CopySheet exception

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
jburks
Posts: 1
Joined: Tue Dec 01, 2009 9:46 pm

CopySheet exception

Post by jburks »

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
Post Reply