I am currently viewing my crystal 9.0 reports through the ActiveX Viewer in Access2000. There is an export to pdf option which I wish to change to export to word doc. How do I go about it..
The pdf code is as follows:
Private Sub Image47_Click() 'Exporting to PDF
'Defines report's format type
Me.crxReport.ExportOptions.FormatType = crEFTPortableDocFormat
'Defines report's destination type
Me.crxReport.ExportOptions.DestinationType = crEDTDiskFile
'Defines report's file name
Me.crxReport.ExportOptions.DiskFileName = "H:\Common\Pioneer Lab DB\Myfile.pdf"
'exports without calling the exporting dialog window
Me.crxReport.Export False
End Sub
This works fine.. however when I try to Change the format type to crEFTWord, I get the "variable not defined" error. I can't find where the crEFTPortableDocFormat is defined either. Am I just using the wrong file type name?
Any help would be appreciated..
Jenny.
The pdf code is as follows:
Private Sub Image47_Click() 'Exporting to PDF
'Defines report's format type
Me.crxReport.ExportOptions.FormatType = crEFTPortableDocFormat
'Defines report's destination type
Me.crxReport.ExportOptions.DestinationType = crEDTDiskFile
'Defines report's file name
Me.crxReport.ExportOptions.DiskFileName = "H:\Common\Pioneer Lab DB\Myfile.pdf"
'exports without calling the exporting dialog window
Me.crxReport.Export False
End Sub
This works fine.. however when I try to Change the format type to crEFTWord, I get the "variable not defined" error. I can't find where the crEFTPortableDocFormat is defined either. Am I just using the wrong file type name?
Any help would be appreciated..
Jenny.