Install a new printer on the system:
Http://www.devx.com/vb2themax/Tip/19284
Private type printer_info_2 pservername as string pprintername as string psharename as string pportname as string pdrivername as string pcomment as string plocation as string pdevmode as long enough pfile as string pprintprocessor as string pdatatype as string pparameters as bytes as long attributes as long priority as long defaultpriority as long starttime as long untiltime as long status as long cjobs as long av
Control Panel
Module: control.exe
Command: Rundll32.exe shell32.dll,Control_RunDLL
Results: The Control Panel window is displayed.
Example:
Dim x
x = Shell ("rundll32.exe shell32.dll,Control_RunDLL")
Accessibility Options
Module: access.cpl
Command: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,5
Results: Show secondary options/general.
Command: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,1
Results: Show accessibility Options/keyboards.
Command: rundll32.exe shell32.dl
[default] 8) Banner Paper Size [default] 9) Duplex print [default]
Select 1 and enter the name of the Model Script you just installed:
Enter model script name (q-quit): net_lj5100
Press q to return to the top menu, and then press 0-> y to start configuration.
Finished adding "192_1" to the spooler.
Possible Errors
If the following error occurs, it may be caused by permission issues:
Add
, shhelpshortcuts_rundll addprinter");} public static void Open Control Panel add Delete Program Install and uninstall Panel () {process. start ("rundll32.exe", "shell32.dll, shell32.dll, control_rundll appwiz. CPL, 1 ");} public static void Open Control Panel add delete program install Windows panel () {process. start ("rundll32.exe", "shell32.dll, shell32.dll, control_rundll appwiz. CPL, 2 ");} public static void Open Control Panel add and delete pr
Abortdoc
Cancel printing a document
Abortprinter
Deletes a buffer file associated with a printer.
Addform
Add a new form to the printer form List
Addjob
Obtain a valid path name to create a background print file for the job. It also assigns a job number to the job.
Addmonitor
Add a printer monitor to the System
Addport
Start the "add Port" dialog box to allow users to add a new port to the list of available
4. Printing functions of Apis
Abortdoc cancels printing of a document
Abortprinter deletes the buffer file associated with a printer.
Addform adds a new form to the printer form List
Addjob is used to obtain a valid path name to create a background print file for the job. It also assigns a job number to the job.
Addmonitor adds a printer monitor to the System
Addport starts the "add Port" dialog box, allowing you to add a new port to the list of available system ports
Abortdoc
Cancel printing a document
Abortprinter
Deletes a buffer file associated with a printer.
Addform
Add a new form to the printer form List
Addjob
Obtain a valid path name to create a background print file for the job. It also assigns a job number to the job.
Addmonitor
Add a printer monitor to the System
Addport
Start the "add Port" dialog box to allow users to add a new port to the list of available
writeprivateprofilesec tion sets all item names and values for the subsections specified in an initialization file (. ini) writeprivateprofilestring set a string within the specified subsection of the initialization file writeprofilesection a reference to the Win.ini initialization file Set the subsection sets all item names and values WriteProfileString set a string of 4 in the Win.ini initialization file specified section. API Print function AbortDoc cancels a document's print Abortprinter de
); return true; } }}
Next we will Copy a bit of information:
Print the management library function Winspool. the Package function name of the underlying driver of the drv printer indicates that AbortPrinter is used to delete the offline file of the printer. AddForm adds a format AddJob to the format table that can be selected for the specified printer and returns a file that can store the printing work. install a local printer monitor with the full path and file name AddMon
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.