Welcome
Printer
1.0.0.0
Wide range of printer related functions utilizing various built in Windows DLLs to achieve maximum productivity in AMS.
Jason Thompson dba FoxxPC
http://www.foxxpc.com (under construction)
j.thompson@foxxpc.com
Windows 2K/XP/Vista/7 and AutoPlay Media Studio 8
© 2010 Jason Thompson dba FoxxPC
If installing on Windows Vista/7 make sure your projects have invoke administrative selected in your project options.
Printer.Default
Printer.Comment
Printer.Share
Printer.UnShare
Printer.Preferences
Printer.Properties
Printer.ServerProperties
Printer.Test
Printer.InstallWiz
Printer.RemoveLocal
Printer.RemoveNetwork
Printer.Rename
Printer.Set2Direct
Printer.Set2Spool
Printer.Print
Printer.Pause
Printer.SpoolerService
(string) Printer.Default ( | (string) Printer = "Printer" ) |
Sets the given printer as default
(string) Name of the Printer
Note: You can also use a network printer location. Ex. "\\\\MyNetworkPC\\MySharedPrinter"
(string) Returns "1" if operation fails. Returns "0" if operation is successful
result = Printer.Default("MyPrinter")
(string) Printer.Comment ( | (string) Printer = "Printer", (string) Comment = "My Printer" ) |
Sets the comment for the given printer
(string) Name of the printer
Note: You can also use a network printer location. Ex. "\\\\MyNetworkPC\\MySharedPrinter"
(string) Comment to add to the printer
(string) Returns "1" if operation fails. Returns "0" if operation is successful.
result = Printer.Comment("MyPrinter","My Printer Comment")
(string) Printer.Share ( | (string) Printer = "Printer", (string) Sharename = "MyPrinter" ) |
Sets the given printer as shared
(string) Name of the printer
Note: You can also use a network printer location. Ex. "\\\\MyNetworkPC\\MySharedPrinter"
(string) Name that you want the printer to be shared as
(string) Returns "1" if operation fails. Returns "0" if operation is successful
result = Printer.Share("MyPrinter","MySharedPrinter")
(string) Printer.UnShare ( | (string) Printer = "Printer", (string) Sharename = "MyPrinter" ) |
Sets the given printer as unshared
(string) Name of the printer
Note: You can also use a network printer location. Ex. "\\\\MyNetworkPC\\MySharedPrinter"
(string) Name in which you want the printer shared as
(string) Returns "1" if operation fails. Returns "0" if its successful
result = Printer.UnShare("MyPrinter","MySharedPrinter")
(string) Printer.Preferences ( | (string) Printer = "MyPrinter" ) |
Opens the printer preferences dialog for the given printer
(string) Name of the Printer
Note: You can also use a network printer location. Ex. "\\\\MyNetworkPC\\MySharedPrinter"
(string) Returns "1" if the operation fails. Returns "0" if its successful
result = Printer.Preferences("MyPrinter")
(string) Printer.Properties ( | (string) Printer = "MyPrinter" ) |
Opens the printer properties dialog for the given printer
(string) Name of the printer
Note: You can also use a network printer location. Ex. "\\\\MyNetworkPC\\MySharedPrinter"
(string) Returns "1" if operation fails. Returns "0" if operation is successful
result = Printer.Properties("MyPrinter")
(string) Printer.ServerProperties () |
Opens the print server properties dialog
(string) Returns "1" if operation fails. Returns "0" if operations is successful.
result = Printer.ServerProperties()
(string) Printer.Test ( | (string) Printer = "MyPrinter" ) |
Prints a printer test page to the given printer
(string) Name of the printer
Note: You can also use a network printer location. Ex. "\\\\MyNetworkPC\\MySharedPrinter"
(string) Returns "1" if operation fails. Returns "0" if operations is successful.
result = Printer.Test("MyPrinter")
(string) Printer.InstallWiz () |
Opens the printer installation wizard dialog
(string) Returns "1" if operation fails. Returns "0" if successful.
result = Printer.InstallWiz()
(string) Printer.RemoveLocal ( | (string) Printer = "MyPrinter" ) |
Removes the specified local printer from the system
(string) The name of the printer
Note: You can also use a network printer location. Ex. "\\\\MyNetworkPC\\MySharedPrinter"
(string) Returns "1" if operation fails. Returns "0" if successful.
result = Printer.RemoveLocal("MyPrinter")
(string) Printer.RemoveNetwork ( | (string) Printer = "\\\\ComputerName\\MyPrinterShare" ) |
Removes the specified network printer from the system
(string) Name of the printer
Note: This should be a network printer location. Ex. "\\\\MyNetworkPC\\MySharedPrinter"
(string) Returns "1" if operation fails. Returns "0" if successful.
result = Printer.RemoveNetwork("\\\\ComputerName\\MySharedPrinter")
(string) Printer.Rename ( | (string) Printer = "MyPrinter", (string) PrinterName = "MyNewPrinter" ) |
Renames the specified printer to the given name
(string) Name of the printer
Note: You can also use a network printer location. Ex. "\\\\MyNetworkPC\\MySharedPrinter"
(string) The name to be used as the new printer name
Note: You can also use a network printer location. Ex. "\\MyNetworkPC\MyNewSharedPrinter"
(string) Returns "1" if operation fails. Returns "0" if successful.
result = Printer.Rename("MyPrinter","MyNewPrinter")
(string) Printer.Set2Direct ( | (string) Printer = "MyPrinter" ) |
Set the printer driver to send documents directly to printer (no spooling)
(string) Name of the printer
Note: You can also use a network printer location. Ex. "\\\\MyNetworkPC\\MySharedPrinter"
(string) Returns "1" if operation fails. Returns "0" if successful.
result = Printer.Set2Direct("MyPrinter")
(string) Printer.Set2Spool ( | (string) Printer = "MyPrinter" ) |
Sets the printer driver to spool all documents instead of sending directly to printer (spooling)
(string) Name of the printer
Note: You can also use a network printer location. Ex. "\\\\MyNetworkPC\\MySharedPrinter"
(string) Returns "1" if operation fails. Returns "0" if successful.
result = Printer.Set2Spool("MyPrinter")
(string) Printer.Print ( | (string) Printer = "MyPrinter", (string) FilePath = "C:\\MyFile.txt" ) |
Prints a document to the specified printer
(string) Name of the printer
Note: You can also use a network printer location. Ex. "\\\\MyNetworkPC\\MySharedPrinter"
(string) The path to the file to be printed
(string) Returns "1" if operation fails. Returns "0" if successful.
result = Printer.Print("MyPrinter","C:\\MyFile.txt")
(string) Printer.Pause ( | (string) Printer = "MyPrinter" ) |
Pauses the specified printer
(string) Name of the printer
Note: You can also use a network printer location. Ex. "\\\\MyNetworkPC\\MySharedPrinter"
(string) Returns "1" if operation fails. Returns "0" if successful.
result = Printer.Pause("MyPrinter")
(string) Printer.SpoolerService ( | (string) Command = "Start" ) |
Starts or Stops the printer spooler service
(string) The command to be passed to the spooler service
Note: This can be either Start or Stop
(string) Returns "1" if operation fails. Returns "0" if successful.
result = Printer.SpoolerService("Start")
result = Printer.SpoolerService("Stop")
© 2010 Jason Thompson dba FoxxPC
This File Was Generated With AMS ActionFile Editor