Ver Mensaje Individual
  #3  
Antiguo 27-06-2013
isaiaseml isaiaseml is offline
Registrado
NULL
 
Registrado: oct 2012
Posts: 6
Reputación: 0
isaiaseml Va por buen camino
Código Delphi [-]
 procedure TFrmSemaforo.SpeedButton2Click(Sender: TObject);
begin
 if imprimir<>'Y' then
   SHOWMESSAGE('ERROR: NO HAY INFORMACIÓN A IMPRIMIR')
ELSE
Begin
   if todas.Checked then
   begin
     with  verde do
     begin
        ShowPrintDialog := true;
        PrinterSetup.Copies := 1;
        AllowPrintToArchive := true;
        DeviceType := 'PDF';
         Reset;
         TextFileName := ExtractFilePath(ParamStr(0)) +'semaforo.pdf';
      Print;

     end;


   end; 
end;
end;

este es el codigo, anexo en una imagen el error q me tira cuando trato de generar el PDF. La otra imagen es ya el pdf generado
Imágenes Adjuntas
Tipo de Archivo: jpg error_pdf.jpg (32,9 KB, 11 visitas)
Tipo de Archivo: jpg pdf.jpg (34,3 KB, 8 visitas)
Responder Con Cita