# 양식 내용이 길어서 글씨가 잘리는 경우에는 어떻게 처리해야할까요?

## ＃ 아래 내용에 대한 영상 자료

{% hint style="info" %}
<https://youtu.be/bj-beLyPO54>
{% endhint %}

## 1. 리포트 속성으로 적용하기

<figure><img src="/files/StIYxo5zYxkpjJ0LMnrl" alt=""><figcaption></figcaption></figure>

1. 내용을 반영할 Memo 칸 클릭
2. 좌측 속성에서 AutoShrink 옵션을 False → True 로 변경&#x20;

## 2. 코드로 적용하기&#x20;

<figure><img src="/files/op7NO6loC92h1knFKKCl" alt=""><figcaption></figcaption></figure>

1. 내용을 반영할 Memo 칸 클릭
2. 좌측의 'Events' 탭 클릭
3. 'OnAfterData' 속성의 공란 더블 클릭
4. 해당 메모칸에 이벤트로 생성된 내용에 아래 코드 붙여넣기

&#x20; TfrxMemoView(Sender).Font.Size := <mark style="color:red;">11</mark>;              &#x20;

&#x20; While TfrxMemoView(Sender).CalcHeight > TfrxMemoView(Sender).Height do

&#x20;   TfrxMemoView(Sender).Font.Size := TfrxMemoView(Sender).Font.Size - 1;&#x20;

```
  TfrxMemoView(Sender).Font.Size := 11;               
  While TfrxMemoView(Sender).CalcHeight > TfrxMemoView(Sender).Height do
    TfrxMemoView(Sender).Font.Size := TfrxMemoView(Sender).Font.Size - 1;
```

{% hint style="info" %}
※ '11' 의 경우, 해당 칸에 기본적인 FontSize를 의미하며, 적용할 Memo 칸의 적용된 기본 크기를 입력해주시면 됩니다.\
해당 값을 기준으로 내용이 길어질 경우 '11' 포인트를 기준으로 폰트 크기가 자동으로 줄어들어 내용이 잘리지 않게 적용할 수 있습니다.&#x20;
{% endhint %}

<figure><img src="/files/OtrFZ4nv3fI8SJO8PaOc" alt=""><figcaption><p>코드 적용 예시</p></figcaption></figure>

### 적용 전

<figure><img src="/files/u0WVbpIK8c1XuGfNoe6Q" alt=""><figcaption></figcaption></figure>

### 적용 후

<figure><img src="/files/k829nxDwJJcTOG1Egu8k" alt=""><figcaption></figcaption></figure>

### 적용 후 글씨가 너무 작은 경우&#x20;

{% hint style="info" %}
적용 후 글씨가 너무 작다면 아래 이미지와 같이 해당 칸의 크기를 늘려야합니다.

내용에 비해 지정된 칸의 크기가 작은 경우에는 물리적으로 칸의 크기를 키워서 지정해야합니다.
{% endhint %}

<figure><img src="/files/HCY4LLy3W4YSD7k1xkLm" alt=""><figcaption><p>내용이 반영될 칸 늘리기 </p></figcaption></figure>

<figure><img src="/files/V4jhiwGUn9y5oB7MfRcv" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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://help.ilabs.co.kr/faq/03/fontsizeauto.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.
