印刷スプールに使用するアプリケーションを指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: 文字列
印刷スプールに使うアプリケーションです。
このプロパティは、AutoSpool と一緒に使用する印刷スプール実行可能ファイルの、ドライブ、パス、およびアプリケーション名を含みます。
VBA:
Sub Example_PrintSpoolExecutable()
' This example returns the current setting of
' PrintSpoolExecutable. It then changes the value, and finally
' it resets the value back to the original setting.
Dim preferences As AcadPreferences
Dim currPrintSpoolExecutable As String
Dim newPrintSpoolExecutable As String
Set preferences = ThisDrawing.Application.Preferences
' Retrieve the current PrintSpoolExecutable value
currPrintSpoolExecutable = preferences.Files.PrintSpoolExecutable
MsgBox "The current value for PrintSpoolExecutable is " & currPrintSpoolExecutable, vbInformation, "PrintSpoolExecutable Example"
' Change the value for PrintSpoolExecutable
newPrintSpoolExecutable = "TestPrintSpoolExecutable"
preferences.Files.PrintSpoolExecutable = newPrintSpoolExecutable
MsgBox "The new value for PrintSpoolExecutable is " & newPrintSpoolExecutable, vbInformation, "PrintSpoolExecutable Example"
' Reset PrintSpoolExecutable to its original value
preferences.Files.PrintSpoolExecutable = currPrintSpoolExecutable
MsgBox "The PrintSpoolExecutable value is reset to " & currPrintSpoolExecutable, vbInformation, "PrintSpoolExecutable Example"
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_PrintSpoolExecutable()
;; This example returns the current setting of
;; PrintSpoolExecutable. It then changes the value, and finally
;; it resets the value back to the original setting.
(setq acadObj (vlax-get-acad-object))
(setq preferences (vla-get-Preferences acadObj))
;; Retrieve the current PrintSpoolExecutable value
(setq currPrintSpoolExecutable (vla-get-PrintSpoolExecutable (vla-get-Files preferences)))
(alert (strcat "The current value for PrintSpoolExecutable is " currPrintSpoolExecutable))
;; Change the value for PrintSpoolExecutable
(setq newPrintSpoolExecutable "TestPrintSpoolExecutable")
(vla-put-PrintSpoolExecutable (vla-get-Files preferences) newPrintSpoolExecutable)
(alert (strcat "The new value for PrintSpoolExecutable is " newPrintSpoolExecutable))
;; Reset PrintSpoolExecutable to its original value
(vla-put-PrintSpoolExecutable (vla-get-Files preferences) currPrintSpoolExecutable)
(alert (strcat "The PrintSpoolExecutable value is reset to " currPrintSpoolExecutable))
)