Ver Mensaje Individual
  #1  
Antiguo 17-10-2005
elguille elguille is offline
Miembro
 
Registrado: ene 2005
Posts: 130
Reputación: 22
elguille Va por buen camino
Violacion De Acceso

PORQUE EL SIGUIENTE CODIGO NO DA ERROR

Código Delphi [-]
  PROCEDURE impform;
  var I:INTEGER;
      miform:tform;
  BEGIN
  I:=0;
  WHILE i <= Screen.FormCount - 1 do BEGIN
    MIFORM:=TFORM(Screen.Forms[i]);
      if MIFORM.Active then begin
          MIFORM.PrintScale:=poprinttofit;
          MIFORM.Print;
          I:=Screen.FormCount;
      end else
        i:=i+1;
  end;
  END;

Y ESTE DA ERROR VIOLACION DE ACCESO ¿¿¿ ???

Código Delphi [-]
  PROCEDURE impform;
  var I:INTEGER;
  BEGIN
  I:=0;
  WHILE i <= Screen.FormCount - 1 do BEGIN
      if TFORM(Screen.Forms[i]).Active then begin
          TFORM(Screen.Forms[i]).PrintScale:=poprinttofit;
          TFORM(Screen.Forms[i]).Print;
          I:=Screen.FormCount;
      end else
        i:=i+1;
  end;
  END;

Última edición por Neftali [Germán.Estévez] fecha: 17-10-2005 a las 16:17:03.
Responder Con Cita