Results 1 to 8 of 8

Thread: VB6 and Crystal reports

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2001
    Location
    India
    Posts
    34

    Angry VB6 and Crystal reports

    I want to print a invoice from my access database using a crystal report. i have crystal report ready for that but dont know how to pass record selection criteria from my VB application to crystal report. It shows all record from invoice table. my ADO recordset in Vb application is rsInv with single record i want to print.

  2. #2
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: VB6 and Crystal reports

    What level of CR are you using?

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2001
    Location
    India
    Posts
    34

    Re: VB6 and Crystal reports

    I M using Crystal report 8, VB6 And Access Database

  4. #4
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: VB6 and Crystal reports

    I could give you some sample code if you were using CR9. It has been too long since I upgraded from 8. I don't have any VB6/CR8 code around anymore. The coding changed between the 2 versions. Sorry.

  5. #5
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Re: VB6 and Crystal reports

    Try to use TTX

  6. #6

    Thread Starter
    Member
    Join Date
    Mar 2001
    Location
    India
    Posts
    34

    Re: VB6 and Crystal reports

    I am quite new to this , so please can you explain me what is that TTX?

  7. #7

    Thread Starter
    Member
    Join Date
    Mar 2001
    Location
    India
    Posts
    34

    Re: VB6 and Crystal reports

    For the same report in data report i am using

    strSQL = "select * from inv1 where invno='" & cboInvNo.Text & "'"
    rsInv.Open strSQL, cnnInv, adOpenKeyset
    If rsInv.EOF And rsInv.BOF Then
    MsgBox "Invoice No Not Found !!!!!!"
    rsInv.Close
    Exit Sub
    End If

    Set DEVat.rscmdInv1.DataSource = rsInv
    DRInvFP.Show
    rsInv.Close

    where DEVat is dataenvironment and DRInvFP is Data Report

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

    Re: VB6 and Crystal reports

    Moved to reporting section

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