Crystal Reports 9 does not have the same control as 8.0. So the printing to the fax driver is different. I can get the report to output a file, but it is not putting out the .fmf fax format. I am using Windows XP Pro. No Error message. Do you have a sample of code using Crystal 9.0 printing an output to a file and not sending to a modem? I had this working under windows 98 and Crystal 8.0, but Crystal changed in Release 9.0 and removed the ActiveX control. The setting of the printer port looks like the problem
This works in Crystal 8
For Each Prn In Printers
If Prn.DeviceName Like "*FaxTest*" Then
' Set printer as system default.
Set Printer = Prn
Exit For
End If
Next
CrystalReports.PrinterPort = Prn.Port
CrystalReports.PrinterName = Prn.DeviceName
CrystalReports.PrinterDriver = Prn.driverName
CrystalReports.ReportFileName = "c:\reports\test.rpt"
CrystalReports.Destination = 1 '-send fax to printer
CrystalReports.Action = 1
-----------------------------------------------------------------------------
Crystal 9 changes made
Set crxReport = crxApplication.OpenReport("c:\test\test.rpt")
For Each Prn In Printers
If Prn.DeviceName Like "*FaxMan*" Then
' Set printer as system default.
Set Printer = Prn
'bThere = True
Exit For
End If
Next
crxReport.SelectPrinter Prn.driverName, Prn.DeviceName, Prn.Port
crxReport.PrintOutEx False, , , , , "c:\faxout\test.fmf"
Dave