Results 1 to 3 of 3

Thread: Retrieving Crystal Reports SQL query

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2004
    Posts
    23

    Question Retrieving Crystal Reports SQL query

    Hi

    I am trying to get the sql query of a crystal reports file through code, I tried using the following line of code...

    Code:
    strSQL = CR.SQLQueryString
    
    where CR is the CRAXDRT.Report object present in 
    "Crystal Reports ActiveX Designer Run Time Library 11.0"
    As we know a db connection to the db used by the reports is needed for the above operation.
    The code above mentioned works fine if the db login used in the rpt file uses blank password, but throws an error if db login has a non-blank password, this is because of the reason that db login passwords are not stored in Crystal reports file.

    I know that we can use the "LogonServer()" method of CRAXDRT.Application object and set the connection info that is used by the report, but I am not able to find any good documentation for the same method. Please let me know if anyone knows any good/official documentation for "Crystal Reports ActiveX Designer Run Time Library 11.0".

    Can we retrieve the SQL query used by a report using "Crystal Reports for .Net" - CrystalDecisions.CrystalReports.Engine namespace. Also how to set connection info in this.


    Thanks

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Apr 2004
    Posts
    23

    Unhappy

    Any help available??

  3. #3
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Retrieving Crystal Reports SQL query

    The Crystal Reports documentation can be found here

    http://devlibrary.businessobjects.co...n/devsuite.htm

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