Bug Report T191748
Visible to All Users

Spreadsheet Report Link - An AV occurs when previewing a worksheet after making the report link inactive, switching from another worksheet that was previously previewed, and activating the report link again

created 10 years ago (modified 10 years ago)

I get an access violation when doing a print preview when setting ReportTitle.Text to be the caption of the active sheet just before doing a RebuildReport. See attached zip file for a project and xlsx file.

Steps to reproduce

  1. Ensure the xlsx file is in the same folder as the compiled exe
  2. Run the project
  3. Press the Load button to load the included xlsx file
  4. The active sheet will be the second one. Press Print Preview button. This works ok
  5. Switch to the 'Grand Summary' sheet, i.e. sheet 3
    6. Press Print Preview button. This now gives an access violation in unit dxPSCore in procedure TdxPSPageRenderInfo.CalculateIndexPairs on the line R := ReportCells.Cells[StartIndex].AbsoluteRect since ReportCells is nil.
Comments (2)
DevExpress Support Team 10 years ago

    Thank you for the sample. I've reproduced this behavior and forwarded the ticket to our developers for further processing and research.

    P.S.: Do you mind if we make this report public, so that other customers can learn from it? We can protect the privacy of your data by removing your attachment. Just let us know if it has to be removed.

    SM SM
    Stephen Millington 10 years ago

      Yes you can make it public but please remove the attachment.

      Answers approved by DevExpress Support

      created 10 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.