> 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/geteventreport.md).

# GetEventReport

### public unsafe int GetEventReport(int CEID, int\[] RPTID)

특정 CEID(Collection Event ID)가 발생했을 때 함께 보고되도록 설정된 RPTID(Report ID)의 목록을 가져옵니다.\
이벤트와 보고서 사이의 연결 관계(Link)를 확인하여, 특정 이벤트 발생 시 어떤 데이터 묶음들이 호스트로 전송되는지 파악할 수 있습니다.

Parameters

<table data-header-hidden><thead><tr><th width="188"></th><th width="94"></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>CEID</td><td>int</td><td>조회하려는 컬렉션 이벤트 ID</td></tr><tr><td>RPTID</td><td>int[]</td><td>(Output) 해당 이벤트에 연결된 보고서 ID 목록을 담을 배열</td></tr></tbody></table>

```csharp
int ceid = 500; // 예: Lot Process Started 이벤트
int[] linkedRptIds = new int[255]; // RPTID를 담을 넉넉한 배열

int rptCount = m_gem.GetEventReport(ceid, linkedRptIds);

if (rptCount > 0)
{
    Console.WriteLine($"이벤트 {ceid}에 연결된 보고서는 총 {rptCount}개입니다.");
    for (int i = 0; i < rptCount; i++)
    {
        Console.WriteLine($" - 연결된 RPTID: {linkedRptIds[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/geteventreport.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.
