I have a crystal report ,into which I am pulling data from the database.
The data is pulled and displayed perfectly, but I want it to be displayed on two separate pages with different page headers.
Ex
name loginid delivery asp/net com
ud ud#gmail.com yes asp com
currently these fields are displayed on one page but i want it like as follows:
page 1
name loginod delivery
ud ud#gmail.com yes
page 2
asp/net com
asp com
Can any1 help?
Insert a second details section
Position fields as desired
Add this formula to details A conditional-suppression formula:
// suppress section when page number is even (e.g. 2,4,6,...)
Remainder(RecordNumber,2)=0
Add this formula to details B conditional-suppression formula:
// suppress section when page number is odd (e.g. 1,3,5,...)
Remainder(RecordNumber,2)<>0
Related
I want to print invoices and each invoice has its own products. I use stored procedures to get the data. I want to print the invoice with all its details on a page followed by the other invoice on the next page, and so on.
Please clarify what is the problem.
If it's the need to start each invoice on a new page, then Group the report on Invoice number and set the Group Footer property of 'New Page After'.
You can use the details section of your report for that.
In the details section add the recurring fields from your data source and create the the form of your invoice. It will automatically repeat everything from the section (elements and all) with each row returned from the data source.
Depending on the page setup you can have multiple invoices on one page as well as on separate pages.
Hope this helped but you need to be more precise with your questions.
I am writing a WinForm application and have used Crystal Report to generate the billing invoice. As needed, I am able to create a report which has a Detail section to show the list of items and a Sub-report in the Page footer section to show summary of items.
Later I realised to get a duplicate copy of invoice, but I am not sure which direction to go. I tried with adding a New Detail Section (Details b) and pasted the fields from the (Details a).
Now, If I am adding 2 products then total pages getting generated are 3.
First page contains Item 1 in Details section.
Second page contains Item 1 and Item 2 (both) in Details section.
Third page contains Item 2 in Details section.
What all I want is just 2 copies with the same list and sub-report section and a text in the header of each page with a text signifying copy as Original and Duplicate.
I am newbie to Crystal Report so please let me know if question needs more clarity.
I want to display two different section in one crystal report. In my report i have created two section but they both display same data as you can saw in below image.
What setting is needed for displaying different data? Thanks.
Here image of my crystal report design
After seeing the report design, here are your issues:
Just because you have two detail sections doesn't mean it will show you two different values.
A report is structured like a book:
The Report Header and Footer are like the cover and back page - you only put information on them that you want to see once.
The Page Header and Footer should contain information that you want to see on every page at the top and bottom.
The Group Header and Footer are used to show information if your data is grouped by certain criteria - like chapters of a book.
The Detail Section shows either all data or the data that pertains to a group - like the text within the chapters.
So, in your case I would create a group that is based on your employee. Put all your header information (the top 3 lines in your report) in the Page Header. In the Group Header you put everything in line 4 and 5. Line 6 through 17 go into the Detail Section. Line 18 with all the totals goes into the Group Footer. Everything from line 19 on goes into the Page Footer.
I hope this makes sense and I'll be more than happy to help out further.
I am using a datatable to load the data for the crystal report. Based on the data filtered by the user in the DataGridview and clicking on Print will display the filtered data in Report.
All is fine.I have done this.When there is no data in the Details section I am suppressing it using the below formula in the suppress.
Shared NumberVar PageofLastField;
If OnLastRecord then PageofLastField = PageNumber;
In the header section when there is no data in Details section supress page header.Below is the formula used.
(Reference Crystal Reports - Suppress a Page Header if the page has 0 records)
Shared NumberVar PageofLastField;
PageofLastField := PageofLastField;
if pageofLastfield <> 0 and PageNumber > PageofLastField
THEN TRUE
ELSE FALSE
Below is the image of the crystal report.
When I click PRINT button in the front end. When there is no data in Details section the Page header is displayed.
Below image is the Second page of the report where there are no records and summary is displayed.
If in the header section if I use the below formula
OnLastRecord AND Count({PaymentReportTable.InvID}) <> 1
In the Second Page even if the records are displayed Pageheader is not displayed.I understand it becos the formula says it all.
I have created around 12 Crystal reports and I am facing the same problem in all of them.
Please advice.
I read your question. just inform me what happen when you not suppress.
I think your footer evaluate because of it has the value.
are you try OnLastRecord or {GROUP FIELD NAME} <> Next({GROUP FIELD NAME}) this condition as your reference link.
I Have created a Cristal report that contains details about the job the details contains in the page header consist of job no ,job name...
I want display the report in different page when the job no changes
the idea is that all the jobs having the same jobno should display in one page and if the jobno changes at the middle of one page then the details about that job should display on other page not in the same page
You need to add a group on jobno; set group to 'repeat group header on each page'. Add desired fields to group header. Suppress group footer; set 'force new page after' in group footer.
I checked Keep together option in group expert options ... Problem Solved