Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clicking Crystal Report's Print button closes report.
Message
De
20/02/2009 13:29:41
Sammy Derban
Ghana Telecom
Accra, Ghana
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Titre:
Clicking Crystal Report's Print button closes report.
Versions des environnements
Environment:
ASP.NET
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01383148
Message ID:
01383148
Vues:
114
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
Fil
Voir

Click here to load this message in the networking platform