PC-DMIS 2022.1 Object Library
LoadReportTemplate Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
FileName
This required String value specifies the pathway and filename of the template to load into the Report window.
PCDLRN ActiveX DLL > ReportWindow Object : LoadReportTemplate Method

Glossary Item Box

Description

This method loads the specified report template into the Report window.

Syntax

Visual Basic
Public Function LoadReportTemplate( _
   ByVal FileName As String _
) As Long

Parameters

FileName
This required String value specifies the pathway and filename of the template to load into the Report window.

Return Type

Long value. This returns -1 (or True) if the function succeeds and 0 (or False) if it does not.

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

' Loads the TEXTONLY.RTP report template.

RepWin.LoadReportTemplate "C:\PCDMIS43RC2\REPORTING\TEXTONLY.RTP"

RepWin.RefreshReport

End Sub

See Also

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