通常のテキストファイルを印刷します。
#Include <File.au3>
_FilePrint($s_File [, $i_Show = @SW_HIDE])
パラメータ
$s_File | 印刷するファイル。 |
$i_Show | [オプション]ウィンドウの状態。(デフォルト = @SW_HIDE) |
返し値
成功: | 1 |
失敗: | 0を返し、グローバル定数リストに基づいて@errorを設定します。 |
注意
shell32.dllのShellExecute関数を使用しています。
関連
例
#include <File.au3>
$file = FileOpenDialog("Print File", "", "Text Documents (*.txt)", 1)
If @error Then Exit
$print = _FilePrint($file)
If $print Then
MsgBox(0, "Print", "The file was printed.")
Else
MsgBox(0, "Print", "Error: " & @error & @CRLF & "The file was not printed.")
EndIf