Hi,
I want to export a data report to pdf my code is:

strTemplate = "MyCompany Daily Report" & vbCrLf & DataReport1

DataReport1.ExportFormats.Add _
Key:="StandardReport", _
FormatType:=DataReport1, _
FileFormatString:="Standard Report (*.pdf)", _
FileFilter:="*.pdf", _
Template:=strTemplate


I got the error message:
runtime error 438

Object doesn't support this property or method.

---------------------------------------

Please help me!!!