2.1.24 LoadPage
Contents
Description
The LoadPage method returns an Origin page of the specified type.
Syntax
OODL_PREFIX_METHOD(ODISPID_APP_LOADPAGE) Page *LoadPage([in] BSTR pathname, [in, optional] VARIANT options = CREATE_VISIBLE_SAME);
Parameters
- pathname
- file to create the page, and must contain the correct extension which indicates the type. For example, .otpu indicates a graph template, whereas .ogwu indicates a workbook file.
- options
- option to specify the Show state
Return
A Page object.
Remark
Examples
VB
Dim oApp As Origin.ApplicationSI Set oApp = GetObject("", "Origin.ApplicationSI") Const ORIGIN_WINTYPE_WKS = 2 Dim opage As Object Set opage = oapp.LoadPage("Column.otp")