PC-Dmis 2010 MR3 Object Library | Send comments on this topic. | See Object Hierarchy Chart
CurrentReport Property
See Also

Collapse All Expand All

# Description

Read Only: Returns the name of current report This read-only property returns the full directory pathway to the Custom Report or Report Template used in the Report window.

# Property type

Read-write property

# Syntax

Visual Basic

    Public Property CurrentReport() As String

# Return Type

Read-only String value representing the full directory pathway of the custom report or report template.

# Remarks

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 part program uses this custom report or template: " & RepWin.CurrentReport

End Sub

# See Also

ReportWindow Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.