This read-only property returns the full directory pathway to the Custom Report or Report Template used in the Report window.
Visual Basic |
---|
Public Property CurrentReport As String |
Read-only String value representing the full directory pathway of the custom report or report template.
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
' Displays the current custom report or template
MsgBox "This measurement routine uses this custom report or template: " & RepWin.CurrentReport
End Sub