Got this already. For those who might ask the same question. Here's my code that works:
Code:
Dim App1 As New CRAXDRT.Application
Dim Report As New CRAXDRT.Report
App1.LogOnServer "PDSODBC.DLL", "DSNName", "DBname, "user_name", "user_pwd"
Set Report = App1.OpenReport(report_path)
Report.SQLQueryString = "select * frrom...."
rpt.ReportSource = Report
rpt.ViewReport
Got another question, I hope someone can answer. How do I display my report in a separate window or in a new window? What's the
VB code for that? Thanks.