Results 1 to 5 of 5

Thread: Problem with crystal report control

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    1

    Problem with crystal report control

    Hi,
    Iam developing a package using vb6,crystal reports 9,and oracle 8.
    I placed crystal report control on MDI form and named it as CRP.
    but in the properties of CRP iam not getting " .SQLQuery " property
    i.e CRP.SQLQuery why it is happening..i need help
    thanks in advance

    the sample code is
    MDI_DCT.CRP.Connect = "dns=dct;UID=DCT;PWD=dcttre"
    MDI_DCT.CRP.ReportFileName = "c:\program files\DCT\Daybook_report_DUP.RPT"
    MDI_DCT.CRP.Action = 1

    in the above code if i tryed to select the property MDI_DCT.CRP.SQLQuery is not visible
    Last edited by Danny75; Jan 25th, 2008 at 10:12 PM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Problem with crystal report control

    Welcome to the forums.

    Do you have it on the parent MDI form?

  3. #3
    Addicted Member
    Join Date
    Oct 2006
    Location
    Chennai, India
    Posts
    198

    Re: Problem with crystal report control

    Are you able to get the other property without any issues? Is your tool has valid working license? Can you able to sent the sample code that you used in your application?
    Regards
    Srinivasan Baskaran
    India

  4. #4
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Re: Problem with crystal report control

    I placed crystal report control on MDI form and named it as CRP.
    Thats strange! Iam not able to do it.

  5. #5
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Red face Re: Problem with crystal report control

    I believe .SQLQueryString is option for reference to Report Report.SQLQueryString
    Add a reference to CRAXDDRT.dll (usually found in C:\Program Files\Common Files\Crystal Decisions\2.0\bin) and add the following in declarations
    Code:
    Dim appln As New CRAXDDRT.Application
    Dim Report As New CRAXDDRT.Report
    Now type Report. in the Form load event you should find the sqlQueryString pop up
    The CR control has a ReportSource property to which is passed the Report object
    Code:
    CRP.ReportSource = Report
    By the way why do you want to put it in MDI. You should consider putting it in a ordinary form. Are other options available in the intellisense (popup) or you have typed them.

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