Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Impresión (https://www.clubdelphi.com/foros/forumdisplay.php?f=4)
-   -   Poder Ver un pdf (https://www.clubdelphi.com/foros/showthread.php?t=3317)

muli 02-09-2003 13:01:45

Poder Ver un pdf
 
Alguna idea o algun componente, para visualizar un documento pdf, solo visualizarlo, y luego dar opcion para imprimirlo.

Saludos

marcoszorrilla 02-09-2003 13:49:55

Tienes que tener el Adobe instalado:


You can use the ActiveX control of Adobe Acrobat

from Component menu > Import ActiveX control then choose
Acrobat Control for ActiveX, then press Install

the Pdf Activex control for Adobe acrobat will added to ActiveX Tab of Delphi then drop pdf control to the form and try this code

procedure TForm1.Button1Click(Sender: TObject);
begin
Pdf1.Visible := False;
Pdf1.LoadFile('c:\test.pdf');
pdf1.printPages(1,1);
end;

if you want to print the entire file Call pdf1.Print

O mira en Torry en donde tienes componentes gratis que creo te servirían.

Un Saludo.

muli 04-09-2003 10:46:59

Si, pero cuando intento abrir el formulario donde tengo el ActiveX, me da error de iniciación, CoInitialize, he probado a tenerlo visible=True o visible=False, la propiedad Enabled no la tiene.

Como tengo que hacer para evitar ese error.

Gracias


La franja horaria es GMT +2. Ahora son las 02:18:36.

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