Click to See Complete Forum and Search --> : Crystal report Problem


dineshasanka
August 14th, 2001, 11:49 PM
Hi gurus.
I wrote a dll which diaplay a crystal report.But when u call that function it display the report and automattically shut down.there is hardly any time to read this.Y is this?.How can i avoid this.
Follows the way i wrote my code

CrystalReport1.ReportFileName = GetPath(mpath) & "\reports\AmzCal.rpt"
CrystalReport1.DataFiles(0) = mpath & "\GCCPoints.mdb"
CrystalReport1.DataFiles(1) = mpath & "\Server.mdb"
CrystalReport1.Destination = crptToWindow
CrystalReport1.WindowState = crptMaximized
CrystalReport1.WindowLeft = 0
CrystalReport1.WindowTop = 0
CrystalReport1.Action = 1




Dinesh Asanka

Greenu Sharma
August 17th, 2001, 12:13 AM
i would like to know which version of crystal report u r using.
if it is crp 8 then use the
viewreport method .

dineshasanka
August 17th, 2001, 07:13 AM
i'm using Crystal report 7.But now i found strange thing.It is ok when u cal from VB.But the problem comes when u call that dll from VC.Any suggestion?

Dinesh Asanka