Solved

Crystal Report does not appear when invoked

Posted on 2001-09-06
5
1,023 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

919 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

14 Experts available now in Live!

Get 1:1 Help Now