Hi all,

I am developing a project. Here's is d problem.

I need an online tool that will detect user’s printer model and then display the user a special link that is related to the detected model.

Ideally, it should detect the physically connected PNP printer first, after the user grants permission. As an option, it should look at the installed printers on the system in case the printer in question is installed on the network or not currently connected. Once detected, printer model string would be used to form a URL that will be displayed to the user.

For example; I have a Lexmark A1000 connected to my computer. It’s a Plug’n’Play printer. I don’t want to install the wrong parts or get the wrong information, so I run this online tool to detect my printer. It detects successfully and returns the string “Lexmark A1000” with a link that contains the string. Then it asks if I want to detect my “installed printers”. If I say yes, it will also detect my network printer “Samsung X1000”. I will have two links showing on the screen each one going to the corresponding printer page.


I have developed a small applet that detects user's installed printers. here's code for that.

import javax.print.;
import java.awt.;


@SuppressWarnings("serial")
public class Test extends java.applet.Applet {


public void paint(Graphics g) {
PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);
int x=5,y=20;
for (PrintService printer : printServices)
{
g.drawString(printer.getName(),x,y);
y+=20;
}
}
}

Can anybody help me what i should do next?

Please help me.

Thanks in advance.