Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

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

 
 
Herramientas Buscar en Tema Desplegado
  #5  
Antiguo 12-07-2005
Avatar de yusnerqui
yusnerqui yusnerqui is offline
Miembro
 
Registrado: mar 2004
Ubicación: Cuba
Posts: 679
Poder: 23
yusnerqui Va por buen camino
Hola

Cita:
ESPERO QUE NOS ENTENDAMOS
De seguro si usas las etiquetas delphi se entenderán mejor, y por ende obtendrás más ayuda, me he tomado la libertad de transcribir tu código:

Código Delphi [-]
procedure TRECIVFORM.QRDBText1Print(sender: TObject; var Value: String);
begin
  DataModule2.Table5.IndexName:= 'DNI';
  if not DataModule2.Table5.Findkey([Query1.FieldByName ('NIF_PROP1').Value]) then
    ShowMessage('No encuentro el Nif del propietario');
  IF Query1.FieldByName('TIPO').Value = 'V' then
  begin
    QuickRep1.PrinterSettings.Copies:=1;
    QRLabel1.Caption:= ' ';
    QRLabel7.Caption:= 'arrendatario de la expresada vivienda';
    QRLabel3.Caption:= 'Vivienda:';
    QRLabel8.Caption:= 'la cantidad de:';
    QRLabel28.Caption:= ' ';
    QRLabel6.Caption:= QRLabel25.Caption;
  end;
  if Query1.FieldByName('TIPO').value = 'T' then
  begin
    QuickRep1.PrinterSettings.Copies:=1;
    QRLabel1.Caption:= ' ';
    QRLabel7.Caption:= 'arrendatario del expresado trastero';
    QRLabel3.Caption:= 'Trastero:';
    QRLabel8.Caption:= 'la cantidad de:';
    QRLabel28.Caption:= ' ';
    QRLabel6.Caption:= QRLabel25.Caption;
  end;
  if Query1.FieldByName('TIPO').Value = 'L' then
  begin
    QuickRep1.PrinterSettings.Copies:=2;
    QRLabel1.Caption:= 'Recibo Núm: ';
    QRLabel7.Caption:= 'arrendatario del expresado local';
    QRLabel3.Caption:= 'Local:';
    QRLabel8.Caption:= 'la cantidad de:';
    QRLabel6.Caption:= QRLabel25.Caption;
    QRLabel28.Caption:= Form24.DBEdit1.Text;
    Form24.DBEdit1.Text:=IntToStr((StrToInt(Form24.DBEdit1.Text)+1));
    //DataModule2.Table3.edit;
    //DataModule2.Table3.FieldByName('ULTRECIV').AsInteger:= StrToInt(Form24.DBEdit1.Text);
    //DataModule2.Table3.post;
    //DataModule2.Table3.Refresh;
    pai:= pai+1;
  end;
end;

se lee mejor así verdad?

Saludos
__________________
Lo importante no es llegar primero, sino saber llegar.

Para que puedas llegar mejor lee la Guia de Estilo

Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

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 04:41:08.


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