Crystal Report always asks for database login

前端 未结 4 2057
迷失自我
迷失自我 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

    try that open field explorer---> database field --->Right Click -->current Data source --->reports connection----->report ----->property ----> set Property as---

    Data Source: .\Databasename.accdb

    and code on viewer form load as

    Dim cryRpt As New ReportDocument

        Dim Report1 As New rptItemWise
    
        Dim strServerName As String
        strServerName = Application.StartupPath
    rptItemWise.SetDatabaseLogon("admin", "", strServerName, "dastabasename.accdb", True)
    
    
    
        cryRpt.Load(Application.StartupPath + "\rptItemWise.rpt")
    

    also change the report connection same as data source i think that code work for you ....

提交回复
热议问题