udaya kumar

udaya kumar

  • NA
  • 52
  • 0

crystal report & report viewer issue

Mar 18 2011 3:29 AM

hi,

this thing we used to generate report,

I am new to crystal report, i used crystal report viewer to generate report,  In local crystal report generating properly, but in domain(i mean server) it not displaying properly , start with white space and toolbar displaying center of page.

<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" BackColor="white" AutoDataBind="true" EnableDrillDown="False" HasZoomFactorList="False" />

two issue we are facing

1st one is report not displying properly that i attached in this

2nd while passing parameter to report it displaying Invalid index.

the following coding we are using.

CrystalDecisions.Shared.ParameterFields pfields = new CrystalDecisions.Shared.ParameterFields();

CrystalDecisions.Shared.ParameterField pfield = new CrystalDecisions.Shared.ParameterField();

CrystalDecisions.Shared.ParameterDiscreteValue disvalue = new CrystalDecisions.Shared.ParameterDiscreteValue();

disvalue.Value = reporttitlename; // Parameter Value

pfield.Name = "@reporttitle"; // Parameter Name

pfield.CurrentValues.Add(disvalue);

pfields.Add(pfield);

CrystalReportViewer1.ParameterFieldInfo = pfields;


Attachment: error.rar

Answers (1)