> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/kalipso5/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/kalipso5/developing/form/actions/actions-description/group-controls/draw-bar-code.md).

# Draw Bar Code

Draw a bar code on a file or on a draw control. This action also allows user to know the width of a specified bar code.

Action available for the following operating systems:

![](/files/-MAlQBZuuTnc6hyzKSVQ)

### Parameters

* **Data** *\<string> -* Data to be associated to the bar code.
* **Bar Code Type** *\<unquoted string> -* The type of the bar code. There are several bar code types possible: *COD128*, *CODE39*, *CODE93*, *I2OF5*, *RATIONALCODABAR*, *PDF417*, *Data Matrix*, *QR Code*, *EAN13, Data Matrix Rectangular, EAN128* or dynamic.
* **Narrow Bar width** *\<numeric> -* The width of the narrow bar of the bar code specified.
* **Ratio** *\<numeric> -* The ratio of the bar code specified.
* **Mode** *\<unquoted string> -* The mode to draw the bar code. There are three possible options for this parameter: *Get Width*, *Draw to 'Draw' Control* or *Draw to File*.
  * **Get Width** - *Target Width*: control or variable to save the width of specified control.
  * **Draw to 'Draw' Control**
    * *Target Width:* control or variable to save the width of specified control.
    * *Draw Control*: the control where the draw is done.
    * *X:* the X coordinate where the draw of bar code begins.
    * *Y:* the Y coordinate where the draw of bar code begins.
    * *Height*: the Height of the bar code to be drawed.
  * **Draw to File**
    * *Target Width:* control or variable to save the width of specified control.
    * *X:* the X coordinate where the draw of bar code begins.
    * *Y:* the Y coordinate where the draw of bar code begins.
    * *Height*: the Height of the bar code to be drawed.
    * *File*: the complete path and name to the file.
    * *Format*: the type of format of the saved file.
    * *Width*: the width of the file.
    * *Height*: the height of the file.

{% hint style="info" %}
The parameter *ratio* are unavailable to modify in certain bar code types.
{% endhint %}

{% hint style="info" %}
Set ***Width*** and ***Height*** in Draw to File to *0*, for automatic management.
{% endhint %}

{% hint style="info" %}
There are several formats available (to parameter Format): Auto, JPG (.jpeg), BMP (.bmp), GIF (.gif) or PCX (.pcx).
{% endhint %}


---

# 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, and the optional `goal` query parameter:

```
GET https://doc.sysdevmobile.com/kalipso5/developing/form/actions/actions-description/group-controls/draw-bar-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
