Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 30-11-2005
jmlifi jmlifi is offline
Miembro
 
Registrado: abr 2005
Posts: 188
Poder: 20
jmlifi Va por buen camino
Error "printing in progress"

utilizo delphi 7 y este es el codigo que tengo:

procedure ActivaImpresora(const s: string);
var
Device, Name, Port : array[0..100] of char;
DevMode : THandle;
a :string;
q : integer;
begin
with printer do begin
if s<>'' then begin s='LANIER LD135 PCL 5e'
a:=printers.Names[0]; //me devuelve vacio a='' prueba realizada
printer.PrinterIndex := printers.IndexOf(s); // AQUI DA EL ERROR
end
else
PrinterIndex := -1;
GetPrinter(Device, Name, Port, DevMode);
SetPrinter(Device, Name, Port, 0);
end;
end;

Última edición por jmlifi fecha: 30-11-2005 a las 18:17:18.
Responder Con Cita
  #2  
Antiguo 30-11-2005
Coco Coco is offline
Miembro
 
Registrado: jul 2004
Ubicación: Argentina
Posts: 83
Poder: 20
Coco Va por buen camino
que valor tiene s cuando ingresa a la funcion,porque si tiene un valor <> '' nunca va a asignarle el valor 'LANIER LD135 PCL 5e'.

Saludos.
__________________
Hice un trato con Dios... el no hace sistemas y yo hago milagros
Responder Con Cita
  #3  
Antiguo 01-12-2005
jmlifi jmlifi is offline
Miembro
 
Registrado: abr 2005
Posts: 188
Poder: 20
jmlifi Va por buen camino
s tiene 'LANIER LD135 PCL 5e' cuando ingresa en la función
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 17:31:13.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi