Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Impresión (https://www.clubdelphi.com/foros/forumdisplay.php?f=4)
-   -   Impresion archivo PDF (https://www.clubdelphi.com/foros/showthread.php?t=86425)

grosadoj 06-08-2014 18:30:44

Impresion archivo PDF
 
Hola, estoy utilizando Delphi XE y Rave Reports, el caso es que deseo imprimir un archive PDF automaticamente, sin que se pida nombre del archivo, ni ruta, etc. Me explico mejor deseo que cuando presione un boton se imprima en ese momento el DPF sin realizar ninguna otra accion. Si me pueden ayudar se los agradeceria mucho.

newtron 07-08-2014 09:32:04

Hola.

Esta instrucción imprime un pdf en la impresora por defecto:

Código Delphi [-]
ShellExecute(Self.Handle, 'print', PChar('C:\DOCUMENTO.PDF'),  nil, nil, 0);

tendrás que incluir la unidad ShellApi en el uses del formulario.

Saludos

ElDioni 07-08-2014 14:45:21

Hola, con Rave yo hago esto.

Código Delphi [-]
RvProject1.Engine:=RvSystem1;
RvSystem1.DefaultDest:=RdFile;
RvSystem1.DoNativeOutput:=false;
RvSystem1.RenderObject:=RvRenderPDF1;
RvSystem1.SystemSetups:=RvSystem1.SystemSetups-[ssAllowSetup];
RvSysTem1.OutputFileName:="ruta"+'.pdf';
RvProject1.Execute;

Saludos.

grosadoj 09-08-2014 19:51:57

Impresion DFP
 
Gracias . . realmente me funciono muy bien.


La franja horaria es GMT +2. Ahora son las 20:52:51.

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