Solved

Crystal Report does not appear when invoked

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

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

685 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