# レシート用紙へのモバイルプリンター 印刷機能 (iOS版アプリのみ)

## **概要**

i-Reporterアプリで記入した帳票データの一部を、そのままアプリ上からレシート用紙に印刷することができる機能です。&#x20;

レシートのレイアウトはxmlファイルで指定を行い、レイアウトxmlファイルをConMas Manager からアップロードして頂くことで使用できるようになります。&#x20;

アプリ上のサーバー送信メニューから実行、または、アクションクラスターの設定でレシート印刷を行うことが可能です。

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

## **使用可能なモバイルプリンター**

本機能は、スター精密製 モバイルプリンター（SM-S210i、SM-T300i）に対応しています。\
i-Reporterをインストールした端末に対して対象プリンターをBluetooth接続していただく必要があります。

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

{% hint style="info" %}
▼SM-S210i 商品ページ (外部リンク)\
[http://www.star-m.jp/products/s\_print/sp09\_05.html](<http://www.star-m.jp/products/s_print/sp09_05.html&#xD;&#xA;>)

▼SM-T300i 商品ページ (外部リンク)\
[http://www.star-m.jp/products/s\_print/sp09\_07.html](<http://www.star-m.jp/products/s_print/sp09_07.html&#xD;&#xA;>)[](<http://www.star-m.jp/products/s_print/sp09_07.html&#xD;&#xA;>)
{% endhint %}

{% hint style="warning" %}

* EMULATEION ＝ SC/POSモード でご利用ください。
* 印刷可能な文字種は、機器の仕様に準じます。
  {% endhint %}

## **レイアウトxmlファイルの定義**

レイアウトxmlファイルは下記のように定義してください。

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

{% hint style="warning" %}

* アクションクラスターは印刷対象として指定できません。
* &#x20;チェッククラスターは”true”または”false”で出力されます。
  {% endhint %}

### **レシート印刷イメージ**

レイアウトxmlファイル

***

\<?xml version="1.0" encoding="utf-8" ?>\
\<conmas>\
&#x20; \<top>\
&#x20;   \<printers>\
&#x20;     \<printer model="s210i">\
&#x20;       \<layout>\
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\
製品番号：{1,0}\
作業日：{1,3}\
作業者：\
{1,2}\
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\
&#x20;       \</layout>\
&#x20;     \</printer>\
&#x20;   \</printers>\
&#x20; \</top>\
\</conmas>

***

<div align="left"><figure><img src="/files/eblT0zFdfM7i19382783" alt="" width="563"><figcaption></figcaption></figure></div>

## **レイアウトxmlファイルのアップロードとダウンロード**

レシート印刷用のレイアウトxmlファイルはConMas Managerからアップロードを行います。\
Manager上で帳票定義一覧から該当の帳票定義を選択して開き、基本情報内にあります「モバイルプリンター用レイアウト」にて「ファイルを選択」からレイアウトxmlファイルを選択し「アップロードする」を実行します。&#x20;

また、既にアップロード済みのレイアウトxmlファイルは「ダウンロード」を実行することでローカルにダウンロードすることができます。

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

### **アップロード後のレイアウトxmlファイルの名称**

レイアウトxmlファイルはManagerからアップロードすると、自動でファイル名が元定義IDに変わります。帳票定義を更新してリビジョンが上がっても、以後このファイル名称は変わりません。

<div align="left"><figure><img src="/files/SRpqjUHr0SspAk1UATpP" alt="" width="563"><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="/files/Q0aBleyG5jOk0x9LxgmE" alt="" width="563"><figcaption></figcaption></figure></div>


---

# 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://manuals.i-reporter.jp/connection-with-externaldevices/receipt-print.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.
