# Re: crystal reprot & visual basic

Posted by nothing on October 11, 1999 at 09:26:42:

In Reply to: crystal reprot & visual basic posted by vicky on October 09, 1999 at 10:52:43:

应该很简单
在crystal report上设两个formula 不要写任何程式..
在vb 中
With CrystalReport1
.Formulas(0) = "formula1 =""" & text0.text & """" '传参数
.Formulas(1) = "formula2 =""" & Text1.Text + "～" + Text2.Text & """" '传参数
.Connect = CrystalConnect
.ReportFileName = App.Path & "\AcDayCountPrint.rpt"
.Action = 1
End With
我都这样用的..试试吧

Follow Ups: