1.In CrystalReports, i am displaying dynamic Report Title text..and if it is too long an exception is coming..
2.How to bind data to a non Database Field in CrystalReports
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mayur GujrathiPosted Oct 14, 2011, 3:12 AM
Whatever the length of text you can set it in config file and then pass it crystal report as parameter after creating parameter in crystal report which will be a non database field
try following
create one parameter in crystal report name(non database field)
CrystalDecisions.CrystalReports.Engine.ReportDocument rptdocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
rptdocument.Load(rptpath);
crystalReportViewer1.ReportSource = rptdocument;
string name1= ConfigurationManager.AppSettings.Get("name");
rptdocument.SetParameterValue("name", name1);
if you dont know how to create parameter in crystal report(non database field ) then reply
Prabhu RajaPosted Oct 14, 2011, 2:05 AM
Right Click That Field -> Select Format Object -> Check Can Grow checkBox Under Common Tap
Mahesh ChandPosted Oct 13, 2011, 1:59 PM
Javeed M ShaikhPosted Oct 13, 2011, 1:57 PM
Please tell us more about the exception you are getting.