IntroductionSome time ago, we developed a set of printer software for our customers and made some research on calling printers in C.
---------------------------------------------
Problem. NET Framework 1.1 provides us with a printersettings class to
[C #] Getting the printer list,I. Obtain the list of locally installed printers
Note: (if you have added a LAN printer to the device and printer, it is also a locally installed printer. If you have not added a LAN printer, It is counted as a LAN
How to: send documents to a printer
AvailablePrintoutTo send a Microsoft Office Word document (or part of the document) to a printer. FromApplicationOrDocumentObject callPrintout ().
Print Document
The followingCodePrint the
From: http://www.cnblogs.com/hone/archive/2005/12/29/307302.html
AvailablePrintoutTo send a Microsoft Office Word document (or part of the document) to a printer. FromApplicationOrDocumentObject callPrintout ().
Print Document
The
This problem sometimes occurs when we call word printing. That is, we callWorddoc. PrintoutAfter the data is sent to the printer, disable the callProgramSometimes the data is not completely printed due to the data loss caused by sending the data to
Print | dialog | The front of the page says. NET environment for printing page settings, printer settings, Print Preview dialog box implementation, now it's time for us to apply them.
We need to do some of the following things:
1. The program
1. download firmware upd-pcl6-x32-5.9.0.18326 and M1520_MFP_Series_FW_Update-20130923 and uninstall HP printer drivers
2. decompress the package to the C root directory.
.
3. Select USB Mode
4. Turn off the power, connect the USB to the computer,
C # parallel port thermal invoice printer print bitmap including chip writing,
The following is the code to be called:
Class LptControl {private string LptStr = "lpt1"; public LptControl (string l_LPT_Str) {LptStr = l_LPT_Str;} [StructLayout
The enumprinters function in winspool. DRV is mainly used. The Code is as follows:
[Dllimport ("winspool. DRV", setlasterror = true, charset = charset. Auto)][Return: financialas (unmanagedtype. bool)]Private Static extern bool enumprinters
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.