Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports 4 shows no data :(

Status
Not open for further replies.

melbe

Programmer
Apr 28, 2003
6
0
0
MX
Hi !

I'm a beginner with Crystal Reports and Visual Basic.
These are my pc's configurations:
- Windows XP
- Visual Basic 6
- Crystal Reports 4.6.1.0

I fill an Access 97 table and after that i call my Crystal Report Control within the visual Basic Application.
This Crystal Report Control is located in c:\Windows\System32\crystl32.ocx

But when this report is called there is no data, even when the table is not empty, this happens when i only have 1 register on the table.

What could be the problem ?

Thanks a lot !!!

Melibe
 
Show us the records selection formula of the report

Jim Broadbent

The quality of the answer is directly proportional to the quality of the problem statement!
 
Hi Jim!

I have no formula on the report. I made it through the Crystal Report and I call it from Visual Basic with this code:

' Here i fill the table
' this is a procedure where i open the table, insert
' some records and finally close it
MReporte.LlenarTablaReporte1 (Nomina)

' And after that ... i call the report
With F_Menu.CrystalReport1
.ReportFileName ="c:\sisnom\reportes\report1.rpt"
.DiscardSavedData = True
.RetrieveDataFiles
.PrintReport
End With

Thanks again...

Melbe
 
You don't need to retrieve data files, and you shouldn't have to discard saved data because you shouldn't be saving data with the report. However these shouldn't prevent the report from getting data.

Have you tried running a simple report against a static table from a simple 3 line application?

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Expert's Guide to Formulas / Tips and Tricks / Guide to Crystal in VB
- tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top