Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Could not Print Crystal Reports to a FIle Using VB

Status
Not open for further replies.

RaviChandra

Programmer
Aug 1, 2001
4
US
Hi I am using VB6, CR8. I have developed a crystal report and was able to successfully print it to a window using VB6.
But I am unable to export the Report to a file. This is what I have coded, i am not getting my out put exported to the word doc. Please help me with the syntax If I am missing any pieces of it.
CrystalReport1.PrintFileName = ("c:\dates.doc")
CrystalReport1.ReportFileName = ("c:\dates.rpt")
CrystalReport1.SelectionFormula = "{issues.date}= DATE(" & Format(dt, "YYYY") & "," & Format(dt, "MM") & "," & Format(dt, "DD") & ")"
CrystalReport1.PrintReport
CrystalReport1.Destination = crptToFile

Thanks in advace
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top