The printer name may not show as you specified it...You need to examine the "Printers" property and set the "PrinterIndex" property..List the "Printers" property to a Memo box so you can see what you have or what is being detected.
Code: Pascal [Select][+][-]//myPrinter:= Printer.Create;//myPrinter.title = 'someTitle';//myPrinter.RawMode:= True;//myPrinter.BeginDoc;//myPrinter.write(printing[1], Length(printing), printInt);//myPrinter.EndDoc; WriteLn(printer.printers.text);// or ShowMessage(Printer.Printers.Text); What is the output of that?
You dont have create a Printer class.Just Assign printer name to it Printer.SetPrinter(printer_name);