Crystal Report always asks for database login

Yohanes AI picture Yohanes AI · Jan 22, 2013 · Viewed 25.1k times · Source

I need your help.

I'm writing code for a shop program and I am using vb.net 2008 with Crystal Report version 10.5.37xxxx

The problem is when I'm trying to install my program on the client computer, everything works but not in my Crystal Report. It always asks for the database login and I did not code my program to ask for the database login.

I just wrote it in simple code like this:

Public Class Form16

    Private Sub Form16_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim view As New CrystalReport4
        view.SetParameterValue("p_1", Form5.no_faktur_tb_immanuel)
        CrystalReportViewer1.ReportSource = view
    End Sub

End Class

Can anyone help me with this?

Answer

Abdusalam Ben Haj picture Abdusalam Ben Haj · Jan 22, 2013

Make Sure your Report DataSource Provider is set to Microsoft OLE DB provider for SQL Server and not SQL Server Native Client 10.0