Results 1 to 12 of 12

Thread: Passing parameters with vb6 to CR11

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2006
    Posts
    320

    Passing parameters with vb6 to CR11

    I would like to pass some values from VB6 to CR11. Ifound some code posted. I have tried but get the following error. Here is the code I copied from here and the associated error.

    VB Code:
    1. Sub RunReport()
    2. Dim crxApp As New CRAXDDRT.Application
    3. Dim crxReport As CRAXDDRT.Report
    4. Dim crxDatabaseTables As CRAXDDRT.DatabaseTables
    5. Dim crxDatabaseTable  As CRAXDDRT.DatabaseTable
    6. Dim crxDatabase As CRAXDDRT.Database
    7. Dim crxParm As CRAXDDRT.ParameterValues
    8. Dim crxSubReport As CRAXDDRT.Report
    9.  
    10. Dim ReportName As String
    11.  
    12. ReportName = "C:\Consulting\Georgia\Cutbill\Reports\Guide.rpt" 'Report Path
    13.  
    14. Set crxReport = crxApp.OpenReport(ReportName)
    15.  
    16. crxReport.ParameterFields.GetItemByName("Door Series").AddCurrentValue (CBDoorCode(CBLI))
    17. crxReport.ParameterFields.GetItemByName("Slat Type").AddCurrentValue CBSlatType(CBLI)
    18.  
    19. 'crxReport.PrintOut False, 1 'uncomment to printout the report
    20.  
    21. With crView 'Control Name
    22.     .ReportSource = crxReport
    23.     .ViewReport
    24.     While .IsBusy
    25.         DoEvents
    26.     Wend
    27.     .Zoom "75"
    28.     .Visible = True
    29. End With
    30. End Sub
    Attached Images Attached Images  

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