I deployed my website in IIS 7.5, when i click on the button to open the page that contain the report, i get a blank page for the first time,but when i refresh the page it's ok. it's happened just for the first load. how can i fix this problem ?
You did not pass rptdoc to Crystal report viewer on button click
used this command on button click because first page load is called then button click you calling report viewer on page load and set report parameter on function check below code
None
0 Points
7 Posts
How to refresh a crystal report !!
Dec 28, 2014 10:51 AM|ghilasdz|LINK
I deployed my website in IIS 7.5, when i click on the button to open the page that contain the report, i get a blank page for the first time,but when i refresh the page it's ok. it's happened just for the first load. how can i fix this problem ?
please help me.Thanks in advance.
Crystal asp.net
Participant
815 Points
298 Posts
Re: How to refresh a crystal report !!
Jan 07, 2015 01:12 AM|morefays|LINK
check the code written inside the postback
better to share your code.
Crystal asp.net
~Please Mark As Answer, if one or multiple posts, which helped you in your problem. So that it might be useful for others~
dotnetfarrukhabbasblogspot
None
0 Points
7 Posts
Re: How to refresh a crystal report !!
Jan 07, 2015 03:52 AM|ghilasdz|LINK
Crystal asp.net
Participant
815 Points
298 Posts
Re: How to refresh a crystal report !!
Jan 07, 2015 04:11 AM|morefays|LINK
You did not pass rptdoc to Crystal report viewer on button click
used this command on button click because first page load is called then button click you calling report viewer on page load and set report parameter on function check below code
CrystalReportViewer1.ReportSource = rd;
CrystalReportViewer1.DataBind();
CrystalReportViewer1.RefreshReport();
Crystal asp.net
~Please Mark As Answer, if one or multiple posts, which helped you in your problem. So that it might be useful for others~
dotnetfarrukhabbasblogspot
None
0 Points
7 Posts
Re: How to refresh a crystal report !!
Jan 08, 2015 02:28 AM|ghilasdz|LINK
thanks for your reply,
but the code of button and page that contain crystalviewer it's not in the same page.aspx that's why i used session.
this code is not accepted in the page that contain the button...
Crystal asp.net
Participant
815 Points
298 Posts
Re: How to refresh a crystal report !!
Jan 10, 2015 11:52 PM|morefays|LINK
call the same button code on page load without using selection formula and check it is working fine
Crystal asp.net
~Please Mark As Answer, if one or multiple posts, which helped you in your problem. So that it might be useful for others~
dotnetfarrukhabbasblogspot