The second: how in the program of the print by a different IP address to distinguish the printer to print equipment. thank you
CodePudding user response:
When printing to specify different printer (a printer name),CodePudding user response:
Is there a way to make print automatically? Don't have to choose a printer,CodePudding user response:
When printing to specify different printer (a printer name),CodePudding user response:
Definitely need you to get each other in the process of IP (or other similar), and then recycling program control specifies the printer to print,CodePudding user response:
Now there are two printers, one kind is through is the com port, another is by IP to differentiate, the problem is how to distinguish between the two applications call I don't know, I just want to ask how to write the code, thank you!CodePudding user response:
Dw_1. Object. The DataWindow. Printer='Printer name (drive the Printer name)'Dw_1. Print ()
CodePudding user response:
Is used to distinguish different printer name?CodePudding user response:
You can create a table, use the IP and printer name;When we do different operation to a different name namely dw_1. Object. The DataWindow. Printer='Printer name (drive the Printer name)'
Dw_1. Print ()
CodePudding user response:
1, link:Different data to print to a different device, you must be in the database has a table of, the relationship in software interface to specify this relationship, whether it's type for the specified printer or a printing solutions to type, with printing solutions specified in the printer, anyhow to associate the
2, printing:
If you are using a driver to print, what what IP port dw_name. Print () don't know this, you only know you install Windows printer what what is the use of the port or IP, and then to artificially set, according to the associated printer name to specify when printing; If you use the port to the direct print or equipment interface IP print anything you can directly write down in your associated IP or port, and then print code installed to remove the direct printing (DW) is a,
CodePudding user response:
This question should be: how do you like in a computer control more than one printer, you can do a configuration file, used to store the printer information, such as:[Label_Printer]
Name=HP 2000 c
Port=LPT1
Driver=winspool
[Report_Printer]
Name=\ \ 10.2.5.115 \ JSJ
Port=Ne02
Driver=winspool
If you want to print the contents of the send to the printer, so you can set it first into the system default printer first, and the system default printer is stored in the registry, then you can according to the different print content, reads the configuration file to set the system default printer
CodePudding user response:
I have been a serial port and so hutch play programNeed to directly control port, not through the driver!
Now the printer is divided into parallel and serial port, so, U mouth and so on, implementation method also not exactly the same!
CodePudding user response:
Automatic printing: according to the registry keys. Set up the printerCodePudding user response:
Need to adopt direct output port mode, namely the printer as a file, using fileopen function to open the specified equipment, filewrite output to the specified device,Open the com1 port, for example, using fileopen (" com1 ")