hello.
I am facing with a problem when I tried to create a report in vb using crystal report.
CrystalReport1.ReportFileName = sReportFile
CrystalReport1.DiscardSavedData = True
CrystalReport1.Destination = crptToWindow
CrystalReport1.WindowState = crptMaximized
CrystalReport1.Action = 1
when i reach to CrysalReport1.Action, an error comes up, "method 'action' or crystalctrl failed".. I'm sure report and mdb files are in right path. I am trying to print out from a temp file after making query in vb.. the temp file got the correct data, i can see the data correctly in crystal report itself.
If I omit "CRYASTALREPORT1.DISCARDSAVEDDATA=TRUE" line, the report shows up but with worng data. that means it shows the data which i got from my very firsrt execution of crystal report, yet, still i got correct data in the temp file. So I put that discardsaveddata and the "Method 'Action' or CrystalCtrl Failed" error comes up.. do u have any idea? I have license for vb n it's not the license matter I guess..
Any suggestions and comments would surely help me.. alot...
tksMoved to CR forum
JeffB
Wednesday, March 7, 2012
Crystal Report
Labels:
create,
crystal,
crystalreport1,
database,
facing,
microsoft,
mysql,
oracle,
report,
reportfilename,
server,
sql,
sreportfile
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment