Results 1 to 4 of 4

Thread: Crystal report

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    7

    Thumbs up Crystal report

    Hi,

    I want to know how to create a crystal report in VB6 ...


    thnx & 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: Crystal report

    Actually you don't create it in VB6, you create it using the Crystal Report interface (report viewer, report designer, whatever) and you call the previously created report from VB6.

    What version of Crystal do you have?

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    7

    Thumbs up Re: Crystal report

    hi,

    actually i am using vb internal data report....my main problem id while showing data report i am passing 5 vales to command for that data report. For the first time it shows the report...but when i am changing that value then it wont show the report according to that value it shows the older one report......it happens if i write ON ERROER RESUME NEXT front of the code...if i remove it then next time it show the erroer that "object is opened.....

    the code is....
    Private Sub Report()
    On Error Resume Next
    If Not (Combo1.Text = "") Then
    If Not (Combo2.Text = "") Then
    If Not (Combo3.Text = "") Then
    If Not (Combo4.Text = "") Then

    If Combo5.Text = "B.C.U.D." Then
    DataEnvironment1.Command1 Combo1.Text, Combo2.Text, Combo3.Text, Combo4.Text, Combo6.Text
    DataReport1.Refresh
    DataReport1.Show
    Me.Hide
    Else
    If Combo5.Text = "Management" Then
    DataEnvironment1.Command2 Combo1.Text, Combo2.Text, Combo3.Text, Combo4.Text, Combo6.Text
    DataReport2.Show
    Me.Hide
    Else
    If Combo5.Text = "Government" Then
    DataEnvironment1.Command3 Combo1.Text, Combo2.Text, Combo3.Text, Combo4.Text, Combo6.Text
    DataReport3.Show
    Me.Hide
    Else
    MsgBox "Some Thing Goes Wrong", , "Prastav"
    Combo5.SetFocus
    End If
    End If
    End If

    Else
    MsgBox " Please Enter L4", , "B.C.U.D"
    Combo4.SetFocus
    End If
    Else
    MsgBox " Please Enter L3", , "B.C.U.D"
    Combo3.SetFocus
    End If
    Else
    MsgBox " Please Enter L2", , "B.C.U.D"
    Combo2.SetFocus
    End If
    Else

    MsgBox " Please Enter L1", , "B.C.U.D"
    Combo1.SetFocus
    End If

    End Sub




    PLZ give me the solution......................

  4. #4

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    7

    Thumbs up Re: Crystal report

    hi,

    One more thing........this report is like a table of rows and column.......i have to give that report in editable format...so i have to export it to word or the other format where i can save that report in editable format.......so plz tell me this thing also............

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