• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 961
  • Last Modified:

How can I stop header section repeating on other pages?

Hello experts,

   I have a report with multiple sections. I have a few questions:

     1. How can I set the header part that it will be only printed if there is details under it. Currenly for every page the header section is viewed.
     2. How can convert the date pulled from sql server db and put it in a format like JAN 05, is there a specific function? I am using stored procedures to prepare the unerlying data for crystal.

Thanks
0
sunny012097
Asked:
sunny012097
1 Solution
 
peter57rCommented:
Hi sunny,
More explanation is needed. You need to be more specific about what is printing that shouldn't.

The report header only prints at the start of the report.
A page header only prints if there is data on the page.
A group header only prints if there are details in the group.


Pete
0
 
bdreed35Commented:
1. Which header section is printing, Page or Group?  You can look in the margin in Preview

2. If the field is of date datatype when it comes over, then once you place it on the report, you can right click it, choose Format Field, go to the Date tab, click the customize button and set the properties accordingly.
You can also use a formula to convert it to a string in the format you want:

uppercase(totext({table.date},"MMM yy"))
0
 
sunny012097Author Commented:
I am talking about report header section 2
0
[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

 
sunny012097Author Commented:
sorry it is
page header section 2
0
 
wykabryanCommented:
 1. How can I set the header part that it will be only printed if there is details under it. Currenly for every page the header section is viewed.
> You would want to do a conditional suppression on this section.  
     2. How can convert the date pulled from sql server db and put it in a format like JAN 05, is there a specific function? I am using stored procedures to prepare the unerlying data for crystal.
>1. Formula - totext({date],'MMM yy')
>2. Added the column to the report.
      Right click on column, go to format field
      Go to the Date tab
      Select that appropriate format.  There should be one that looks like 'Mar-99'

Hope this helps.
0
 
mlmccCommented:
The page header will print at the top of each page.  When it is printed there is no wayto determine if there are records for that page unless you are getting an extra page.

mlmcc
0
 
wykabryanCommented:
Agree.  Correct me if I am wrong but it almost sounds like there might be some groupings that may contain no detail line, thus you do not want to show those heading.  For example the number of items per client, page break on new client.  If a client didnt order anything, then it might still create a blank page.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now