# Re: VB 6 中Crystal Report 的 "列印至档案"无法使用...

Posted by David on August 05, 1999 at 01:46:03:

In Reply to: Re: VB 6 中Crystal Report 的 "列印至档案"无法使用... posted by jan on August 04, 1999 at 16:31:24:

You might try to put code in your program also.
CrystalReport1.Destination = crptToFile
CrystalReport1.PrintFileType = crptCrystal
CrystalReport1.PrintFileName = "c:\temp\filename.rpt"

If this still doesn't work, I'll try to create a new control and set the same name as previous. Copy the old code to your new one.

It looks like something wrong on your property setting.

: 谢谢您的回覆，
: 可是这两个属性我都已设定过了，(所以在 VB 5 中可以正常执行...)，但一模一样的程式码在 VB6 中就是无法执行...

: : You need to set up "PrintFile Type" and the destination to "PrintToFile" (value = 2).
: : You can goto control's property and click on custom then it will show you a panel.
: : You can setup in general and printtofile tab.

: : : 各位先进请问一下，在VB6 安装Crystal Report 后，为何只能使用"列印"及"预览"功能，"列印至档案"钮按下后却全无反应?...(但相同的程式码在vb6中可正常执行)...

Follow Ups: