|
-
Nov 15th, 2006, 11:19 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Return empty report in Crystal Report
I am using vb6 , Access Db and Crystal Report 9.
I use query in vb to select data I want and insert them to a table called 'Report' in 'sample.mdb'. In Crystal report design time, I connect to this table 'Report' to get fields.
When I run the Vb, I get what I want if I execute the codes step by step, in which I mean use a break point to execute the codes. But if I run it in a normal way, the report displays as an empty one.
Here is the code to run the report in Vb6:
CrystalReport1.ReportFileName = App.Path & "\CustList.rpt"
CrystalReport1.Destination = crptToWindow
CrystalReport1.DataFiles(0) = App.Path & "\sample.mdb"
CrystalReport1.Action = 1
Could any one tell me what is going on?
Thanks a lot.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|