[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

Can not see all page number in Cross-Tab Report (Crystal 8)

Dear Expert..;

  I use Cross-Tab Report Wizard to view data. However I can see first page number and last page number only.

  How can I do if I want to view all page number and have page header in all page...?

  Please answer me

  Niti
0
u3520384
Asked:
u3520384
  • 4
  • 3
1 Solution
 
DRRYAN3Commented:
If you are using the cross tab wizard, the resulting crosstab is placed in the REPORT header.  You cannot move it to another section that I know of.

Because the report header is printed once per report, I'm not sure you can do what you want to do if you use the wizard.

The cross tab wizard is a shortcut.  There are other ways to get the same results and have the same basic appearance unless the number of columns you have varies.  You might also try basing your report on a crosstab query created in your database, instead of letting Crystal Reports perform the crosstab for you.

DRRYAN3
0
 
u3520384Author Commented:
From my needs, the number of column have varies base on customer need.

 If I don't use Cross-Tab Wizard , which is the method I can see all page number. Because from Cross-Tab wizard, It is showed to Report Header , it make me see page number at first page and last page only

 Please answer me , If my report have the number of column which have varies and I want to view all page number.

 Assume that Column name is Shift(Shift can increase base on customer need..may be 2 or3 or 4) and Row name is Item_No.

  Please...

Ake
0
 
DRRYAN3Commented:
If you only have up to 4 columns, build your report with 4 columns.  Suppress the ones that have no data.  With formulas you can suppress the column headers too.

DRRYAN3
0
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

 
u3520384Author Commented:
Dear K. DRRYAN3

  My company is Software House I am coding Software for Pub and Restaurants. Therefore I am no way to know that my customer have 2 or3 or4 shift or Column... I can not know...  Please answer
0
 
DRRYAN3Commented:
Your report is data driven, right?

In a previous thread you learned how to build the select statements to pull data by date and time, right?

Tag the records with a shift number before they are printed.  If you use formulas in your report instead of fields you can control when text prints on the report.

For example:

if {mytable.shiftno} = 1 then
  "COLUMN HEADER"
else
  ""

might be the formula you use for one of your column headers.  It will print only when data is present from shift one.  If the business operates on only one shift, they only see one shift - if they operate on three, they see three sets of columns.

This is probably the easiest approach to your problem.  To be fair, there are others.  

One that comes to mind is creating the report in code using the CRPE library or with the new design time libraries.  You can build an entire report from scratch in code.  There is a lot of detail work you cannot miss for this to work.

Let me know if this helped answer the question "how can I get a varying number of columns to print without using the CrossTab Wizard so I can get page numbers on every page?"

DRRYAN3
0
 
u3520384Author Commented:
Yes..  DRRYAN3,, That is the Question Name I want

I use Shift as Column Name.It depend on my customer.
Number of Shift is vary. Therefore it must use Cross-Tab Only

Niti
 
0
 
DRRYAN3Commented:
Once again, it is not necessary to use the cross-tab expert to produce the results you want.  You can put all the columns you need to handle up to 4 shifts on your report design and selectively hide the ones which do not apply.

If you use the cross-tab wizard, you will not have page numbers if your report is several pages long.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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