Bug Report T128524
Visible to All Users

Spreadsheet merges cells that are already merged

created 11 years ago

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)

Show previous comments (3)

    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

      DevExpress Support Team 11 years ago

        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.

        Answers approved by DevExpress Support

        created 11 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.