Created from T127900: Printing merged cells of TdxSpreadSheet:
I did also note that there is nothing to stop you merging cells that are already merged. Excel reports the file a corrupt but offers to try and recover the data. If you say yes it correctly opens the file and reports that it has removed a merge (doesn't tell you how many or which cells)
Would you please provide us with step-by-step instructions to replicate the problem? A sample project that demonstrates the actual behavior would be much appreciated.
thanks
had assumed that that the hotfix for "T126616: The TdxSpreadSheetCell.IsMerged function returns incorrect values" thread might resolve the problem - just tried it and it doesnt'
Hello John,
Would you please provide us with step-by-step instructions to replicate the problem of merging already merged cells? A sample project that demonstrates the actual behavior would be much appreciated.
to find the attached Delphi XE6 project.
if you run the program you will see a TdxSpreadsheet and a couple of buttons.
click the load button and open the template.xles button. this includes code that merges cells that were already merged in the template.
Save the spreadsheet under a different name (I used saved.xlsx).
open the resultant file in Excel (I used Excel 2010)
This displays a warning. if you click the YES button it will open the file and give a warning that it removed a merge error.
forgot to add, I have applied the IsCellMerged hotfix
Thank you for the sample. We will examine it and will get back to you once we have any results or need additional information. Thank you for your patience.