You are currently browsing the archives for the Stampanti category.

Annunci

Linkedin


Archive for the ‘Stampanti’ Category

venerdì, novembre 6, 2009 @ 09:11 AM admin

Per recuperare il nome della stampante di default possiamo utilizzare l’oggetto printer. Innanzitutto c’è dobbiamo includere la unit “printers”.

unit printers;

E recuperiamo il nome nel seguente modo:

Printer.PrinterIndex := -1;
NomeStampanteDefault := Printer.Printers.Strings[Printer.PrinterIndex];

Compatibile con:
  • Windows XP: SI
  • Windows VISTA: SI
  • Windows 7: DA VERIFICARE