Adding multiple sections in Crystal Reports without using subreports - crystal-reports

I'm making a check report and need the check stub to show up twice on each page. I think i can do this by showing the same group header, details and footer on the same page twice. The issue I'm having is that the table I'm connecting too only stores the data for a brief moment while the report is being accessed which seems to bar me from using subreports. The subreports just show up blank. Is there a way to show the same section twice without using a subreport?

Related

How to delete the last page in Crystal report?

I cannot figure out how to get rid of the last page in the Crystal report, whether in the report itself or in C# code behind it.
I know how to delete the last blank page if the report has grouping and use Not OnLastRecord. But this is not my case, I don't have grouping, and I need to delete the last page regardless whether it's blank or not. I also know how to suppress the header on the last page and use PageNumber=TotalPageCount, but this doesn't delete the page.
I would appreciate any help.
The usual cause of a blank last page is that you have a report footer section with nothing in it. Suppress that section.
Another potential cause is a group footer section set to "New Page After". Make that option conditional with "NOT OnLastRecord"

header wont appear on all pages of crystal report 2013

I am trying to have a header appear on all the pages of a report designed in crystal reports 2013. Most of the reports will one page but occasionally they may be more.
In the section header I add the below to the suppress formula and leave the box unchecked.
If PageNumber<1 Then True
However, if there are two pages the header appears only on page one. Thank you :).
Report header will be added once for report, So there is no meaning to write that formula in report header.
Now as per your requirement.
Add fields in page header and also in group header.
Add the below supress formula for page header.
if pageheader =1
then true
else false
So in page one page header will be supressed and fields will be displayed as headings in group header.
From page 2 from starting of the page you will find the fields and only one problem with this solution is if group header starts from next page you will find two headers.
Let me know how it goes
If you want to show some Objects on all pages then place objects on Page Header, If you want them to shown on Every group then place objects in Group Header, If you want to show them only on start of your report then place them in Report Header.

Crystal subreport in page footer won't print

I'm attempting to modify a Crystal Report that prints our invoices. The original request was to allow the report to print the T&C (Terms & Conditions) Page at the end of each invoice. I was able to do this successfully. However, when I presented it to the end-user they explained that they don't want to have to print each invoice individually. (Makes sense...) However, I have not been able to successfully provide results as of yet. Below are my challenges/questions:
I obviously can't expect the Report Footer to print multiple times within the report so I inserted a section below my current page footer for the T&C. I wanted to add a 'New Page Before' but that option is grayed out. After attempting to identify what was causing this to gray out without success (content that was marked 'can grow' or that was too large for a section is my understanding) I decided to attempt creating a subreport in the new page footer & I marked that section of the report as 'New Page Before' so that the T&C would be placed on a new page between each invoice. I finally got the first line of the T&C to show up but the rest was cut off and the next page started the next invoice.
Does anyone know why my subreport in the page footer - to display a single page print of our company's T&C - isn't working as intended?
Thanks in advance for your time!
Renee'
Open the SubReport by right clicking and going to Edit from the main report.
Resize the Detail section of the Subreport. This should help displaying all of the T&C

Crystal Report Group Header not visible on every page

I have a group header which contains the column names for the data in the details section. I am trying to display the group header on every subsequent page since my data in the details section is too much.
I have tried enabling the "Repeat group header on each page option" but still no help. Also tried many other solutions posted on the web. Doesn't seem to help.
My report structure is similar to the below:
Report Header
Page Header
GH1
-GH1a
-GH1b
Details
-GF1b
-GF1a
Report Footer
Page Footer
I am trying to show the group header for GH1b. Any advice would be appreciated. Thanks in advance.
Group header will be displayed on change of every group..
Since your detail data is huge group header won't be carried to next page where there is no change in group.
One wayout would be place all columns of GH1b on the page header so that it appears on every page and write the code to supress the page header when group changes that is when GH1b appears.
Hope this solution helps.

SSRS 2008 export to MS Word with dynamic Page Footer

I have a requirement to have a page footer show up on the first page of a report, and then no page footer on subsequent pages.
When I create a report that toggles the visibility of objects in the footer it works fine in BIDS, and when I export to PDF, however upon export to MS Word, the footer from the first page appears on every page.
In other tests I have attempted, it appears that other than the Page Number, anything that appears on the first page of a report's footer, will appear on every page when exported to Word.
Does anyone have ideas for how to create Footer content that changes depending on what page you are on, and will persist through the export to MS Word?
This answer is pretty late in coming to this user, but for any others fighting with this, please see the msdn SQL Server export to Word write-up here:
http://msdn.microsoft.com/en-us/library/cc627455(v=SQL.100).aspx
In a nutshell, toggling states anywhere in the report is not supported. Whatever the state of the report item is on the first page is what it'll be throughout the exported report. With that in mind, it appears that PDF will be a better format to support with your customers.