![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#4
|
||||
|
||||
|
Es posible que puedes obtener mucha de esa información utilizando WMI.
En concreto la clase Win32_Printer te da bastante información. class Win32_Printer : CIM_Printer { uint32 Attributes; uint16 Availability; string AvailableJobSheets[]; uint32 AveragePagesPerMinute; uint16 Capabilities[]; string CapabilityDescriptions[]; string Caption; string CharSetsSupported[]; string Comment; uint32 ConfigManagerErrorCode; boolean ConfigManagerUserConfig; string CreationClassName; uint16 CurrentCapabilities[]; string CurrentCharSet; uint16 CurrentLanguage; string CurrentMimeType; string CurrentNaturalLanguage; string CurrentPaperType; boolean Default; uint16 DefaultCapabilities[]; uint32 DefaultCopies; uint16 DefaultLanguage; string DefaultMimeType; uint32 DefaultNumberUp; string DefaultPaperType; uint32 DefaultPriority; string Description; uint16 DetectedErrorState; string DeviceID; boolean Direct; boolean DoCompleteFirst; string DriverName; boolean EnableBIDI; boolean EnableDevQueryPrint; boolean ErrorCleared; string ErrorDescription; string ErrorInformation[]; uint16 ExtendedDetectedErrorState; uint16 ExtendedPrinterStatus; boolean Hidden; uint32 HorizontalResolution; datetime InstallDate; uint32 JobCountSinceLastReset; boolean KeepPrintedJobs; uint16 LanguagesSupported[]; uint32 LastErrorCode; boolean Local; string Location; uint16 MarkingTechnology; uint32 MaxCopies; uint32 MaxNumberUp; uint32 MaxSizeSupported; string MimeTypesSupported[]; string Name; string NaturalLanguagesSupported[]; boolean Network; uint16 PaperSizesSupported[]; string PaperTypesAvailable[]; string Parameters; string PNPDeviceID; string PortName; uint16 PowerManagementCapabilities[]; boolean PowerManagementSupported; string PrinterPaperNames[]; uint32 PrinterState; uint16 PrinterStatus; string PrintJobDataType; string PrintProcessor; uint32 Priority; boolean Published; boolean Queued; boolean RawOnly; string SeparatorFile; string ServerName; boolean Shared; string ShareName; boolean SpoolEnabled; datetime StartTime; string Status; uint16 StatusInfo; string SystemCreationClassName; string SystemName; datetime TimeOfLastReset; datetime UntilTime; uint32 VerticalResolution; boolean WorkOffline; }; Si buscas en el FTP o en los mensajes antiguos, verás que hay ejemplos (yo mismo he colgado varios) de cómo utilizar WMI. Te pueden servir para hacer algunas pruebas, ya que son fácilmente adaptable a esta clase. Si te cuadra y no quieres hacerlo manualmene el paquete GLibWMI, ya lleva implementado un componente para esta clase.
__________________
Germán Estévez => Web/Blog Guía de estilo, Guía alternativa Utiliza TAG's en tus mensajes. Contactar con el Clubdelphi ![]() P.D: Más tiempo dedicado a la pregunta=Mejores respuestas. |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| ¿como Imprimir a varias impresoras'? | JXJ | Varios | 8 | 17-05-2011 02:15:39 |
| ¿Cómo conocer por qué rebotó un mail? | kokorini | Internet | 0 | 12-03-2008 12:39:42 |
| Como conocer que funcion invoco a otra.... | oracle | JAVA | 16 | 22-01-2008 05:05:40 |
| ¿Como Imprimir Rápido en QReport usando Impresoras Matriciales? | AGAG4 | Impresión | 13 | 19-08-2006 03:32:08 |
|