borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Selected Collating Sequence error)Next Topic (Runtime Error 20507) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : Crystal Report Problem
Poster Message
boye-i
Level: Scholar

Registered: 22-10-2002
Posts: 43

icon Crystal Report Problem

With reference to the Subject title "Installation Problem" which I posted sometime back. I am now facing this error anytime I click on a command button to display a crystal report.

Note: The crystal report Member.rpt has already been designed with Crystal Report 8.0

1. In Component section, I have selected Crystal Report control.
2. I created a new form and placed a command button and crystal report control called cmisRpts.
3. Under the command button, I type the following
    cmisRpts.ReportFilename = App.path & "\Member.rpt"
    cmisRpts.DataFiles(0) =App.path & "\Members.mdb"
    cmisRpts.Action = 1

4. When I click on the command button, the following error displays:
    Runtime Error: 20534
    Error Detected By Database DLL.

This problem is really giving me headache. How do I overcome this. I really need Help!!

Kind Regards,

IKE

____________________________
IKBoye

26-03-2004 at 07:32 PM
View Profile Send Email to User Show All Posts | Quote Reply
BRMC
Level: VB Lord


Registered: 28-11-2003
Posts: 210
icon Re: Crystal Report Problem

Hi,
try with this where CrystalReport1 are your crystal report control!



   With CrystalReport1

        .ReportFileName = App.Path & "\rpt.rpt"
        .Connect = "UID=;PWD="
        .WindowTitle = "Anagrafica"

        Classe.Stampa
          
        ' your SQL string

        .SQLQuery = strSQL

        .WindowState = crptMaximized
            .PrintReport
    
    
   End With

End If


I think u should specify your db directly in the report

Bye
BRMC


____________________________
I don't mind not going to heaven
As long as they've got cigarettes
in hell

29-03-2004 at 08:26 AM
View Profile Send Email to User Show All Posts | Quote Reply
boye-i
Level: Scholar

Registered: 22-10-2002
Posts: 43
icon Re: Crystal Report Problem - Solved

I managed to solve this problem by reinstalling Crystal Report by Clicking Add/ Remove and made sure i selected all the features under Data Access.

This has worked. Please spread this solution for anybody facing something similar to this.

This forum is really GOOD!!!

Kind Regards,
IKE


____________________________
IKBoye

31-03-2004 at 03:09 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : Crystal Report Problem
Previous Topic (Selected Collating Sequence error)Next Topic (Runtime Error 20507) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder