RaviChandra
Programmer
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
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