
How to open a report based on a datafile (.mdb) with the ocx
You may want to try this out instead
Crystalocx.ReportFileName = "f:\pastri\BesteldeHoevPerWeek.rpt"
Crystalocx.DataFiles(0) = "f:\database\Verkoopproducten.mdb"
Crystalocx.Destination = 0 'this line directs the output to the window
Crystalocx.Action = 1
I hope this helped
- Isaac
Quote:
>For a report, based on a datafile (access db) and saved with discarted
>data, what code do I need to open it with the OCX.
>why does this doesn't work ?
>Crystalocx.ReportFileName = "f:\pastri\BesteldeHoevPerWeek.rpt"
>Crystalocx.DataFiles(0) = "f:\database\Verkoopproducten.mdb"
>Crystalocx.PrintReport