Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Crystal Report does not appear when invoked

Posted on 2001-09-06
5
Medium Priority
?
1,063 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 600 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

963 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