Quantcast
Viewing all articles
Browse latest Browse all 3636

Crystal reports - Database error code 17

Hi,

 

I have been trying to debug a project and everything is perfect except for the report generation module.

 

For report generation i am using Crystal reports, However when i try to generate the report, the Below error is displayed. Could anyone Help me to rectify the error.

 

Image may be NSFW.
Clik here to view.
error.png

 

The Related coding is given below:-

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using CrystalDecisions.Shared;

using CrystalDecisions.CrystalReports.Engine;

using System.Data.SqlClient;

 

 

namespace msmReports

{

   public static  class util

    {

       public static void billById(string billno)

       {

           frmrptViewer frm = new frmrptViewer();

 

 

           frm.crv.ReportSource = new rptbill();

 

 

           ParameterFields fields = new ParameterFields();

           ParameterField field = new ParameterField();

           field.Name = "@billno";

           ParameterDiscreteValue value = new ParameterDiscreteValue();

           value.Value = billno;

           field.CurrentValues.Add(value);

           fields.Add(field);

           frm.crv.ParameterFieldInfo = fields;

 

 

           frm.Show();

       }

 

 

       public static void viewstock()

       {

           msmReports.frmrptViewer frm = new msmReports.frmrptViewer();

        

           frm.crv.ReportSource = new msmReports.rptStockview();

           frm.Show();

       }

    }

}

 

.

 

Please Check and reply if any solutions can be offerred.

 

 

Regards Noel......

 

Message was edited by: Don Williams


Viewing all articles
Browse latest Browse all 3636

Trending Articles