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

Collapse All Expand All

# Description

Read Only: Returns the number of custom report defined for the parent part program This read-only property returns the number of Custom Reports defined for the current part program.

# Property type

Read-write property

# Syntax

Visual Basic

    Public Property CustomReportCount() As Long

# Return Type

Read-only Long value representing the number of custom reports created for the current part program.

# 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 number of custom reports

MsgBox "This part program uses " & RepWin.CustomReportCount & " custom reports."

End Sub

# See Also

ReportWindow Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.