Print Page | Close Window

How to delete the last page in Crystal report?

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22529
Printed Date: 28 Mar 2024 at 7:38am


Topic: How to delete the last page in Crystal report?
Posted By: pva1958
Subject: How to delete the last page in Crystal report?
Date Posted: 24 Jan 2018 at 5:40am
Hello,

I cannot figure out how to get rid of the last page in the Crystal report, whether in the report itself or in C# code behind it.

I know how to delete the last blank page if the report has grouping and use "Not OnLastRecord". But this is not my case, I don't have grouping, and I need to delete the last page regardless whether it's blank or not. I also know how to suppress the header on the last page and use "PageNumber=TotalPageCount", but this doesn't delete the page.

I would appreciate any help. Thank you.



Replies:
Posted By: kevlray
Date Posted: 24 Jan 2018 at 9:23am
Never had to suppress the last page always.  But you would have to probably put the suppression formula in a number of places (page header, Details, page footer, report footer)


Posted By: pva1958
Date Posted: 24 Jan 2018 at 9:41am
Thank you. Tried this, didn't work.


Posted By: kevlray
Date Posted: 25 Jan 2018 at 6:53am
I would have to do some testing.  Unfortunately I have little spare time now.  Hopefully another forum member has a solution.



Print Page | Close Window