This link에는 알고 싶은 모든 정보가 있습니다.
업데이트 : 다음은 SQL Server와의 통합 인증을위한 최소 작업 샘플입니다. 연결 매개 변수를 설정하려면 테이블 객체의 ConnectionProperties를 사용해야합니다.
Dim app As New CRAXDDRT.Application
Dim rpt As CRAXDDRT.Report
Dim tbl As CRAXDDRT.DatabaseTable
Dim tbls As CRAXDDRT.DatabaseTables
Set rpt = app.OpenReport("C:\report\repotest.rpt")
For Each tbl In rpt.Database.Tables
tbl.ConnectionProperties.DeleteAll
tbl.ConnectionProperties.Add "Provider", "SQLOLEDB"
tbl.ConnectionProperties.Add "Data Source", "localhost"
tbl.ConnectionProperties.Add "Initial Catalog", "testdb"
tbl.ConnectionProperties.Add "Integrated Security", "True" ' cut for sql authentication
'tbl.ConnectionProperties.Add "User Id", "myuser" ' add for sql authentication
'tbl.ConnectionProperties.Add "Password", "mypass" ' add for sql authentication
Next tbl
'This removes the schema from the Database Table's Location property.
Set tbls = rpt.Database.Tables
For Each tbl In tbls
With tbl
.Location = .Name
End With
Next
'View the report
Viewer.ReportSource = rpt
Viewer.ViewReport
링크를 제공해 주셔서 감사합니다. 사용자 이름과 비밀번호를 생략 할 수있는 방법이 있는지 알고 계십니까? 우리의 클라이언트는 Windows 인증을 사용하여 DB에 연결합니다. 감사합니다 다시 –
또한 예제 코드를 시도 할 때 '사용자 정의 형식이 정의되지 않았습니다.'오류가 발생합니다. 'Dim logInfo as New TableLogOnInfo', 어떤 아이디어가 누락 되었습니까? –