# 可以再请你帮忙吗?

Posted by nothing on March 08, 1999 at 17:39:03:

In Reply to: Re: 有人知道crystal report 4.6如何将报表印成档案吗? posted by Keven on March 08, 1999 at 16:38:28:

: 请问你的Destination属性是否有设定成2(档案)呢?
下列是我的程式..可是一样找不到 acitem,doc 这个档案,另外设Destination = crptToFile时萤幕上就不会出现报表,能不能先出现报表,再决定要印到印表机或档案呢..
谢谢你..]

With CrystalReport1
.Formulas(0) = "companyname=""" & CompanyName & """"
.SQLQuery = pSQLVariableString
.LogonInfo(0) = "DSN = Account;UID = sa;PWD =WEBQST;"
.ReportFileName = "C:\ACCOUNT\ACITEM.RPT"
.PrintFileName = "c:\account\acitem.doc"
.PrintFileType = crptWinWord
.Destination = crptToFile
.PrintReport
End With

Follow Ups:

- Re: 可以再请你帮忙吗? Keven 10:30:57 3/09/99 (1)
  - 可以了..非常谢谢你..(无内文) nothing 14:04:34 3/09/99 (0)