CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 1999
    Posts
    6

    Changing database location in crystal reports ocx

    Hi,
    I have the following problem.
    When I change in code the location of the database in my code and set the datafiles(0) property acordingly
    I get the "error detected by database dll". Why?
    If I don't change the location it works fine.

    VB4-32 and Crystal Reports 4.5


  2. #2
    Join Date
    May 1999
    Posts
    7

    Re: Changing database location in crystal reports ocx

    Does your report have any subreports. If it does, you have to change the database location for the subreports also.

    Mel Lamelas


  3. #3
    Join Date
    Nov 1999
    Posts
    3

    Re: Changing database location in crystal reports ocx

    I guess the path of the database to which the .RPT file is pointing might be wrong. Try this.

    Open the RPT file in crystal reports and point the database location to the one that you are assigning using the DataFiles property. Save the RPT file. Hope this works.

    I guess, at the time of creation of a RPT file the databse location asked is referenced in the RPT file.




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