hi friends
i an developing a web application for a client.
And
i want to bind all the printer of a LAN with a dropdownlist. and when
user select the printer from dropdownlist and click on print button the
the printing should be perform through the selected printer.. i have
tried a lot but i could not get success.
If you have any idea then reply me please.
i get the name of all the printer in dropdownlist but how to code for print the data through selected printer.
If you know please reply soon........
Thanks & Regards
Mukesh Kumar Tiwari
Loading

Mukesh Kumar TiwariPosted Oct 10, 2013, 8:00 AM
first of all thanks for reply me...
and i m using this code for bind all the printer name in dropdownlist of the lan..
String InstalledPrinters;
for (int count = 0; count < PrinterSettings.InstalledPrinters.Count; count++)
{
InstalledPrinters = PrinterSettings.InstalledPrinters[count];
DropDownList1.Items.Add(InstalledPrinters);
}
and it completely work.
But problem is that when i select one printer name from dropdown list for printing the data, i m not geting the idea about that..
Means when i select one print name from the list of five and click on print button the printing perform through that printer...
Please help if u have any idea or link....
Posted Oct 10, 2013, 6:56 AM
try this code may help you
if this code helps you please mark as answer