Using the Arviewer Control

Posted by: pete-newman on 4 August 2017, 2:48 pm EST

  • Posted 4 August 2017, 2:48 pm EST

    I have a form with the ARViewer control on it and im loading the report into it.


     RptView.ARViewer21.ReportSource = New STDINPUTRpt


    The STDINPUTRpt has two public variables  ( Licence as string , DocNo as string ) which are used in the adocontorl source string to load a specific report for a given Licence number . How when loading the report into the ARviewer can i set the values for the variables ? 

  • Replied 4 August 2017, 2:48 pm EST

    The Reportsource is a reference to the report object, so you could do this a number of ways....


    <FONT face="Courier New">With RptView.ARViewer21
       .ReportSource = New STDINPUTRpt
       .ReportSource.Licence = string data
       .ReportSource.DocNo = string data
       .ReportSource.Run
    End With</FONT>


    Or....


    <FONT face="Courier New">Dim rptExample As STDINPUTRpt
    Set rptExample = New STDINPUTRpt
    With rptExample
       .Licence = string data
       .DocNo = string data
       .Run
    End With
    RptView.ARViewer21.ReportSource = rptExample</FONT>

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels