I am unable to export a report created by crystal reports to a word doc through code alone. Vb code will only display it in the crystal reports preview. But I would like to have VB call it and save it with out user interface. Can this be done? If so how
With myReport
.DiscardSavedData
.ReportTitle = "Title here"
.ExportOptions.FormatType = crEFTWordForWindows
.ExportOptions.DiskFileName = enter path here
.ExportOptions.DestinationType = crEDTDiskFile
.ExportOptions.ApplicationFileName = enter path here
.Export (False)
End With
This will export the report to word doc without user prompts. You might need to play around with the export options as my original code exported to html.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.