Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Page break when date changes. Post Reply Post New Topic
Author Message
JRCharlie
Newbie
Newbie
Avatar

Joined: 25 Apr 2015
Online Status: Offline
Posts: 15
Quote JRCharlie Replybullet Topic: Page break when date changes.
    Posted: 09 Oct 2020 at 3:32pm
Hi all
I'm using Crystal report in VS2019
I currently have a main report with 4 subreports in the page header.
These reports conatin all orders for a current week, each subreport organizes orders by category.
Subreport1 category1 and so on.
Now what I would like to do is when the date changes a new page is displayed with the orders that belong in that day.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 12 Oct 2020 at 10:45am
Since it is in the page header, you do not have an option that I can see.

What I would do, and hopefully this makes sense for the report, is to create a group based on the date.

Put all of your subreports into the group header. Now, on the first group header (I am assuming that there are multiple group headers, 1 for each subreport) you can either check the box in the Section Expert for a New Page Before or you can put this code in the formula for that option: Not OnFirstRecord

The code just saves the first page from being blank.

HTH
IP IP Logged
JRCharlie
Newbie
Newbie
Avatar

Joined: 25 Apr 2015
Online Status: Offline
Posts: 15
Quote JRCharlie Replybullet Posted: 14 Oct 2020 at 4:59pm
Thanks Lockwelle for your reply.
I have the page break working by grouping they date in the subreport and then under the page will print Ichoosed for each day, and in option Iplaced acheck mark in new page after 1 visable group.
This seam to work.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.