How to create two pair of page header and details in crystal report - c#-4.0

I'm new beginner in crystal reports and I know the basics of it.
I just create a report with one page header section and one detail section.
My concern now is how to create a pair of page header and detail.
When I adding a new detail section it just going to be a nested details section.
I want a output just like this:
-Page Header 1
--Detail 1
-Page Header 2
--Detail 2
Please help.
Thanks in advance

Use sub reports.
In one main report take 2 sub reports... one pair in one sub report and second pair in 2nd sub report

Related

Can Excel 2013 print different PrintTitleRows to each page?

I may be trying to do the impossible. What I need is to dynamically set the PrintTitleRows for each printed page in Excel. My worksheet is created dynamically and there are multiple (yet similar) sections of different row lengths and I want to show the section name and description titles on the top of the following page if the section overflows to multiple pages. The section names will not always be the same though the column titles will. The section name is on the row above the description titles.
Section name and description titles
Currently, I am calling my PageSettings sub and then executing the ExportAsFixedFormat, so I am guessing this can't be done.
I have spent the last few hours searching the Microsoft site, Stackoverflow.com and the web in general with no questions or hits related to this question.
Thanks in advance for any insight you may have.
The answer in no and is based on my experience. The PrintTitleRows and PrintTitleColumns are a one time setting which I did in my PageSettings sub. Once ExportAsFixedFormat starts running, it never hits the PageSettings sub again.
PrintTitleRows is a one time setting that places the same row (or rows) at the top of every printed page but I needed different rows.
The best I found way to achieve this is to add the necessary rows to the worksheet after each page break to make the report look the way I want when printed. I then hide these header rows from the user and display them when I print.

Cognos Report Studio - avoid Page break in Excel export?

I'm working on a report in Cognos 10 which is only composed by a list. When I export to Excel and print the report, it breaks a row of the list through pages.
I've already modified the pagination properties of the list with any result..
So, my question is, is there any way to avoid the row break through pages?
Also I would like to ask if somebody know a way to set a header and footers that appears in all pages.
Thanks in advance.
please see this IBM doc: http://www-01.ibm.com/support/docview.wss?uid=swg21419957
You can have your administrator change a parameter which will enable a single sheet export.
Just setting the "Rows per page" property of the list to a maximum value should work.
In case of List, set the Rows Per Page property to blank.
To enable the page header, go to List Headers & Footers and enable the List Page Header.

Displaying an InfoMaker sub report

I need to display an InfoMaker sub report even when there is no data. The idea is for my customer, who would like to see the header even if there is no data so that they can see that the section has no data. If I hard code the header into the main report, the sub report directly above the "empty" sub report could bleed over and display on top of the hard coded header.
I could set the "Visible" property, but I need the dynamic placement of the header to avoid being overwritten by the preceding (above) sub report.
If any further information is required, please let me know.
Thanks in advance.
Use a decode statement to add a "dummy" value if there are no results.
decode(column, data_you_expect, true_result, false_result)

Subreport for each row of Main Report in Crystal Report

I have a main report which displays Applicant and its details and I want to show the Notes related to that Applicant as a sub report, so If I have around 100 Applicants then for each row of Applicant, I want to show the details under it as a sub report.
Is it possible to have a sub report for each row?
I mean I am not able to get how from my sub report which has notes for all Applicants, I will be showing records filtered for each Applicant that too below each related Applicants row.
ApplicantName1 Address1 City1 Salary1
Notes:
Date1 Initials1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Date2 Initials2 BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
ApplicantName2 Address2 City2 Salary2
Notes:
Date3 Initials3 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Date4 Initials4 BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
I have created a sub report which shows notes for all(that is done), now how to show sub report data only related to first row?
Do I have to pass a parameter, by placing the report in the details section? Kindly guide me and I am searching for all.
You have to insert your sub report in the 'Details' section itself, under the fields. You might preferably want to turn off all headers/ footers in your sub report, and would have to play with the height of sections of main and sub report before you get them perfect.
Yes, Parameter is needed to link the two, the concept is more like linking a master/child table. not at all complex. In your case, ApplicantID could be the link key to the sub report

How do you Calculate Multiple Pages to a Grand Total in LiveCycle?

I am not a programmer but I have to create an expense form for traveling. It has to be in PDF format (preferably Adobe Acrobat editable). I created the form with Excel and exported it to Adobe but, of course, the formulas do not transfer.
I have 3 pages that are identical for calculating travel expenses with the only difference being there is one extra cell on the first page that calculates totals from each page to a grand total. Sounds easy. All the pages calculate individually with no problem but I cannot reference the totals from the individual pages to the first page where the grand total is.
I am using Adobe LiveCycle because it "simplifies" the programming process for people like me. It has worked great so far but this is the only thing problem I am having and the only thing holding me from using the form.
All three pages are in the same document. When I use FormCalc for the totals within each page, it works great:
topmostSubform.Page1.P1TotalGrand::calculate - (FormCalc, client)
$=P1MileageTotal+P1TransAirTotal+P1CarRenTotal+P1HotelTotal+P1AllowTotal+P1PhoneTotal+P1MIETotal+P1BusMealTotal+P1OtherTotal
If I go to the next page, it looks like this:
topmostSubform.Page2.P1TotalGrand::calculate - (FormCalc, client)
$=P1MileageTotal+P1TransAirTotal+P1CarRenTotal+P1HotelTotal+P1AllowTotal+P1PhoneTotal+P1MIETotal+P1BusMealTotal+P1OtherTotal
I just want to be able to add them together. When I try, it doesn't recognize the 2nd page and I don't know why. The form is pretty basic and I would really appreciate any help. If you need any additional information, I'll be glad to oblige.
I believe you can do it. There should be many ways and I am a newbie too so here are two ways...
If you want grand total of 2 pages - does not matter on which page you want it, the formula should be like
topmostSubform.Page1.P1GREATTotalGrand::calculate - (FormCalc, client)
$=P1TotalGrand+P2TotalGrand
The trick is to select both by press and hold Ctrl Key, then select the field you want to select rather then type in. this should solve the problem.
If you want the total to be at page one.
Make the P2GreatTotalGrand to be a global data and create the same data field on page one and add this new one and one already on page one to get the grand total on page one.

Resources