# Re: 请问vb如何呼叫crystal report的报表?

Posted by nothing on September 04, 1999 at 11:35:45:

In Reply to: 请问vb如何呼叫crystal report的报表? posted by MARTY on September 04, 1999 at 11:06:41:

: 请问各位前辈如何在vb程式中下呼叫crystal report的报表,我的资料库是sql server请帮帮忙，谢谢!!

With CrystalReport1
.SQLQuery = "select * from Ac_P_Voucher where PCreateInfo='" & mCreateInf & "'"
.Connect = "uid=sa;pwd=WEBQST;driver={SQL Server};server=QSTDB;DATABase=account;" 'crystal report 5.0 without odbc
.ReportFileName = "\vbaccount\AcVoucherPrint.rpt"
.PrintFileName = "\vbaccount\AcVoucherPrint.doc"
.Action = 1
End With

Follow Ups: