Collapse All Expand All

PC-DMIS 2019 R1 Object Library |
SetCurrentAsDefaultReport Method
See Also Send Topic Feedback | See Object Hierarchy Chart

PCDLRN ActiveX DLL > ReportWindow Object : SetCurrentAsDefaultReport Method

Glossary Item Box

# Description

This method sets the current report as the default report for the measurement routine.

# Syntax

Visual Basic
    Public Function SetCurrentAsDefaultReport() 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

' Sets the current custom report or template as the default

RepWin.SetCurrentAsDefaultReport

End Sub

# See Also

ReportWindow Object | ReportWindow Members

Copyright © 2019. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.