Click here to Skip to main content
15,030,954 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all ,

I have a crystal Report file named as customreport.rpt and another is the aspx file that is named as report.aspx.

In aspx page some controls are there and Next button is there .I want when I click on Next that crystal Report should be opened..

If anyone know this answer please help..

Regards,
Apali
Posted
Comments
Nirav Prabtani 17-Jul-13 5:14am
   
can you show some code??
Apali 17-Jul-13 5:21am
   
see I have added that crystal report file into my project. And now I want that crystal report design after clicking on next button..
protected void btnNext_Click(object sender, EventArgs e)
{
Response.Redirect("crystalreport.rpt");
}

By this I am not gettimg any other approach??
Apali 17-Jul-13 5:35am
   
I completed all the steps just now I want that crystal report in Next button click..
In page load

ReportDocument reportdocument = new ReportDocument();
reportdocument.Load(Server.MapPath("CrystalReport.rpt"));
reportdocument.SetDatabaseLogon("sa", "hobvision", "crystal1", "apali");
CrystalReportViewer1.ReportSource = reportdocument;

then what I have to I am not getting that crystal report page in next button.
Nirav Prabtani 17-Jul-13 5:43am
   
do you get any error??
Apali 17-Jul-13 6:00am
   
ya now it solved..actually in my crystal report some error was coming now it solved..thanx for help..
Nirav Prabtani 17-Jul-13 6:04am
   
welcome.. :)

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900