CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2002
    Posts
    14

    Question Crystal Reports in vb.net

    Hello,

    I have shown below how i am calling the .rpt file.This works fine in the system where i create the setup of my application.
    When this setup is copied and installed on a different system.
    This gives me a "Query Engine Error"
    Could you help me with this.

    Code used....
    objCrRptDoc.Load(Application.StartupPath & "\rptCallDetails.rpt", _
    CrystalDecisions.[Shared].OpenReportMethod.OpenReportByDefault)
    CryRepVwCallDetails.ReportSource = objCrRptDoc

    OR

    objCrRptDoc.Load("C:\Program Files\Kshema Technologies Ltd\VeDA0.1\rptUsersDirectory.rpt", _
    CrystalDecisions.[Shared].OpenReportMethod.OpenReportByDefault)
    CryRepVwCallDetails.ReportSource = objCrRptDoc


    Both the above code didnt work for me.

    -Balaji

  2. #2
    Join Date
    Feb 2003
    Location
    Hyderabad
    Posts
    181
    I havent worked on .NET but what i feel is that some file DLL or OCX is missing in your setup which is causing the Error.


    Ritesh

  3. #3
    Join Date
    Jan 2002
    Posts
    14

    Question Using Crystal Reports in vb.net

    Originally posted by riteshtandon
    I havent worked on .NET but what i feel is that some file DLL or OCX is missing in your setup which is causing the Error.


    Ritesh
    Hello,

    I hve used crystal reports in my vb.net application.and have created a setup of it.but when i install the setup in a different system, when show report menu is clicked gives me a "query engine error"
    could you let me know what all merge modules should i inculde or is there any other things i have to take care.

    bringing of this thread i have shown i how i have loaded the report!

    thanks
    -balaji

  4. #4
    Join Date
    Feb 2003
    Location
    Hyderabad
    Posts
    181
    This is certainly a problem of incorrect installation of crystal report. check CR documentation to see what all files(DLL & OCX) are needed to access the database, and whether u have added them to your installation.

    Or try to use the CR designer inside of VB

    Ritesh
    [email protected]

  5. #5
    Join Date
    Jan 2002
    Posts
    14

    Thumbs up crystal reports dll

    Hello,

    had to include some merge modules.

    Thanks.

    Originally posted by riteshtandon
    I havent worked on .NET but what i feel is that some file DLL or OCX is missing in your setup which is causing the Error.


    Ritesh

  6. #6
    Join Date
    Feb 2003
    Location
    Hyderabad
    Posts
    181
    whats merge modules

  7. #7
    Join Date
    Jan 2002
    Posts
    14

    crystal reports

    when using crystal reports and building a setup file u need to include the follwong merge modules and dlls

    vc_crt.msm
    vc_stl.msm

    dlls should go into the system folder
    msvcp70.dll
    msvcr70.dll

    merge modules contain some dependency dlls
    provided by microsoft

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured