# Re: 真的都没有人会stored procedure & Crystal report吗??????

Posted by AndyLin on January 19, 1999 at 09:45:47:

In Reply to: 真的都没有人会stored procedure & Crystal report吗?????? posted by Maggie on January 18, 1999 at 09:29:50:

: 希望各位高手指点一下.......
: 这段程式的写法...
: With CrystalReport1
: .SQLQuery = "Exec erbcompile..erpr_plancost1 '"
: & Form1.Combo1.Text & "' "
: .LogonInfo(0) = "DSN =erl_dp2;UID =erlmis;PWD =erlmis;"←执行到这里就出现执行期错误!!不要使用Connect属性与LogonInfo属性
: .ReportFileName = "C:\test\test.rpt"
: .DiscardSavedData = True
: .Destination = 0
: .Action = 1
: End With
: thanks.....
: Maggie
试试看将连结字串设在 connect 属性
.connect= "DSN =erl_dp2;UID =erlmis;PWD =erlmis;"

Follow Ups: