Click here to Skip to main content
15,909,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am ceating report on button click event of aspx page but print and export button sare not working..how to work with it? is there any event of that buttons?
Posted
Comments
Nelek 3-Apr-13 7:11am    
Can you explain a bit more? A code snippet of what you tried would be nice as well.
Member 9579525 3-Apr-13 7:28am    
jst i want to know how to print and export the crystal report?
N ManojKumar 3-Apr-13 8:07am    
Print and export are the default functionalities given by the crystal report viewer. Can you please check any pop-up blocker blocks your web page to open the print and export pop-ups. If not, post your button click code here.
Member 9579525 3-Apr-13 8:42am    
I am binding reports on button click of web page.

protected void btnATreport_Click(object sender, EventArgs e)
{
ReportDocument reportdocument = new ReportDocument();
reportdocument.Load(Server.MapPath("CrpATReport.rpt").Replace("Content Pages\\CrpATReport.rpt", "Reports\\CrpATReport.rpt"));
reportdocument.DataSourceConnections[0].SetLogon("sa", "******");

getreport();//in this method fetching data conditionwise
}

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