Posts

Showing posts with the label Creport

Passing parameters programmatically to Crystal report

It is very easy to pass the parameters in Crystal reports editing the crystal reports ( just by adding the required parameters on the report and making "EnableParameterprompt = "True" " in the properties of the crystal report viewer. , but it has several drawbacks, like the parameters do not get added to the report automatically, we can not really modify the interface of parameter prompt and so on.  Today we are discussing about the parameter passing to crystal reports  programmatically.   In .aspx page, drag the control to ask for the parameters and drag the control for Crystal report viewer as follows: < table > < tr >< td style ="vertical-align: top; text-align: left; height: 21px;">< asp : Label ID ="lbl1" runat ="server" Text ="Choose the semester" style ="vertical-align: top; text-align: left" /> td > < td style ="height: 21px; vertical-align: top; text-align: left;...

Deploying web-applications which use Crystal-Reports

Image
Creating an installer is very much necessary to distribute the reporting applications being used in the web-application. In this section we are discussing how to deploy the web-application(which is using crystal reports) using Microsoft Visual Studio 2005. 1. Create a setup file Go to File> New Project >Setup and Deployment > Web setup project As shown in the figure below. Specify the name of the setup file and click on "OK" 2. There should be a bin folder inside "Web Application Folder" . Add references used in your project including the references used for Crystal report in the folder. You can do so by right clicking the "bin" folder and going to Add > Assembly 3. Now, you need to add all the files of your website to the setup file. Right click on the "Web Application Folder" in the file system column or the name of the setup file on the solutions explorer; go to Add > File and add all the files of your website. 4. Besides files...