Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

3/25/23, 4:29 PM Function: NewReport

Function: NewReport
Function Prototype

Note

Parameter Description

Return Value

Error Handling

Example

Result

This section describes the NewReport function. This function enables you to create a report.

Function Prototype
NewReport()

Note
During the report operation, this function must be called before it is called by other report
operations.

For one task, NewReport can be called only once. If the NewReoprt() interface is called again,
all the previous report operations are deleted.

Parameter Description
None

Return Value
The return value is an integer. If the report is created successfully, the value 1 is returned.
Otherwise, 0 is returned.

Error Handling
None

Example

https://10.98.117.5:31943/hedex/hedex.do?lib=OMC&id=omc.Scriptapp.mainpage&topicid=p_newreport_a&locale=en-us 1/2
3/25/23, 4:29 PM Function: NewReport

NewReport()
page1 = AddSheet("page1")
SaveReportAs("exa08.xls")

Result

The exa08.xls file is created.

Examples of Report Operation Function

Copyright © Huawei Technologies Co., Ltd.

https://10.98.117.5:31943/hedex/hedex.do?lib=OMC&id=omc.Scriptapp.mainpage&topicid=p_newreport_a&locale=en-us 2/2

You might also like