Overview
Overview
The HancomEx library is a library that automates Hancom Office Hangul programs, just like the Hwp library, which is an essential library and provides more diverse functions.
Hancom Office Hangul program must be installed separately.
Hancom Office: https://www.hancom.com/
The features provided by the HancomEx library are as follows:
Creating New Hwp file, opening and closing Hwp files: NewHwp, OpenHwp, CloseHwp
Saving Hwp file : SaveHwp, SavePdf
Handling presser fields : GetPressFieldList, SetPressField, GetPressFieldValue
Inserting, Replacing text, table and picture : InsertText, InsertPicture, InsertTable, ReplaceText
Table/Cell Handling : GetCellText, SelectTableCell, SelectAllTableCell, PasteClipboardCell, DeleteCellText, SetBgcolorCell, SetBorderCell, AddTableRow, AddTableColumn, DeleteTableRow, DeleteTableColumn, ResizeWidthTableCell, ResizeHeightTableCell, MergeTableCell, SplitTableCell
Moving caret and selecting Range: MoveCaret, SelectRange
Return/find the specified number of texts : GetCountText, MoveFindText
Numbering and breaking page : PageBreak, PageNumbering
Copying, pasting shapes : PasteClipboard, CopyShape, PasteCopyShape
Applying shapes : SetCharShape, SetParaShape
Macro execution : ExecuteHwpMacro
The HancomEx library provides functions by utilizing the HwpCtrl API provided by Hancom Office.
The movement method of the caret (cursor) and the method of performing functions based on the caret position and the selected area are basically the same as the method of using the Hancom Office Hangul program directly by the user.
Common properties
Common properties
MORE OPTIONS
Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|
On Error | Combination box | N | - | N | Specify an action to carry out when an error occurs at the time of execution. - If not specified: Output errors and exit the task. - --Ignore--: Ignore the error. - --Retry--: Try the activity one more time. - --Goto--: Try the scenario for the specified time if the activity fails. - _Event: Select an event created within the project. |
DESCRIPTION
Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|
DESCRIPTION | Text | N | - | N | Enter the description for the activity card. The description entered in the DESCRIPTION field is used as the description of the activity. A representative value will be displayed in the absence of the DESCRIPTION input. |
NewHwp
NewHwp
This activity card executes a new Korean document.
Application procedure
In the [Output] field, enter the variable to store the Hangul object executed in Hangul.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Output] Hangul | Variable | Y | - | Y | Enter a variable to specify the result of the call. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
After creating a new Hangul document, save the Hangul document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_NewHwp
Used variables
hangul = variable to store the executed Hwp object
Used properties
[Output] Hangul = this.hangul
Saveas = this.resourceDir + 'Sample2.hwp'
Related/Similar activities
OpenHwp
OpenHwp
This activity card opens the Hangul document in the specified path.
Application procedure
In the [Output] field, enter the variable to store the Hangul object executed in Hangul.
In the file path field, enter the Open target file path.
If the document is encrypted, it will not work.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Output] Hangul | Variable | Y | - | Y | Enter a variable to specify the result of the call. |
N | File Path | Text | Y | - | N | Enter the Open target file path. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Opens the Hangul document in the specified path and saves it as a different name. After that, close Hwp.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_ OpenHwp
Used variables
hangul = variable to store the executed Hwp object
Used properties
[Output] Hangul = this.hangul
File Path = this.resourceDir+'newHwp.hwp'
SaveAs = this.resourceDir+'Sample2.hwp'
Related/Similar activities
SaveHwp
SaveHwp
Overview
This activity card saves the received Korean document.
Application procedure
In the [Input] Hangul field, enter the Hangul object received from NewHwp or OpenHwp.
To save the document in a different file name, enter the path and file name of the document in the SaveAs field.
Set the OverWrite property to select whether to overwrite any existing file.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input ]Hangul | Variable | Y | - | N | Enter the Hangul object received as a result of NewHwp, OpenHwp. |
N | Saveas | Text | N | - | N | To save the document with a different name, enter the path and file name. |
N | Overwrite | Toggle button | N | - | N | Set whether to overwrite existing files. (Default: On) |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Opens the Hangul document in the specified path and saves it as a different name. After that, close Hwp.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_ OpenHwp
Used variables
hangul= variable to store the executed Hwp object
Used properties
[Input] Hangul = this.hangul
Saveas = this.resourceDir+'Sample2.hwp'
Overwrite = On
Related/Similar activities
SavePdf
SavePdf
Overview
This activity card saves the received Korean document as a PDF file.
Application procedure
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
Enter the path and file name to save as a pdf file in the PDF File
Set the OverWrite property to select whether to overwrite any existing file.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | N | Enter the Hangul object received as a result of NewHwp, OpenHwp. |
N | PDF File | Text | N | - | N | Enter the path to save as a PDF file. |
N | Overwrite | Toggle button | N | - | N | Set whether to overwrite existing files. (Default: On) |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Opens the Hangul document in the specified path and saves it as a Save As and PDF document. After that, close Hwp.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_ SavePdf
Used variables
hangul = variable to store the executed Hwp object
Used properties
[Input] Hangul = this.hangul
PDF File = this.resourceDir + 'Sample.pdf'
Overwrite = On
Related/Similar activities
CloseHwp
CloseHwp
Overview
This activity card closes the open Hangul document.
Application procedures
In the [Input] Hangul field, enter the Hangul object received from NewHwp or OpenHwp.
Set whether to close and save changes to Save.
The Korean document you want to close must be open.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | Hangul | Variable | Y | - | N | Enter the Hangul object received as a result of NewHwp, OpenHwp. |
N | Save | Toggle button | N | - | N | Set whether to save and close the changes (Default: On) |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Opens the Hangul document in the specified path and saves it as a Save As and PDF document. After that, close Hwp.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_ SavePdf
Used variables
hangul= variable to store the executed Hwp object
Used properties
[Input] Hangul = this.hangul
Save = On
Related/Similar activities
GetPressFieldList
GetPressFieldList
Overview
This activity card gets a list of press frame fields from the received Korean document.
Application procedures
In the [Output] field, enter a variable to store the result in Field Array.
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
The press frame field must be specified in the imported Korean document.
※ Korean menu: [Input] tab > Press frame
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Output] FieldArray | Variable | Y | - | Y | Returns a list of press frame fields in the Korean input document. |
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of OpenHwp. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Check the list of press frame fields in the imported Korean document and enter text in the press frame field.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_ GetPressFieldList
Used variables
RESULT = variable to store the result
hangul = variable to store the executed Hwp object
Used properties
[Output] FieldArray = RESULT
[Input] Hangul = this.hangul
Related/Similar activities
SetPressField, GetPressFieldValue
SetPressField
SetPressField
Overview
Enter text in the designated press frame field in the received Korean document.
Application procedures
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
In the FieldName field, enter the name of the press box field.
In the FieldValue field, enter the field value in the press frame field.
Sets whether to position the caret in the press frame field after entering the field value in CaretPos.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp, OpenHwp. |
N | FieldName | Text | Y | - | N | Enter the name of the press frame field. |
N | FieldValue | Text | Y | - | N | Enter the value to be entered in the press frame field. |
N | CaretPos | Toggle | N | - | Y | Sets whether to place the caret in the press frame field after entering the field value. (Default: OFF). |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Check the list of press frame fields in the imported Korean document and enter text in the press frame field.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_GetPressFieldList
Used variables
hangul = variable to store the executed Hwp object
Used properties
[Input] Hangul = this.hangul
FieldName = 'Product Name'
FieldValue = ‘TESTMZ100’
CaretPos = ON
Related/Similar activities
GetPressFieldList, GetPressFieldValue
GetPressFieldValue
GetPressFieldValue
Overview
Returns the text entered in the specified press frame field in the received Hangul document.
Application procedures
In [Output] Field Value, enter a variable to store the result.
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
In the FieldName, enter the name of the press box field.
The press frame field must be specified in the imported Korean document.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Output] FieldValue | Variable | Y | - | Y | Returns the value of the specified press frame field in the input Hangul document. |
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp, OpenHwp. |
N | FieldName | Text | Y | - | N | Enter the name of the press frame field. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Check the list of press frame fields in the imported Korean document and enter text in the press frame field.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_GetPressFieldList
Used variables
RESULT = variable to store the result
hangul = variable to store the executed Hwp object
Used properties
[Output] FieldValue = RESULT
[Input] Hangul = this.hangul
FieldName = 'Product Name'
Related/Similar activities
GetPressFieldList, SetPressField
InsertText
InsertText
Overview
This activity card enters text in the received Korean document.
Application procedures
In the [Input] Hangul field, enter the Hangul object received from NewHwp or OpenHwp.
In the Input text field, enter the text.
Sets whether to use the Enter key function after entering text in Done (Enter).
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp, OpenHwp. |
N | Input Text | Text | Y | - | N | Enter the text. |
N | Done(Enter) | Toggle button | N | - | Y | Sets whether to use the Enter key function after entering text. (Default: OFF). |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
After creating a new Hangul document and entering text and pictures, save the Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_ InsertText
Used variables
hangul = variable to allocate the executed Hwp object
Used properties
[Input] Hangul = this.hangul
Input Text = 'Introduction to Brity RPA'
Done(Enter) = OFF
Related/Similar activities
InsertPicture, InsertTable,ReplaceText
InsertPicture
InsertPicture
Overview
This activity card enters a picture in the received Korean document.
Application procedures
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
In the File Path field, enter the picture file path and file name.
Select the paragraph alignment criteria of the picture entered in Paragraph Align.
Sets whether to use the Enter key function after entering text in Done (Enter).
In the Image Width(pixcel) field, enter the horizontal size of the picture in pixels.
In the Image Height(pixcel) field, enter the vertical size of the picture in pixels.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp, OpenHwp. |
N | File Path | Text | Y | - | N | Enter the picture file path and file name. |
N | Paragraph Align | Combo box | Y | - | Y | Select the paragraph alignment criteria of the entered picture. - Justify: Justify - Left: Align left - Right: right align - Center: Align the center - Distributed: sort distribution - DistributeSpace: Divide Sort |
N | Done(Enter) | Toggle button | N | - | Y | Sets whether to use the Enter key function after entering text. (Default: OFF). |
N | Image Width (pixcel) | Number | Y | - | N | Enter the horizontal size of the picture in pixels. |
N | Image Height (pixcel) | Number | Y | - | N | Enter the vertical size of the picture in pixels. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
After creating a new Hangul document, input a picture, and then save the Hangul document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_ InsertText
Used variables
hangul = variable to allocate the executed Hwp object
Used properties
[Input] Hangul = this.hangul
File Path = this.resourceDir + ‘sample.png’
Paragraph Align = 0:Justify
Done(Enter) = ON
Image Width(pixel) = 96
Image Height(pixel) = 96
Related/Similar activities
InsertText, InsertTable, ReplaceText
InsertTable
InsertTable
Overview
This activity card inserts a table into a Korean document.
Application procedures
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
In the Row field, enter the number of rows in the table to be created.
Enter the number of columns in the table in the Column field.
Set whether to treat the table as a character in Like Character.
Set whether to place the caret in the table's cell after entering the table in Caret Pos in Table.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
N | Row | Number | Y | - | N | Enter the number of rows in the table to generate. |
N | Column | Number | Y | - | N | Enter the number of cells in the table to be created. |
N | Like Character | Toggle | N | - | Y | Set whether to treat tables like text. |
N | Caret Pos in Table | Toggle | N | - | Y | Set whether to place the caret in a table cell after entering the table. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
After creating a new Korean document, enter a table.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_InsertTable
Used variables
newHwp = Variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Row = 5
Column = 5
Like Character = ON
Caret Pos in Table = ON
Related/Similar activities
InsertText, InsertPicture, ReplaceText
GetCellText
GetCellText
Overview
This activity card returns the text of the selected cell in the Korean document.
Application procedures
Enter a variable to store the result in the [Output] CellText field.
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
In the Table Index field, enter the order of the tables you want to select within the Korean document.
In the Move Order field, select the direction the cells will be moved preferentially.
In the Number of row field, enter the number of times to move in the row direction (down) for cell selection.
In the Number of column field, enter the number of times to move toward the column (right) for cell selection.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Output] CellText | Variable | Y | - | Y | Returns the text of the selected cell in the Korean input document. |
N | [Input] Hangul | Variable | Y | - | Y | Enters the Hangul object received as a result of OpenHwp. |
N | Table Index | Number | Y | - | Y | Enter the table order in the Korean document. (Default: 1) |
N | Move Order | Combo box | Y | - | Y | Select the preferred direction to move for cell selection. - Row: When moving to the specified cell, it moves in the row direction (down) first. - Column: When moving to a specified cell, it moves in the direction of the column (right) first. |
N | Number of row | Number | Y | - | Y | Enter the number of times to move in the line direction (down) for cell selection. (Default: 1) |
N | Number of column | Number | Y | - | Y | Enter the number of times to move toward the cell (right) for cell selection. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
After creating a new Korean document, enter a table.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_TableBasic
Used variables
RESULT = variable to store the result
hangul = variable to store the executed Hwp object
Used properties
[Output] CellText = RESULT
Hangul = this.hangul
Table Index = 1
Move Order = Row
Number of row = 2
Number of column = 3
Related/Similar activities
SelectTableCell
SelectTableCell
Overview
This activity card selects a specific cell in a table in a Korean document.
Application procedures
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
In the Table Index field, enter the order of the tables you want to select within the Korean document.
In the Move Order field, select the direction the cells will be moved preferentially.
In the Number of row field, enter the number of times to move in the row direction (down) for cell selection.
In the Number of column field, enter the number of times to move toward the column (right) for cell selection.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
N | Table Index | Number | Y | - | Y | Enter the table order in the Korean document. (Default: 1) |
N | Move Order | Combo box | Y | - | Y | Select the preferred direction to move for cell selection. - Row: When moving to the specified cell, it moves in the row direction (down) first. - Column: When moving to a specified cell, it moves in the direction of the column (right) first. |
N | Number of row | Number | Y | - | Y | Select the number of times to move in the line direction (down) for cell selection. (Default: 1) |
N | Number of column | Number | Y | - | Y | Select the number of times to move toward the cell (right) for cell selection. (Default: 1) |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Select a specific cell in a table in the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_TableBasic
Used variables
hangul = variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Table Index = 1
Move Order = Row
Number of row = 2
Number of column = 1
Related/Similar activities
GetCellText, SelectAllTableCell
SelectAllTableCell
SelectAllTableCell
Overview
Selects all cells in a table in a Korean document.
Application procedures
In the [Input] Hangul field, enter the Hangul object received from NewHwp or OpenHwp.
In the Table Index field, specify the order of the tables you want to select within the Korean document.
Set whether to read the table selected in Read To Clipboard to the clipboard.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
N | Table Index | Number | Y | - | Y | Enter the table order in the Korean document. (Default: 1) |
N | Read To Clipboard | Toggle button | N | - | Y | Set whether to read the selected table to the clipboard. (Default: ON) |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Select all cells in the table from the imported Korean document and paste it into a blank Excel document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_TableUse
Used variables
Hangul = Variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Table Index = 1
Read To Clipboard = ON
Related/Similar activities
PasteClipboardCell
PasteClipboardCell
Overview
This activity card pastes the clipboard contents into the table of the Korean document.
Application procedures
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
In the Table Index field, enter the order of the tables you want to select within the Korean document.
In the Move Order field, select the direction the cells will be moved preferentially.
In the Number of row field, enter the number of times to move in the row direction (down) for cell selection.
In the Number of column field, enter the number of times to move toward the column (right) for cell selection.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
N | Table Index | Number | Y | - | Y | Enter the table order in the Korean document. (Default: 1) |
N | Move Order | Combo box | Y | - | Y | Select the preferred direction to move for cell selection. - Row: When moving to the specified cell, it moves in the row direction (down) first. - Column: When moving to a specified cell, it moves in the direction of the column (right) first. |
N | Number of row | Number | Y | - | Y | Select the number of times to move in the line direction (down) for cell selection. (Default: 1) |
N | Number of column | number | Y | - | Y | Select the number of times to move toward the cell (right) for cell selection. (Default: 1) |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Copy the contents of the Excel file to the clipboard and paste it into the table of the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_TableUse
Used variables
hangul = variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Table Index = 1
Move Order = Row
Number of row = 2
Number of column = 3
Related/Similar activities
DeleteCellText
DeleteCellText
Overview
These activity cards delete text in table cells in Korean documents.
Select a specific cell in the table using SelectTableCell and apply DeleteCellText.
Application procedures
In the [Input] Hangul field, specify the Hangul object received from OpenHwp.
In the Direction field, select the cell selection direction.
In the Numbers of Cells fields, enter the number of cells.
Set whether to select cells By Line.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
N | Direction | Combo box | Y | - | Y | Select the direction of cell selection in the table. - Row: When moving to the specified cell, it moves in the row direction (down) first. - Column: When moving to a specified cell, it moves in the direction of the column (right) first. |
N | Number of cells | Number | Y | - | Y | Enter the number of cells. (Default: 1) |
N | By Line | Toggle button | N | - | Y | Sets whether to select cells by line. (Default: ON) |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
If you select ON for By Line in the merged cell and perform DeleteCellText, it may not be performed according to the number entered in Number of Cells.
Example of utilization
After selecting a table cell in the imported Korean document, delete the text in the cell.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_TableBasic
Used variables
hangul = variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Direction = Row
Number of Cells = 1
By Line = ON
Related/Similar activities
SelectTableCell, DeleteTableRow
SetBgcolorCell
SetBgcolorCell
Overview
This activity card sets the cell background color of tables in Korean documents.
Select a specific cell in the table using SelectTableCell and apply SetBgcolorCell.
Application procedures
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
In the Direction field, select the cell selection direction.
In the Numbers of Cells fields, enter the number of cells.
Set whether to select cells By Line.
In the Background Color field, enter the cell background color.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
N | Direction | Combo box | Y | - | Y | Enter the direction of cell selection in the table. - Row: When moving to the specified cell, it moves in the row direction (down) first. - Column: When moving to a specified cell, it moves in the direction of the column (right) first. |
N | Number of Cells | Number | Y | - | Y | Enter the number of cells. (Default: 1) |
N | By Line | Toggle button | N | - | Y | Select whether to select cells by line. (Default: ON) |
N | Background Color | String | Y | - | Y | Enter the cell background color. (Default: '255,255,255') |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
If you select ON for By Line in the merged cell and perform SetBgcolorCell, it may not be performed according to the number entered in Number of Cells.
Example of utilization
After selecting a table cell in the imported Korean document, specify the background color of the cell.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_TableBasic
Used variables
hangul = variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Direction = Row
Number of Cells = 1
By Line = ON
Background Color = '255,255,0'
Related/Similar activities
SelectTableCell, DeleteCellText
SetBorderCell
SetBorderCell
This activity cards sets the cell borders of tables in Korean documents.
Select a specific cell in the table using SelectTableCell and apply SetBorderCell.
Application procedures
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
In the Condition field, select the cell selection method.
In the Direction field, select the cell selection direction.
In the Numbers of Cells fields, enter the number of cells.
Select the border LineType for [BORDER] LineType
Select the border line thickness in LineWidth.
Select the border line color.
Select the range of border line coverage in the Target.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
N | Condition | Combo box | Y | - | Y | Select the cells in the table. - Cell: Select by cell. - Line: Select by line or cell. - Table: Select the entire table. |
N | Direction | Combo box | Y | - | Y | Select the direction of cell selection in the table. - Row: Selects the specified cell in the row direction (down).- Column: Selects the specified cell in the direction of the cell (right). |
N | Number of Cells | Number | Y | - | Y | Enter the number of cells. (Default: 1) |
N | [BORDER] LineType | Combo box | Y | - | Y | S the border linetype. - Solid: solid line - Dot: dotted line - None: No line |
N | [BORDER] LineWidth | Combo box | Y | - | Y | Select the border line thickness. - 0.12mm - 0.4mm - 0.7mm |
N | [BORDER] LineColor | String | Y | - | Y | Select the border line color. |
N | [BORDER] Target | Combo box | Y | - | Y | Select the border line coverage area. - All: All - Inside: Inside - Outside: Outside |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
After selecting a table cell in the imported Korean document, designate the cell border.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_TableBasic
Used variables
hangul = variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Condition = Cell
Direction = Row
Number of Cells = 1
[Border] LineType = Solid
[Border] LineWidth = 0.4mm
[Border] LineColor = '255,0,0'
[Border] Target = All
Related/Similar activities
SelectTableCell, SetBgcolorCell
AddTableRow
AddTableRow
Overview
This activity card adds a line to a table in a Korean document.
Select a specific cell in the table using SelectTableCell and then apply AddTableRow.
Application procedures
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
In the Direction field, select the direction to add the line.
In the Row Count field, enter the number of rows to add.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
N | Direction | Combo box | Y | - | Y | Select the direction in which to add the line. - Upper: Adds a line to the top of the cell where the current caret is located. - Lower: Adds a line at the bottom of the cell where the current caret is located. |
N | Row Count | Number | Y | - | Y | Enter the number of rows to add. (Default: 1) |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | common property of the HancomEx library. |
Example of utilization
After selecting a table cell in the imported Korean document, add a line.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_TableBasic
Used variables
hangul = variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Direction = Lower
Row Count = 1
Related/Similar activities
SelectTableCell, AddTableColumn
AddTableColumn
AddTableColumn
Overview
This activity card adds cells to tables in Korean documents.
Select a specific cell in the table using SelectTableCell and then apply AddTableColumn.
Application procedures
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
In the Direction field, select the direction to add the cell.
In the Column Count field, enter the number of columns to add.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
N | Direction | Combo box | Y | - | Y | Select the direction in which to add the cell. - Right: Adds a cell to the right of the cell where the current caret is located. - Left: Adds a space to the left of the cell where the current caret is located. |
N | Column Count | Number | Y | - | Y | Enter the number of cells to be added. (Default: 1) |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Select a table cell and add a cell to the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_TableBasic
Used variables
hangul = variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Direction = Right
Column Count = 1
Related/Similar activities
DeleteTableRow
DeleteTableRow
Overview
This activity card deletes a table line from a Korean document.
Select a specific cell in the table using SelectTableCell and apply DeleteTableRow.
Application procedure
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Delete the line after selecting a table cell in the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_TableBasic
Used variables
hangul = variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Related/Similar activities
SelectTableCell, DeleteTableColumn
DeleteTableColumn
DeleteTableColumn
Overview
This activity card deletes a table cell from a Korean document.
Select a specific cell in the table using SelectTableCell and then apply DeleteTableColumn.
Application procedure
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Select a cell in the table in the imported Korean document and delete the cell.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_TableBasic
Used variables
hangul = variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Related/Similar activities
SelectTableCell, DeleteTableRow
ResizeWidthTableCell
ResizeWidthTableCell
Overview
This activity card adjusts the cell width of a table in a Korean document.
ResizeWidthTableCell is applied after selecting a specific cell in the table using SelectTableCell.
Application procedures
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
Select the cell width adjustment criteria in Classify.
In the Columns field, enter the number of columns to select.
Specify the number of width adjustments in the Number of Excusions.
In the Fix Table Width field, set whether to fix the table width when adjusting the width.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
N | Classify | Combo box | Y | - | Y | Select the cell width adjustment criteria.- Distribute: Adjust the cell width evenly. - Increase: Increases the cell width. - Decrease: Adjusts the cell width to be smaller. |
N | Columns | Number | Y | - | Y | Enter the number of cells (columns) to select; if Classify is Distributed. |
N | Number of Executions | Number | Y | - | Y | If Classify Increase or Decrease, enter the number of width adjustments. (Default: 10) |
N | Fix Table Width | Toggle button | N | - | Y | Select whether the table width is fixed when Classify is Increased or Decreased. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
If you select Classify Increase or Decrease, the height of the entire row to which the selected cell belongs is adjusted.
However, if you select Distribute, only the height of the selected cells is adjusted.
Example of utilization
Adjust the cell width after selecting a table cell in the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_ResizeCell
Used variables
hangul = variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Classify = Distribute
Columns = 2
Related/Similar activities
SelectTableCell, ResizeHeightTableCell
ResizeHeightTableCell
ResizeHeightTableCell
Overview
This activity card adjusts the cell height of a table in a Korean document.
ResizeHeightTableCell is applied after selecting a specific cell in the table using SelectTableCell.
Application procedures
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
Select the cell height adjustment criteria in Classify.
In the Rows field, enter the number of columns to select.
Specify the number of height adjustments in the Number of Excusions.
In the Fix Table Width field, set whether to fix the height of the table when adjusting the height.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
N | Classify | Combo box | Y | - | Y | Select the cell height adjustment criteria.- Distribute: Adjust the cell height evenly. - Increase: Increases the cell height. - Decrease: Adjusts the cell height to a smaller size. |
N | Rows | Number | Y | - | Y | Enter the number of lines to select; if Classify is Distributed. |
N | Number of Executions | Number | Y | - | Y | If Classify Increase or Decrease, enter the number of height adjustments. (Default: 10) |
N | Fix Table Width | Toggle button | N | - | Y | Select whether the table height is fixed when Classify is Increased or Decreased. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
If you select Classify Increase or Decrease, the width of the entire cell to which the selected cell belongs is adjusted.
However, if you select Distribute, only the width of the selected cell is adjusted.
Example of utilization
Adjust the cell height after selecting a table cell in the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_ResizeCell
Used variables
hangul = variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Classify = Increase
Number of Executions = 30
Fix Table Height = OFF
Related/Similar activities
SelectTableCell, ResizeWidthTableCell
MergeTableCell
MergeTableCell
Overview
This activity card merges table cells in Korean document.
Select a specific cell in the table using SelectTableCell and then apply MergeTableCell.
Application procedures
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
In the Direction field, select the cell selection direction.
In the Number of Cells field, enter the number of cells.
Set whether to select cells By line.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
N | Direction | Combo box | Y | - | Y | Select the direction of cell selection in the table. - Row: Combines cells in the row direction (down). - Column: Combines cells in the cell direction (right). |
N | Number of Cells | Number | Y | - | Y | Enter the number of cells. (Default: 1) |
N | By Line | Toggle button | N | - | Y | Set whether to select cells by line. (Default: ON) |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
If you select ON for By Line in merged cells and perform MergeTableCell, it may not be performed according to the number entered in Number of Cells.
Example of utilization
After selecting a table cell in the imported Korean document, merge cells with other nearby cells.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_TableResizeCell
Used variables
hangul = variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Direction = Column
Number of Cells = 2
By Line = ON
Related/Similar activities
SplitTableCell, SetBgcolorCell
SplitTableCell
SplitTableCell
Overview
This activity card divides the cells of a table in a Hangul document.
Application procedures
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
In the Row field, enter the number of lines.
In the Column field, enter the number of columns.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Specifies the Hangul object received as a result of NewHwp or OpenHwp. |
N | Row | Number | Y | - | Y | Enter the number of lines. (Default: 1) |
N | Column | Number | Y | - | Y | Enter the number of cells. (Default: 2) |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
After selecting a table cell in the imported Korean document, execute cell division.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_TableResizeCell
Used variables
hangul = variable to store the executed Hwp object
Used properties
Hangul = this.hangul
Row = 1
Column = 2
Related/Similar activities
MoveCaret
MoveCaret
Overview
This activity card moves the caret (cursor) position in the received Korean document.
Application procedures
In the [Input] Hangul field, enter the received from OpenHwp assigned.
In the Action Type field, select the action type.
In the Move Order field, select the movement direction.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of OpenHwp. |
N | Action Type | Combo box | Y | - | Y | Select the action type. - Character: letter - Word: word - Line: line - Paragraph: Paragraph - Page: page - Document: the entire document |
N | Move Order | Combo box | Y | - | Y | Select the direction of movement ※ Character - Up: Moves upward. - Down: Move in the downward direction. - Left: Move to the left. - Right: Moves in the right direction. ※ Word - Begin: Move to the beginning of the word. - End: Moves towards the end of the word. - Left: Move to the left. - Right: Moves in the right direction. ※ Line - Begin: Move to the beginning of the line. - End: Move toward the end of the line. - Up: Moves upward. - Down: Move in the downward direction. ※ Paragraph - Begin: Moves to the beginning of the paragraph. - End: Move to the end of the paragraph. ※ Page - Begin: Moves to the beginning of the page. - End: Moves towards the end of the page. ※ Document - Begin: Moves to the beginning of the entire document. - End: Moves towards the end of the entire document. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Set the caret position, page break, text reading in the selected area, and character/paragraph shape for the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_ MoveCaret
Used variables
hangul = variable to allocate the executed Hwp object
Used properties
[Input] Hangul = this.hangul
Related/Similar activities
PageBreak
PageBreak
This activity card executes a page break at the received Korean document's current caret (cursor) position.
Application procedures
In the [Input] Hangul field, specify the Hangul object received from NewHwp or OpenHwp.
Enter the number of pages to add to Count.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of NewHwp or OpenHwp. |
N | Count | Number | Y | - | Y | Enter the number of pages to add. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Set the caret position, page break, text reading in the selected area, and character/paragraph shape for the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_MoveCaret
Used variables
hangul = variable to allocate the executed Hwp object
Used properties
[Input] Hangul = this.hangul
Count = 1
Related/Similar activities
SelectRange
SelectRange
Overview
This activity card selects a range based on the received Korean document's current caret (cursor) position.
Apply SelectRange after moving the caret position using MoveCaret
Application procedures
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
In the Range Type field, select the range type.
In the After Action field, select a range and assign an Action.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of OpenHwp. |
N | Range Type | Combo box | Y | - | Y | Select the scope type - Character: Specifies the character as a range. - Word: Specifies a range of words. - Line: Specifies the line as a range. - Paragraph: Designate a paragraph as a range. - Page: Specifies the page as a range. - Document: Specifies the entire document as a scope. |
N | After Action | Combo box | Y | - | Y | After selecting the range, specify the Action. - None: Only the range is selected. - Copy: Copies the selected range. - Cut: Cuts the selected range. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Set the caret position, page break, text reading in the selected area, and character/paragraph shape for the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_MoveCaret
Used variables
hangul = variable to allocate the executed Hwp object
Used properties
[Input] Hangul = this.hangul
Range Type = Word
After Action = Copy
Related/Similar activities
PasteClipboard
PasteClipboard
Overview
This activity card pastes the clipboard contents into the received Hangul document.
Apply SelectRange after moving the caret position using MoveCaret
Application procedure
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of OpenHwp. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Set the caret position, page break, text reading in the selected area, and character/paragraph shape for the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_MoveCaret
Used variables
hangul = variable to allocate the executed Hwp object
Used properties
[Input] Hangul = this.hangul
Related/Similar activities
SetCharShape
SetCharShape
Overview
This activity card sets the character shape in the received Korean document.
If you want to assign a character shape only to a specific area, use SelectRange to specify the selection area and then apply SetCharShape.
Application procedures
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
Select a font in the Font Name field.
Enter the font size in the Font Height field.
In the Font Color field, Set the font color.
Enter the length in FontRatio(%).
Enter kerning in FontSpace(%) .
Set whether to make bold text in Bold.
Set whether the text is italic for Italic.
In the Underline field, set whether or not to underline text.
In The Cancel Selection field, set whether to cancel the selection area after applying the font to the selection.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of OpenHwp. |
N | Font Name | Combo box | N | - | Y | Select a font. Font list |
N | Font Height | Number | Y | - | Y | Enter the font size. |
N | Font Color | String | Y | - | Y | Enter the text color. |
N | FontRatio(%) | Number | Y | - | Y | Enter the letter Jangpyeong. |
N | FontSpace(%) | Number | Y | - | Y | Enter letter spacing. |
N | Bold | Toggle button | N | - | Y | Set whether to make the text bold. (Default: OFF) |
N | Italic | Toggle button | N | - | Y | Set whether the text is italic. (Default: OFF) |
N | Underline | Toggle button | N | - | Y | Set whether text is underlined. (Default: OFF) |
N | Cancel Selection | Toggle button | N | - | Y | Set whether to cancel the selection area after applying the font. (Default: OFF) |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Set the caret position, page break, text reading in the selected area, and character/paragraph shape for the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_MoveCaret
Used variables
hangul = variable to allocate the executed Hwp object
Used properties
[Input] Hangul = this.hangul
Font Name = Clear Gothic
Font Height = 11
Font Color = ‘0,0,0’
Font Ratio(%) = 100
Font Space(%) = 0
Bold = OFF
Italic = OFF
Underline = OFF
Cancel Selection = OFF
Related/Similar activities
SetParaShape
SetParaShape
This activity card sets the paragraph shape in the received Korean document.
To assign a paragraph shape only to a specific area, use SelectRange to specify the selection area and then apply SetParaShape.
Application procedures
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
Select the paragraph alignment criteria for Align.
In the Left Margin field, enter the left margin.
In the Right Margin field, enter the Right margin.
Select the first line indentation type for Indentation.
In the Indentation Number field, enter the size of the indentation/indentation.
In the Line Spacing field, enter the line spacing.
In the Paragraph Prev Spacing field, Enter paragraph spacing.
In the Paragraph Next Spacing field, enter the space below the paragraph.
In the Cancel Selection field, set whether to cancel the selection after applying the paragraph shape to Selection.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of OpenHwp. |
N | Align | Combo box | Y | - | Y | Select the paragraph alignment criteria. - Justify: Justify - Left: Align left - Right: right align - Center: Align the center - Distributed: sort distribution - DistributeSpace: Divide Sort |
N | Left Margin | Number | Y | - | Y | Enter the left margin. |
N | Right Margin | Number | Y | - | Y | Enter the right margin. |
N | Indentation | Combo box | Y | - | Y | Select the first line indent type. - Normal: Normal indentation. - Indent: Indents as much as the indentation/indent size.- Outdent: Indent as much as the indentation/indent size. |
N | Indentation Number | Number | Y | - | Y | Enter the indent/indent size. |
N | Line Spacing | Number | Y | - | Y | Enter the line spacing. |
N | Paragraph Prev Spacing | Number | Y | - | Y | Enter the spacing above paragraphs. |
N | Paragraph Next Spacing | Number | Y | - | Y | Enter the spacing below the paragraph. |
N | Cancel Selection | Toggle button | N | - | Y | Set whether to cancel the selection area after applying the paragraph shape. (Default: OFF) |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Set the caret position, page break, text reading in the selected area, and character/paragraph shape for the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_MoveCaret
Used variables
hangul = variable to allocate the executed Hwp object
Used properties
[Input] Hangul = this.hangul
Align = 0:Justify
Left Margin = 0
Right Margin = 0
Indentation = Normal
Indentation Number = 0
Line Spacing = 160
Paragraph Prev Spacing = 0
Paragraph Next Spacing = 0
Cancel Selection = OFF
Related/Similar activities
CopyShape
CopyShape
Overview
This activity card sets the shape copy in the received Korean document.
Move the caret position using MoveCaret and apply CopyShape.
Application procedures
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
In the Range Type field, select the shape copy type.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of OpenHwp. |
N | Range Type | Combo box | Y | - | Y | Select the copy type. - Character: Copy the character shape. - Paragraph: Copy the paragraph shape. - Both: Copies both text and paragraph styles. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Set the caret position, page break, text reading in the selected area, and character/paragraph shape for the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_MoveCaret
Used variables
hangul = variable to allocate the executed Hwp object
Used properties
[Input] Hangul = this.hangul
Range Type = Both
Related/Similar activities
PasteCopyShape
PasteCopyShape
Overview
This activity card, copy and paste the shape from the received Korean document.
After specifying the selection area using SelectRange, apply PasteCopyShape.
Application procedures
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of OpenHwp. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Set the caret position, page break, text reading in the selected area, and character/paragraph shape for the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_MoveCaret
Used variables
hangul = variable to allocate the executed Hwp object
Used properties
[Input] Hangul = this.hangul
Related/Similar activities
PageNumbering
PageNumbering
Overview
This activity card inserts the page number into the received Korean document.
Application procedures
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
Select the page number position for the Position field.
In the Dash Mark field, set whether to insert dash marks.
In the New Number field, set whether to start with a new number.
Enter the starting number when starting a new number in the Start Number field.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of OpenHwp. |
N | Position | Combo box | Y | - | Y | Select the page number location. - BottomLeft: Position the page number to the bottom left. - BottomRight: Position the page number from bottom to right. - BottomRight: Position the page number to the bottom center. |
N | Dash Mark | Toggle button | N | - | Y | Set whether or not to insert a line mark. (Default: ON) |
N | New Number | Toggle button | N | - | Y | Set whether to start with a new number. (Default: OFF) |
N | Start Number | Number | Y | - | Y | Enter the starting number,when starting with a new number. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Set the caret position, page break, text reading in the selected area, and character/paragraph shape for the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_MoveCaret
Used variables
hangul = variable to allocate the executed Hwp object
Used properties
[Input] Hangul = this.hangul
Position = BottomCenter
Dash Mark = ON
New Number = OFF
Start Number = 1
Related/Similar activities
GetCountText
GetCountText
Overview
This activity card returns the number of specified text in the received Hangul document.
To get the number of texts in a specific area, apply GetCountText after specifying the selection area using SelectRange.
Application procedures
In the [Output] Text count field, specify the variable to store the execution result.
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
In the Find Text field, enter the text you want to find.
In the All Document field, set whether to set the search area to the entire document.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Output] Text | Variable | Y | - | Y | Enter the number of specified text in the input Korean document. |
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of OpenHwp. |
N | Find Text | Text | Y | - | Y | Enter the text you want to find. |
N | All Document | Toggle button | N | - | Y | Set whether the search area should be the entire document. (Default: OFF) |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Search and replace letters in the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_ GetCountText
Used variables
RESULT = variable to store the result
hangul = variable to allocate the executed Hwp object
Used properties
[Output] Text Count = RESULT
[Input] Hangul = this.hangul
Find Text = 'Item'
All Document = ON
Related/Similar activities
ReplaceText
ReplaceText
Overview
This activity card finds and replaces the specified text in the received Korean document.
Application procedures
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
In the Find Text field, enter the text you want to find.
In the Replace Text field, enter the text you want to change.
In the Replace Index field, enter the number of texts in the search result to replace.
In the Find Direction field, select the direction to find.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of OpenHwp. |
N | Find Text | Text | Y | - | Y | Enter the text you want to find. |
N | Replace Text | Text | Y | - | Y | Enter the text you want to change. |
N | Replace Index | Text | Y | - | Y | Enter the number of texts to be replaced in the search results. To “replace all”, enter 0. |
N | Find Direction | Combo box | N | - | Y | Select the direction to find. - Forward: Finds text in the forward direction. - Backward: Find text backwards. - AllDoc: Find text with the entire document target. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Search and replace letters in the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_ GetCountText
Used variables
hangul = variable to allocate the executed Hwp object
Used properties
[Input] Hangul = this.hangul
Find Text = 'Item'
Replace Text = 'Product'
Replace Index = 1
Find Direction = AllDoc
Related/Similar activities
MoveFindText
MoveFindText
Overview
This activity card finds the specified text in the received Korean document and moves the caret.
Application procedures
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
In the Find Text field, enter the text you want to find.
In the Find Index field, enter the number of searches to find.
In the Find Direction field, select the direction to find.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of OpenHwp. |
N | Find Text | Text | Y | - | Y | Enter the text you want to find. |
N | Find Index | Text | Y | - | Y | Enter the number of searches. |
N | Find Direction | Combo box | Y | - | Y | Select the direction to find. - Forward: Finds text in the forward direction. - Backward: Find text backwards. - AllDoc: Find text with the entire document target. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Search and replace letters in the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_ GetCountText
Used variables
hangul = variable to allocate the executed Hwp object
Used properties
[Input] Hangul = this.hangul
Find Text = 'Item'
Find Index = 1
Find Direction = Forward
Related/Similar activities
ExecuteHwpMacro
ExecuteHwpMacro
Overview
This activity card executes the specified macro in the received Korean document.
Macros can only be used in Korean documents displayed in the “Tools > Macros > Script Macro Definition” pop-up.
Application procedures
In the [Input] Hangul field, enter the Hangul object received as a result of OpenHwp.
In the MacroName filed, enter the name of the macro to be executed.
Card properties
Common | Properties | Type | Required | Unit | Autom-setting | Description |
---|---|---|---|---|---|---|
N | [Input] Hangul | Variable | Y | - | Y | Enter the Hangul object received as a result of OpenHwp. |
N | MacroName | String | Y | - | Y | Enter the name of the macro to be executed. |
Y | - | - | - | - | Common property of the HancomEx library. | |
Y | - | - | - | - | Common property of the HancomEx library. |
Example of utilization
Executes the specified macro in the imported Korean document.
Sample file
Menu > Help > Samples > Sample > HancomEx > P_HancomEx_ ExecuteHwpMacro
Used variables
hangul = variable to allocate the executed Hwp object
Used properties
[Input] Hangul = this.hangul
MacroName = 'Find page number location'
Related/Similar activities
None