Send Topic Feedback | See Object Hierarchy Chart
PC-DMIS 2022.2 Object Library
PCDLRN ActiveX DLL > ReportWindow Object : RefreshReport Method
RefreshReport Method
Description
This method reloads the report data into the report template, thereby refreshing the contents of the Report window.
Syntax
Visual Basic
Public Function RefreshReport() As Long
Return Type
Long value. This returns -1 (or True) if the function succeeds and 0 (or False) if it does not.
Example

Sub Main

Dim App As Object

Dim PartProg As Object

Dim RepWin As Object

Set App = CreateObject("Pcdlrn.Application")

Set PartProg = App.ActivePartProgram

Set RepWin = PartProg.ReportWindow

 

' Refreshes or redraws the current custom report or template

RepWin.RefreshReport

End Sub

See Also