Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Crystal Report does not appear when invoked

Posted on 2001-09-06
5
Medium Priority
?
1,059 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

688 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