Last post Apr 27, 2012 02:52 AM by jkoross
Apr 26, 2012 11:06 AM|jkoross|LINK
Kindly assist me. I have and dataset and a report. The report loads well, but when i try to move to page two or click on an item in the group tree(postback), i am prompted to enter the login credetials. I am not sure of what is supposed to be placed in the
CrystalReportViewer1_Init event to correct this. i will be glad if someone points me to the right direction. Below is my code:
da.SelectCommand = cmd;
dsreport = new
.xsd file name
dt = new
the name of data table
dt = getData();
CrystalReportViewer1.ReportSource = rptDoc;
(conn.State != ConnectionState.Closed)
Apr 27, 2012 02:00 AM|cnranasinghe|LINK
Just remove the if (!IsPostBack). Let the report to load every postback.
Apr 27, 2012 02:25 AM|jkoross|LINK
Thanks, i have removed the post back. The group tree click item list is now working fine, the only challenge remaining is that the next page does not go beyond page two.Any ideas? I appreaciate the time you are taking to guide me.
Apr 27, 2012 02:33 AM|cnranasinghe|LINK
Try moving your code to Page_init method.
Apr 27, 2012 02:52 AM|jkoross|LINK
Phew!Thanks, it worked