Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
mass10 committed Jun 1, 2024
1 parent 4466f73 commit a4b302c
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 0 deletions.
File renamed without changes.
7 changes: 7 additions & 0 deletions Application.cs → PtouchPrintSenderApp/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ private void Print(string filepath, bool dryrun)
// ドキュメントオブジェクトを初期化
var document = new BrotherPrinterDocument();

int recordCount = 0;

try
{
// テンプレートファイルにアタッチ
Expand Down Expand Up @@ -95,10 +97,15 @@ private void Print(string filepath, bool dryrun)
// 印刷
MyLogger.Info("(印字中)");
document.Print(fields);

recordCount++;
}
}
finally
{
// 結果件数を表示
MyLogger.Info("印刷が完了しました。処理件数: [", recordCount, "件]");

MyLogger.Info("ドキュメントをクローズしています...");
document.Close();
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a4b302c

Please sign in to comment.