Crystal Report always asks for database login

前端 未结 4 2059
迷失自我
迷失自我 2021-01-22 23:10

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 inst

4条回答
  •  北恋
    北恋 (楼主)
    2021-01-23 00:04

    You should be able to manually code the login credentials.

    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
            Dim user as string = "Username"
            Dim pwd as string = "Password"
    
            view.SetDatabaseLogon(user, pwd)
            view.SetParameterValue("p_1", Form5.no_faktur_tb_immanuel)
            CrystalReportViewer1.ReportSource = view
    
        End Sub
    
    End Class
    

提交回复
热议问题