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

Collapse All Expand All

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

# Description

Loads the specified report template into the report window 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

ReportWindow Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.