Crystal Reports 10 - crystal-reports

I am using Crystal Reports 10. In the report I have two prompts.
How can I give this report to users such that they can enter the parameters on the web?
Thx in advance,
S.Gyazuddin

If you're using the stand alone crystal reports designer you will need to deploy the report to a web reporting tool such as Crystal Reports Server or Crystal Enterprise. Then allow your users to access it from there.
If you are using .Net then create an ASP.NET page and add a CrystalReportSource control to your report to the page. Then add a CrystalReportViewer control to the page that uses your report source and be sure the checkbox for Enable Report Parameter Prompting is checked. When they load the page it should prompt the user for the parameters.

Here is some code to get you started
ReportDocument rpt;
//set the datasource
rpt.SetDataSource(reportDataSet.Tables[0]);
ArrayList reportParameters; // you filled this arraylist with your values coming from aspx page
//set the parameters for mail report
for (int param = 0; param < reportParameters.Count; param++)
{
rpt.SetParameterValue(param, reportParameters[param]);
}

Related

How to retrieve User Management Report?

I have been using Python to explore smartsheet api in order to retrieve information for Power BI and/or user management.
Some of the reports I will like to retrieve are the ones from Account Administration tab. For example the report from "Download User List (csv)" or "Download Sheet Access Report (csv)".
Is there a report id for these, or a direct link?
The API documentation has all the details and code examples you may need.
First, list the reports the user has access to, to find the name of the report you're looking for.
response = ss_client.Reports.list_reports(include_all=True)
reports = response.data
Then once you've identified the corresponding report, use the report's id to then request a csv export.
ss_client.Reports.get_report_as_csv(
3882962191181700, # report_id
download_folder_path
)

How to get name of report used by different user in jasperserver

I am using jasper server enterprise version 7.0. Multiple users login to the server I can get the user name by using parameter - LoggedInUsername. But how can i get which report is used by the Logged in user. Is there any method to do so or is there any workaround for this?
Inside a report template (JRXML), you can get its own name calling $P{JASPER_REPORT}.getName():
And this is what you see when it's published to the server (6.4.2 in my case):
As you can see from the screenshot, the report file name and report name do not necessarily have to match.
For further details, see: http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JRParameter.html#JASPER_REPORT

How to capture input parameter in jasper server?

I want to capture input parameter values in jasper server and need to display those parameter in jasper server log file.
In coding I am not passing parameters and reports
Just calling jasper server report url to display report in my application.
Jasper server version 6.1
I need to display those log in below path.
C:\Jaspersoft_server_latest\jasperreports-server-cp-6.1.0\apache-tomcat\webapps\jasperserver\WEB-INF\logs
Input parameters of report:

How to call a jasper report through REST_V2 service with a specification what dataSource from repository should be used?

I have this scenario:
Created a jasper report and uploaded to JasperSoft Server:
"MyTestReport"
Uploaded report does not have a link to dataSource in JSS
In JasperSoft Server I have defined two datasources: AGD and AGL
I would like to call report through "rest_v2" service from database.
My URL to list resources looks like:
http://myserverurl:8081/jasperserver/rest_v2/resources
Q1: How to pass a correct datasource to this report?
http://myserverurl:8081/jasperserver/rest_v2/reports/reports/MyTestReport.pdf?j_username=jasperadmin&j_password=jasperadmin
Q2: Is there an option how to authenticate it in more secured way?
I don't think you can pass the datasource with the rest interface (but feel free to check that in the JasperReports-Server-Web-Services-Guide).
What I'd do is copy the report in Jasperserver and link one to datasource AGD and one to AGL. Then you can get your code to call the required report.
It's possible to integrate your application using single sign on so you don't have to pass the login on the url line (or I guess you could also use ssl)
This is covered in the jasperserver authentication cookbook which is available on the jaspersoft community site.

ssrs group report expand-collapse in html render

I created a ssrs report in a server and this report has row groups.
My use in the report is through my website as i use the reportexecutionserivcesoap to render the report in HTML4.0 format.
I put the html result (after i set the parameters in my app server) in the website and the table looks good but the problem is that when i click the expand '+' icon of the group i get an error: "This report requirea a default or user-defined value for the report parametrt".
I have read that the expand button sends a postback request to the report server so i assume that the postback request being sent without the parameters i already set.
What can i do so the parameter (wich i noticed that exists in the html result in tags) will be sent to the report server in the postback request