Crystalreports show report with scroll bar - c#

I have a C# application where I need to load report using Crystal Reports. By default, Crystal Report loads first page only. We need to click on "next" button to view next page. We wanted to load report with a scrollbar without using next button to jump to next page. I found following solution online:
SeparatePages = "false";
I applied this solution to my report but now it has stopped showing page header and page footer to all internal pages. Is there a way I can load report using a scroll bar and I should be able to show page header and page footer in all internal pages too?

I am afraid can't provide you the required solution but can adivce you a wrokaround.
For all sections check option "Underlay following sections"

Related

What kind of pagination crystal report uses?

Here we are talking about inbuilt pagging of crystal report.
which type of pagination will be in action when i click on previous or next button on report viewer??
1) load only that much data that is need to be shown?
or
2) load all the data and show only what is need to be shown?
CR loads all data for main report first. Then, while rendering, it loads all subreports data, required up to current page display. For pagination this means that next page navigation may query data for subreports, previous page uses cached data always. CR actually needs to render all pages up to current to know, where to place page breaks.
This is empirical evidence only - it could be possible that for some kind of reports or environments CR starts rendering before all data is read, but I haven't seen that yet :) Our reports usually include some nasty grouping and similar, which for example requires all data already present in report header or every page footer (pages count, totals etc). We are using "desktop" version of CR engine+viewer, maybe web server engine behaves differently.
Crystal Report builds the whole document, you can see it in the page numbering. Another technical reason, that CR can use forward only cursors that makes back paging impossible, it must load the data into the memory.

Open Popup from hyperlink that's been displayed in a crystal report

I am unable to make the hyperlinks in a crystal report open up in a new window. They always directs the report to another page. How do I make them into pop-ups? Need to show some detail info as a popup when user'll click on a hyperlink so that they can close it and see the main report without having to reload it.
Using ASP.NET(C#) with SQL SERVER 2012
Thanks
I'm attaching a sample image to explain the scenario a bit more. The image below is a part of my report where the blue link inside the red box is a hyperlink. On click event of that hyperlink I want to open a pop up window(.aspx).
From the report it self right click on your field to be hyperlink >> Format Object >> change the tab to hyperlink >> you can choose if your page is a file or a website on the internet >> if you are selecting a file you have to browse the location mostly it will be on your project, or if you are selecting a website on the internet you have to provide the URL e.g
HTTP//
localhost:60469/Project1/Reports/ReportViewer.aspx?ReportId=6"
in your case insert the popup path
add this to your formula to open in a new tab
{YourField}+'?sWindow=New'
also you can add formula to set your invoice number to retrieve certain data.

Multiple Reports (*.rdlc) Showing in One Report Viewer Control

We have 3 reports for parts: Approved, Cancelled and OnHold. They are independent reports that display different data for each report. The user would like to go to a "Report", where it lists each report inside a Report Viewer control and they can see all three reports (I would assume Page One shows, then page break. Page Two is the next report, Page Three is the last report when the user clicks "next" button inside the report viewer).
How would one go about accomplishing this? Each report has its own header and details, so I created each as its own .rdlc, but can't seem to figure out how to display them all together.
Make a 4th report and add each of the other three as a subreport of the new one.

Adding a different last page in Crystal Reports

I have a C# 2010 application that contains a report created using Crystal Reports for VS2010. Its purpose is printing an invoice for a client. I need to add a page (same for each invoice) that shows the methods by which the client can pay the invoice.
This would basically require me to add a page that is different from the rest of the report, at the end of the report. How can I do this?
Thank you.
I can't remember 100% if the Crystal for VS2010 supports it but Crystal Reports does have the option for defining a report footer section. If you activate this section and configure page break before to be on this should have the effect you desire.
Addition by Vlad Schnakovszki:
To prevent the Page Header section from appearing on the last page, do this:
Right-click on the Footer Section, choose Format Section. Click the button beside the Suppress (No Drill-Down) under Common Tab and place this code.
if pagenumber=TotalPageCount then true
else false
Bob Vale - Alternatively just put the formula as pagenumber=TotalPageCount
Source here.

Crystal Report : How to link from 1 report to another report

I am using Crystal Reports with C# programming language.
I want to open another report by clicking on link eg. I show Invoice's Summary like its number (named InvNo), date, items and TotalAmount.
Now I would like to open another report when user clicks on InvNo column. If user clicks on Invno 0001 then another report should be opened showing Item-wise details...
Is there any solution for this?
There are two 'linking' options:
use an 'on-demand' subreport - this is a report embedded in another report. it is NOT generated until its link is clicked. 'standard' subreports are generated at the same time as the 'main' report. in either case, a subreport can NOT contain another subreport.
create a hyperlink to another report by setting a field's Hyperlink property (choose the 'A Website on the Internet' option). if you create a conditional formula (the 'X+2' button), you'll have more control over the URL that is generated. you'll probably want to create a controller page (like 'view_report.aspx') that parses the querystring for the report's id (id=234), opens the report, authenticates, add parameters (country=USA&region=MN&start_date=20110501), generates the report, then returns it.
Use option 1 for the summary, then use option 2 for the item's details.
If you are using BusinessObjects Enterprise, use UrlReporting for option 2.
I believe subreports functionality is an answer to your question.
You would need to enter a formula that conditionally shows/hide them (they should be hidden by default). Unfortunately I cannot tell you how to do that from the back of my head, since I haven't worked on CR for pretty long time now... Please find few links here.

Categories

Resources