Solved

Crystal Report does not appear when invoked

Posted on 2001-09-06
5
1,018 Views
Last Modified: 2007-12-19
I'm running Visual Studio 6.0 (Spanish Edition) with no Service Pack installed over WinME on a Pentium III 128mbRAM 600MHz machine. I was modifying a program made in VB5, everything went fine until I came up to some Crystal Reports. I'm using the crystl32.ocx (CR control 4.6) that was bounded to the VB5 project. The problem is, when the report is invoked throug this code:

With CrystalReport1
    .ReportFileName = "C:\ProjectFolder\SomeFile.rpt"
    .RetrieveDataFiles
    .Action = 1
End With      

The report will not show itself. When Destination is a Window, the window will pop up and close so fast is almost impossible to see it. When its Destination is a file, the file is deleted if exists, or will not be created at all. The Report is created from an Access Query. The query yields the apropiate results. Even weirdest: some of the reports inside the program work fine and present themselves in their windows (curiously reports from empty queries). What can be happening? I will appreciate a lot your help.
0
Comment
Question by:pire
  • 4
5 Comments
 
LVL 9

Expert Comment

by:Valliappan AN
ID: 6463030
Why do you need to run RetrieveDataFiles ?
0
 
LVL 9

Expert Comment

by:Valliappan AN
ID: 6463611
Are you able to run, if you dont put .RetrieveDataFiles ?
0
 

Author Comment

by:pire
ID: 6464366
Well I removed the line for the .RetrieveDataFiles, but, te reports keep acting the same, some of them print, and the others don't. I deleted the controls and tried new ones, using all the default property settings, just setting the .ReportFileName property.
0
 
LVL 9

Expert Comment

by:Valliappan AN
ID: 6467082
Are you able to preview the report from CR?

If so, try running it from VB from another system. Are you able to run it?

If you cannot run it from VB, may be, you need to re-create the report or try changing the database location of the CR, and Verify Database, and see if it runs...

If you still have problems, send your query/mdb, report to valli_an@softhome.net. I will give a try.
0
 
LVL 9

Accepted Solution

by:
Valliappan AN earned 150 total points
ID: 6470225
Hi,
Hope, your db fields are not matching with the structure storing in the Crystal report.

Have a look at this link:
http://support.crystaldecisions.com/kbase/c2003400.asp

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now