Results 1 to 4 of 4

Thread: multiple data

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    146

    multiple data

    i hav a problem
    i have to print a invoice using cr 8.0 i have access database and using vb 6.0
    i have a table named data2
    i use data2 to store all the fields that are going to be used in cr
    i have a form that asks user for the invoive numbers and user enters them as from 607 to 618

    where from and to are labels and 607 and 618 are written by user in two text boxes
    now 618-607=11
    so what i have done at the click of print button in the same form the invoices from 607 to 618 are brought to data2

    now the problem is i dont know how to use the cr to print for more than 1 invoice
    i know how to print a single invoice but plz tell me how to print more than 1
    Using VB.NET 2003/.NET 1.1

    If you found a post useful then please Rate it!
    Please mark you thread resolved using the Thread Tools above

  2. #2
    Junior Member
    Join Date
    Sep 2006
    Posts
    18

    Re: multiple data

    just provide Records To CR it Will Do the rest
    But Remember to Set Proper value for section's proprty NEWPAGEAFTER / NEW PAge BEFORE

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    146

    Re: multiple data

    Quote Originally Posted by Rahul_PC
    just provide Records To CR it Will Do the rest
    But Remember to Set Proper value for section's proprty NEWPAGEAFTER / NEW PAge BEFORE

    can u plz what do u mean by it i dont know that
    Using VB.NET 2003/.NET 1.1

    If you found a post useful then please Rate it!
    Please mark you thread resolved using the Thread Tools above

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    146

    Re: multiple data

    VB Code:
    1. Set new1 = New ADODB.Recordset
    2. Dim str As String
    3. str = "select * from data2 "
    4. new1.Open str, conn
    5.  
    6. Dim oapp As CRAXDRT.Application
    7. Dim rpt As CRAXDRT.Report
    8. Dim rpt1 As CRAXDRT.Report
    9. Set oapp = New CRAXDRT.Application
    10. Set rpt = oapp.OpenReport(App.Path & "\tax invoice.rpt", 1)
    11.  
    12. rpt.Database.SetDataSource new1, 3, 1
    13. cr1.ReportSource = rpt
    14.  
    15. cr1.ViewReport

    i am using the above code it only displays the first record of the table data2
    tell me if some sought of loop is required
    plz help
    Using VB.NET 2003/.NET 1.1

    If you found a post useful then please Rate it!
    Please mark you thread resolved using the Thread Tools above

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