Click here to Skip to main content
15,914,163 members
Home / Discussions / C#
   

C#

 
AnswerRe: Cross Thread Comunication Pin
moon_stick27-Jan-09 2:33
moon_stick27-Jan-09 2:33 
AnswerRe: Cross Thread Comunication Pin
J4amieC27-Jan-09 2:34
J4amieC27-Jan-09 2:34 
AnswerRe: Cross Thread Comunication Pin
Karmendra Suthar27-Jan-09 5:15
Karmendra Suthar27-Jan-09 5:15 
GeneralRe: Cross Thread Comunication Pin
Paul Unsworth27-Jan-09 21:26
Paul Unsworth27-Jan-09 21:26 
QuestiontableLayoutPanel column create dynamic Pin
anishkannan27-Jan-09 1:51
anishkannan27-Jan-09 1:51 
AnswerRe: tableLayoutPanel column create dynamic Pin
Gideon Engelberth27-Jan-09 3:15
Gideon Engelberth27-Jan-09 3:15 
GeneralRe: tableLayoutPanel column create dynamic Pin
anishkannan27-Jan-09 18:18
anishkannan27-Jan-09 18:18 
QuestionCrystal Report using a parameterized Stored Procedure Pin
The_Collector27-Jan-09 1:30
The_Collector27-Jan-09 1:30 
Hi, i don't understand the error i encountered when using a parameterized Stored Procedure in my Crystal report.... below is my coding:

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;


public partial class _Default : System.Web.UI.Page
{
private ReportDocument CreateCrystalReportDocument()

{
ReportDocument rpt = new ReportDocument();

string reportPath = Server.MapPath("MyCrReport.rpt");
rpt.Load(reportPath);

ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.ServerName = @"MyServer";
connectionInfo.DatabaseName = "MyDatabase";
connectionInfo.UserID = "MyUserId";
connectionInfo.Password = "MyPassword";

Tables tables = rpt.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
{
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
}

ParameterField paramField;
ParameterDiscreteValue discreteVal = ParameterDiscreteValue();

//the next line encounters an error occur
// 'crystalReportViewer1.ParameterFieldInfo is NULL'
paramField = crystalReportViewer1.ParameterFieldInfo["@boardTitle"];
//-----------------

//the next line did not encounter error on this line but an
//error occur after exiting
// this method === error value expected at parameter "@boardTitle"
// paramField = rpt.ParameterFieldInfo["@boardTitle"];

discreteVal.Value = "Sample";
paramField.CurrentValues.Add(discreteVal);

return rpt;
}

private void Page_Init(object sender, EventArgs e)
{
ReportDocument rpt = null;
rpt = CreateCrystalReportDocument(null, "ProductName");
CrystalReportViewer1.ReportSource = rpt;
}
}


anybody who can correct my coding.... thank you in advance to those who can help...

xxx

QuestionDownload from RapidShare (premium account) Pin
Bartosz Kita27-Jan-09 0:48
Bartosz Kita27-Jan-09 0:48 
QuestionToolTip with Close button Pin
San27-Jan-09 0:47
San27-Jan-09 0:47 
AnswerRe: ToolTip with Close button Pin
N a v a n e e t h27-Jan-09 0:56
N a v a n e e t h27-Jan-09 0:56 
GeneralRe: ToolTip with Close button Pin
San27-Jan-09 0:59
San27-Jan-09 0:59 
GeneralRe: ToolTip with Close button Pin
N a v a n e e t h27-Jan-09 1:15
N a v a n e e t h27-Jan-09 1:15 
GeneralRe: ToolTip with Close button Pin
MadArtSoft27-Jan-09 1:34
MadArtSoft27-Jan-09 1:34 
Questionclient/server problem Pin
staticv27-Jan-09 0:38
staticv27-Jan-09 0:38 
AnswerRe: client/server problem Pin
N a v a n e e t h27-Jan-09 0:45
N a v a n e e t h27-Jan-09 0:45 
GeneralRe: client/server problem Pin
staticv27-Jan-09 0:53
staticv27-Jan-09 0:53 
GeneralRe: client/server problem Pin
N a v a n e e t h27-Jan-09 1:13
N a v a n e e t h27-Jan-09 1:13 
GeneralRe: client/server problem Pin
J4amieC27-Jan-09 2:30
J4amieC27-Jan-09 2:30 
QuestionAdding bitmap icon for custom toolbox component Pin
kanchoette27-Jan-09 0:31
kanchoette27-Jan-09 0:31 
AnswerRe: Adding bitmap icon for custom toolbox component Pin
DaveyM6927-Jan-09 0:57
professionalDaveyM6927-Jan-09 0:57 
AnswerRe: Adding bitmap icon for custom toolbox component Pin
Mirko198027-Jan-09 1:01
Mirko198027-Jan-09 1:01 
GeneralRe: Adding bitmap icon for custom toolbox component Pin
kanchoette27-Jan-09 1:34
kanchoette27-Jan-09 1:34 
AnswerRe: Adding bitmap icon for custom toolbox component Pin
MadArtSoft27-Jan-09 1:38
MadArtSoft27-Jan-09 1:38 
QuestionHow to disable treeview child node in C# winforms Pin
Member 183949627-Jan-09 0:24
Member 183949627-Jan-09 0:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.