Advertisement

05.29.2008 at 06:23AM PDT, ID: 23441252
[x]
Attachment Details

how do I refresh Crystal report programatically to discard saved data Crsytal report viewer C# Visual Studio 2005

Asked by indikad in Crystal Reports Software, Microsoft Visual C#.Net

I am using the Crsyal report viewer control in C# ( Visual Studio 2005)
I use the attached code
the report loads - but loads with the saved data. I want it to refresh automatically.  

Thanks in advance.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
rd.FileName = sPath;
 CrystalDecisions.Shared.TableLogOnInfo myLogin;
 foreach (CrystalDecisions.CrystalReports.Engine.Table myTable in rd.Database.Tables )
            {
                myLogin = myTable.LogOnInfo;
                myLogin.ConnectionInfo.Password = "pwd"; 
                myLogin.ConnectionInfo.UserID = "sa";
                myLogin.ConnectionInfo.DatabaseName = "dbname";
                myLogin.ConnectionInfo.ServerName = "servername";
                myTable.ApplyLogOnInfo(myLogin); 
            }
            crystalReportViewer.ReportSource = rd;            
            rd.Refresh();
[+][-]05.29.2008 at 07:16AM PDT, ID: 21669301

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.29.2008 at 09:27AM PDT, ID: 21670737

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Crystal Reports Software, Microsoft Visual C#.Net
Sign Up Now!
Solution Provided By: mlmcc
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.29.2008 at 09:36AM PDT, ID: 21670825

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.29.2008 at 09:39AM PDT, ID: 21670856

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.29.2008 at 11:55AM PDT, ID: 21672202

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.29.2008 at 11:55AM PDT, ID: 21672205

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.29.2008 at 05:24PM PDT, ID: 21674416

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.30.2008 at 08:44AM PDT, ID: 21678839

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.31.2008 at 04:34AM PDT, ID: 21683429

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628