Results 1 to 16 of 16

Thread: [RESOLVED] how to add crystal report xi into vb6

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2008
    Posts
    71

    Resolved [RESOLVED] how to add crystal report xi into vb6

    Hi guys,

    I want to know how to add the crystal report xi into the VB application. if you guys know or have a sample of it, please share it with me.

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

    Wink Re: how to add crystal report xi into vb6

    I believe this is a variation of the same question you have asked earlier regarding adding CR in SSTAB
    Anyway try this... Goto Project->Add Crystal Reports 11 and follow the wizard.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2008
    Posts
    71

    Re: how to add crystal report xi into vb6

    hi,

    i'm sorry guys, i still dont understand how to import the report into vb6

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Mar 2008
    Posts
    71

    Re: how to add crystal report xi into vb6

    Quote Originally Posted by VBFnewcomer
    Anyway try this... Goto Project->Add Crystal Reports 11 and follow the wizard.
    Hi VBFnewcomer,

    Can you explain more detail on how to add the crystal reports 11 to vb6. i dont see "Add Crystal reports 11" on my vb6 "project menu".
    Last edited by alexis_jane; Apr 7th, 2008 at 08:51 PM.

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

    Re: how to add crystal report xi into vb6

    Have you installed CR XI in your system. If so which Product key did you use (Developer/Designer). Uninstall your CR XI and again install, but this time make sure you use the Developer Key.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Mar 2008
    Posts
    71

    Re: how to add crystal report xi into vb6

    Quote Originally Posted by VBFnewcomer
    Have you installed CR XI in your system. If so which Product key did you use (Developer/Designer). Uninstall your CR XI and again install, but this time make sure you use the Developer Key.
    How many product key that crystal reports have? i dont know about this. i dont have the software right now,so how can i check it? any other way to differenciate between "Developer and Designer" product key?

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

    Re: how to add crystal report xi into vb6

    you should find it in the packing you purchased.
    Click on Help-> About.. and see the Top Left you should find your installation type

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Mar 2008
    Posts
    71

    Re: how to add crystal report xi into vb6

    Quote Originally Posted by VBFnewcomer
    you should find it in the packing you purchased.
    Click on Help-> About.. and see the Top Left you should find your installation type
    My installation type was CR Developer (Product Type:Full). Can it be used to add in the crystal report to VB6?

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

    Re: how to add crystal report xi into vb6

    Quote Originally Posted by alexis_jane
    My installation type was CR Developer (Product Type:Full). Can it be used to add in the crystal report to VB6?
    sure why not.
    Now click on Project Menu and let us know what are the listings found there (you may even post a snapshot). Also let us know if you have meddled with the default layout of vb6 installation.

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Mar 2008
    Posts
    71

    Re: how to add crystal report xi into vb6

    ok. by the way, were vb6 using the same way to add the crystal reports xi and crystal report 2008 to it application?
    Attached Images Attached Images  
    Last edited by alexis_jane; Apr 8th, 2008 at 01:58 AM.

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

    Re: how to add crystal report xi into vb6

    what do you find in More ActiveX Designers... also check in other Top level Menus
    I cannot comment on cr 2008. Rob had given you some guidance in your other post as to 2008.

  12. #12

    Thread Starter
    Lively Member
    Join Date
    Mar 2008
    Posts
    71

    Re: how to add crystal report xi into vb6

    Quote Originally Posted by VBFnewcomer
    what do you find in More ActiveX Designers... also check in other Top level Menus
    I cannot comment on cr 2008. Rob had given you some guidance in your other post as to 2008.
    The item that is inside More ActiveX Designers is the "Data Environment" . Other Top level menu did'nt mention about Crystal reports.

    The url address that Rob has given was the Crystal reports 2008 website, but there are not much info regarding how to add the crystal report to vb6. if you have a sample on how to add crystal reports xi to vb6, please share it with me. Thanks.

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

    Re: how to add crystal report xi into vb6

    please share it with me
    ofcourse. Thats how this forum is flourishing.
    Ok since your CR is not listed...Click on Project->components (CTL+T) and scroll to see if you have CR Activex report Viewer Library 11.0 tick it. Now you should have viewer component in the Tool box. Put it in the form

  14. #14

    Thread Starter
    Lively Member
    Join Date
    Mar 2008
    Posts
    71

    Re: how to add crystal report xi into vb6

    Hi,

    i have the "viewer" then what should i do? i mean, how am i going to add my report with it? he..he...

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

    Re: how to add crystal report xi into vb6

    Add ref to ....
    Code:
    Crystal reports ActiveX Designer Runtime Library 11.0
    Crystal reports ActiveX Designer Design and Runtime Library 11.0
    make the form & viewer large enough.
    In the project explorer of vb you should see CrystalReport1. click it you should see the same things as a normal CR Form (Database, special fields etc). Manipulate them as you like...

    There is another easy method. Simply make a report as per your requirements. In the form where you just placed the viewer add this code..
    Code:
    Dim appln As New CRAXDDRT.Application
    Dim Report As New CRAXDDRT.Report
    Private Sub Form_Load()
        Me.Top = 0
        Me.Height = MDI1.Height
        Me.Left = (MDI1.Width - Me.Width) \ 2
        
        Screen.MousePointer = vbHourglass
        Set Report = appln.OpenReport(App.Path & "yourreport.rpt")
        Report.Database.Tables(1).Location = App.Path & "\yourdb.mdb"
        Report.Database.Tables(1).ConnectionProperties("Database Password") = "yourpassword"
        CRViewer.ReportSource = Report
        CRViewer.ViewReport
        CRViewer.Zoom (100)
        Screen.MousePointer = vbDefault
    
    End Sub
    Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
        Set Report = Nothing
        Set appln = Nothing
    End Sub
    
    Private Sub Form_Resize()
    CRViewer.Top = 0
    CRViewer.Left = 0
    CRViewer.Height = ScaleHeight
    CRViewer.Width = ScaleWidth
    
    End Sub
    Last edited by VBFnewcomer; Apr 9th, 2008 at 12:47 AM.

  16. #16
    New Member
    Join Date
    Apr 2020
    Location
    India,Tamilnadu
    Posts
    7

    Re: how to add crystal report xi into vb6

    I don't have CR activeX report Viewer Library 11.0.Pls Help me


    Even i Am from India.

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