Programmatically Print an Image Using LabVIEW

製品と環境

このセクションは、サンプルの作成に使用された製品およびOSを反映します。

以下に示された製品を含め、NIのソフトウェアをダウンロードするには、ni.com/downloadsをご覧ください。

    ソフトウェア

  • LabVIEW

コードとドキュメント

添付

すべてをダウンロード

Overview

This VI programmatically calls Microsoft paint to print a PNG file to your default printer.

 

Description

This VI use System Exec VI to call Microsoft paint and print a PNG file to your default printer.

 

Requirements

  • LabVIEW 2012 (or compatible)

Steps to Implement or Execute Code

  1. Download the attached VI and PNG File.
  2. Enter the correct paths of the .png file you just downloaded.
  3. Run "Print Image from Microsoft Paint 2012 NI Verified.vi"
  4. Enter the path to the print image you wish to save.

Additional Information or References

VI Block Diagram

print.png

 

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

NIコミュニティのサンプルコード交換のサンプルコードは、MIT Licenseによりライセンス供与されています。

コメント
Poolean
Member
Member

I just did a quick searh for it, and I surprisingly couldn't find anything on it. I find it quite strange that you can call Paint to print, but not save! Please let me know if you were able to find anything.

寄稿者