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
- Ensure the xlsx file is in the same folder as the compiled exe
- Run the project
- Press the Load button to load the included xlsx file
- The active sheet will be the second one. Press Print Preview button. This works ok
- 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.
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.
Yes you can make it public but please remove the attachment.