Home > Back-end >  Java through the IP address of the front end to get connected to the IP address of the printer
Java through the IP address of the front end to get connected to the IP address of the printer

Time:09-26

Due to the project requirements, need to do a print function, need to connect to a client on the server to print service,
After thinking came up with the client to the server computer IP address, server via IP address for the client's printer,
But baidu fruitless
Have a great spirit to guide the
Or provide some other ideas
Thank you sincerely!

CodePudding user response:

refer to the original poster YShuaiLong response:
due to the project requirements, need to do a print function, need to connect to a client on the server to print service,
After thinking came up with the client to the server computer IP address, server via IP address for the client's printer,
But baidu fruitless
Have a great spirit to guide the
Or provide some other ideas
Thank you sincerely!


You have to set the client printer to a network share, and then just like you can add a network printer on the server, when the local printer to use,

CodePudding user response:

reference 1st floor qq_39936465 response:
Quote: refer to the original poster YShuaiLong response:

Due to the project requirements, need to do a print function, need to connect to a client on the server to print service,
After thinking came up with the client to the server computer IP address, server via IP address for the client's printer,
But baidu fruitless
Have a great spirit to guide the
Or provide some other ideas
Thank you sincerely!


You have to set the client printer to a network share, and then just like you can add a network printer on the server, when the local printer use,


reference 1st floor qq_39936465 response:
Quote: refer to the original poster YShuaiLong response:

Due to the project requirements, need to do a print function, need to connect to a client on the server to print service,
After thinking came up with the client to the server computer IP address, server via IP address for the client's printer,
But baidu fruitless
Have a great spirit to guide the
Or provide some other ideas
Thank you sincerely!


You have to set the client printer to a network share, and then just like you can add a network printer on the server, when the local printer use,




Can the detailed how Java you can add a network printer on the server

CodePudding user response:

refer to the second floor YShuaiLong response:
can detailed how Java you can add a network printer on the server it


Client in the operating system setup a network share printers, also to add the network printer on server operating system, so the server can use the printer,

Java just when local printer to use,

CodePudding user response:

Of course as long as there is a Shared permissions, Java can directly call the network printer, I doubt you is not open by the printer network access,
  • Related