Report.Cancel not halting report generation.

I have migrated some of my report builder reports from version 9.03 to 18.03.

In my report, based on some condition report should not be generated. For this i have the code like below.

if stopReport then
begin
Report.Cancel;
end;

image

This Report.Cancel is not stopping my report. Report data is printed / previewed. In older version it works properly. Is there any difference in Report.Cancel between those versions? (or) is there any other method to stop report printing?

Comments

  • Yes, much has changed between RB 9 and RB 20 :).

    We only have resources to provide tech support to Delphi developers with an active ReportBuilder license. If you meet these requirements, please send license details to support@.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.