Question : Creating a printer with IP port automatically

Dear all

I would like to set up a code to create 8 printers automatically with ip port 0.0.0.0

Hopefully at a press of a button

I know printUI allows you to add a printer but it doesnt create the port and when i add it with an IP 0.0.0.0 it comes up with an error

here is my code

rundll32 printui.dll,PrintUIEntry /if /b "Test Printer" /f %windir%\inf\ntprint.inf  /r "IP_000.000.00.000"  /m "AGFA-AccuSet v52.3"


any idea?

Answer : Creating a printer with IP port automatically

You might get certain bandwidth advantages with an Swing based application because the server has to send only the required data in case of socket call from Swing instead of the whole web page(including the HTML, images, CSS etc) as would be in case of web applications.

However an application developed with Swing is always a client-server application and never a web application. You would have to always first distribute the client(which gets heavy and download cumbersome) as the application size increases and then have it call your server application.

Whereas with a web application all your changes are centralized on the server and the client can access using a web browser. While Swing might offer you marginal benefit in terms of bandwidth initially, it will always be slower and hog bandwidth when you are trying to distribute the client exe through a central server.

In a nutshell; DON'T use Swing for a web application!! If you design your web application intelligently(with less/smaller sized images), it would be less bandwidth hogging.
Random Solutions  
 
programming4us programming4us