Information générale
Titre:
Clicking Crystal Report's Print button closes report.
Versions des environnements
Network:
Windows 2003 Server
Hello all,
I'm new to Crystal reports and have a simple report that uses the pull method.
I use the Reportviewer Control in conjunction with the Reportdocument and form parameters to view the report.
This works well and produces the report, but on clicking any control on the toobar like Print or Zoom the report closes leaving only the paramenter entry controls and submit buttons. i.e back to entry screen.
Any help?
Here's my code
ReportDocument rd = new ReportDocument();
rd.Load(Server.MapPath(@"~\Reports\Inventory\CrystalReportTest.rpt"));
ParameterFields paramFields = new ParameterFields();
ParameterField pUOM = new ParameterField();
ParameterDiscreteValue dcUOM = new ParameterDiscreteValue();
pUOM.ParameterFieldName = "PUOM";
// setting the values of discrete objects
dcUOM.Value = DropDownList1.SelectedValue.ToString();
// now adding these discrete values to parameters
pUOM.CurrentValues.Add(dcUOM);
// now adding all these parameter fields to the parameter collection
paramFields.Add(pUOM);
CrystalReportViewer1.ParameterFieldInfo = paramFields;
CrystalReportViewer1.ReportSource = rd;
CrystalReportViewer1.Visible = true;
TIA
Sam
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement