Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 2556

Crystal reports - Database error code 17

$
0
0

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.

 

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 2556

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>