Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

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

 
 
Herramientas Buscar en Tema Desplegado
  #9  
Antiguo 05-02-2008
keyboy keyboy is offline
Miembro
 
Registrado: oct 2004
Posts: 367
Poder: 22
keyboy Va por buen camino
¿Y si usan a la misma ventana del preview como variable "booleana"?

Código Delphi [-]
function IsPreviewActive: Boolean;
var
  I: Integer;

begin
  Result := false;

  for I := 0 to Screen.FormCount - 1 do
    if Screen.Forms[i].ClassName = 'TQRStandardPreview' then
    begin
      Result := true;
      break;
    end;
end;

Así, al hacer el preview sólo tienen que examinar el valor de la función:

Código Delphi [-]
if IsPreviewActive then
  ShowMessage('Ya hay una vista preliminar activa')
else
  QuickRep1.Preview;

Bye
Responder Con Cita
 



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

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Dos QRReports Preview Print TONIAM Impresión 1 12-07-2007 12:15:36
Jv Print Preview ?! MaMu Impresión 0 29-04-2007 14:40:57
TDBCHAR, print preview albertmac Gráficos 0 08-03-2007 19:42:09
Problemas con el Print preview trygvekor Impresión 2 27-11-2006 06:00:26
Alquien conoce al Print Preview Active X polopolo Impresión 0 30-06-2005 07:27:47


La franja horaria es GMT +2. Ahora son las 12:48:12.


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