Print Page | Close Window

Asking for parameter again and again

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=11427
Printed Date: 21 Apr 2025 at 5:12am


Topic: Asking for parameter again and again
Posted By: neha_patel
Subject: Asking for parameter again and again
Date Posted: 15 Oct 2010 at 6:22am

hey please help me.....

my code works good but its asking me for parameter when i am clicking on any text on report and even when i am tring to export this to acrobate.......
please please help me some one.....
 
thanks
 
private string strDailyKey = ConfigurationManager.AppSettings["DailyKey"].ToString();

protected void Page_Load(object sender, EventArgs e)

{

ReportDocument cryRpt = new ReportDocument();

TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();

TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();

ConnectionInfo crConnectionInfo = new ConnectionInfo();

Tables CrTables;

crConnectionInfo.ServerName = clsConfig.ServerName;

crConnectionInfo.DatabaseName = clsConfig.DatabaseName;

crConnectionInfo.UserID = clsConfig.UserId;

crConnectionInfo.Password = clsConfig.Password;

cryRpt.Load(clsConfig.strDailyKey);

CrTables = cryRpt.Database.Tables;

foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables)

{

crtableLogoninfo = CrTable.LogOnInfo;

crtableLogoninfo.ConnectionInfo = crConnectionInfo;

CrTable.ApplyLogOnInfo(crtableLogoninfo);

}

CrystalReportViewer1.ReportSource = cryRpt;




Print Page | Close Window