Results 1 to 3 of 3

Thread: VB6 Crystal Report8 - View report problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    1

    Unhappy VB6 Crystal Report8 - View report problem

    Hi,


    I have visual Basic6 and Seagate Crystal Report version 8

    I have two big projects thier method is just producing reports...
    to know the problem which I will describe now... I created new simple program
    just one command to run crystal report...
    I used two components:
    1) CRViewer
    2) CrystalReport

    The problem is my two big project is using the first component
    and The amazing thing is that the simple program is working with programmar

    but it is not working in the user side (just when using the first component
    side it is not working for some users without any error or worning messages just NO RESPONCE when I click the bottun... )


    here is the code:

    '-------

    Private Sub Command1_Click()
    Dim crpRep As CRAXDRT.Report
    Dim crpApp As CRAXDRT.Application
    Set crpApp = New CRAXDRT.Application
    Set crpRep = crpApp.OpenReport("s:\testwaseem.rpt")

    CrystalReport1.Reset 'First component (not working)
    CrystalReport1.ReportFileName = "s:\testwaseem.rpt"
    CrystalReport1.Destination = crptToWindow
    CrystalReport1.WindowState = crptMaximized
    CrystalReport1.PrintReport

    CRViewer1.ReportSource = crpRep 'second component (working)
    CRViewer1.ShowNextPage
    CRViewer1.Visible = True
    CRViewer1.ZOrder 0
    CRViewer1.ViewReport
    CRViewer1.PrintReport

    End Sub
    '--------------------

    PICs...

    http://www.geocities.com/w_almohsin/11.bmp
    http://www.geocities.com/w_almohsin/22.bmp
    http://www.geocities.com/w_almohsin/12.bmp


    any Idea... Please help...


    Regards,

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

    Re: VB6 Crystal Report8 - View report problem

    Moved

  3. #3
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: VB6 Crystal Report8 - View report problem

    You probably haven't deployed all the CR dependencies...

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