> For the complete documentation index, see [llms.txt](https://nviasoft.gitbook.io/nviasoft-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nviasoft.gitbook.io/nviasoft-docs/api-reference/item-parsing/getreport.md).

# GetReport

### public unsafe int GetReport(int RPTID, int\[] VID)

등록된 특정 RPTID(Report ID)에 포함된 VID(Variable ID)들의 목록을 가져옵니다.\
SECS/GEM에서 보고서(Report)는 이벤트 발생 시 함께 보고할 변수들의 묶음인데, 이 함수를 통해 해당 보고서가 어떤 데이터들을 포함하고 있는지 동적으로 확인할 수 있습니다.

Parameters

<table data-header-hidden><thead><tr><th width="214"></th><th width="107"></th><th></th></tr></thead><tbody><tr><td><strong>Name</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>RPTID</td><td>int</td><td>조회하려는 보고서 ID</td></tr><tr><td>VID</td><td>int[]</td><td>(Output) 해당 보고서에 포함된 VID 목록을 저장할 배열</td></tr></tbody></table>

```csharp
int rptid = 100;
// 최대 255개(1020바이트 / 4바이트)의 VID를 담을 수 있도록 배열 준비
int[] vids = new int[255]; 

int vidCount = m_gem.GetReport(rptid, vids);

if (vidCount > 0)
{
    Console.WriteLine($"Report {rptid}은(는) {vidCount}개의 VID를 포함하고 있습니다.");
    for (int i = 0; i < vidCount; i++)
    {
        Console.WriteLine($" - 연결된 VID: {vids[i]}");
    }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nviasoft.gitbook.io/nviasoft-docs/api-reference/item-parsing/getreport.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
