After downloading crystal reports for VS 2010, the code i used in VS 2008 generates a database login error

Imports CrystalDecisions.CrystalReports.Engine
Imports System.Data.SqlClient
Imports System.Data.OleDb


Public Class RrportForm

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim RrportForm As New ReportDocument
        RrportForm.Load("D:\PROJECT\Vehicle Management and Maintenance\Vehicle Management and Maintenance\CrystalReport1.rpt")
        CrystalReportViewer1.ReportSource = RrportForm
        CrystalReportViewer1.Refresh()

    End Sub

    
End Class

what is the database you are using and how you connect to that ?

Hi,

You can find some information how to create a crystal report with VB.Net, here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.