# Re: 如何在主程式引用Crstal Report 作好的报表

Posted by Lisa Chang on November 27, 1997 at 18:45:28:

In Reply to: 如何在主程式引用Crstal Report 作好的报表 posted by thomas on November 27, 1997 at 01:26:19:

: 我在Crstal Report 作好一个report 如何在主程式呼叫它..
: 我是入门...没有找到方法...
Report.connect ="UID=kk;PWD=kk;DATABASE=oo;DSN=sql_odbc;"
Report.ReportFileName = "report_name.rpt"
Report.Destination = 0
Gerr = Report.PrintReport
if Gerr0 then msgbox "列印失败!"

Follow Ups: