FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Poder Ver un pdf
Alguna idea o algun componente, para visualizar un documento pdf, solo visualizarlo, y luego dar opcion para imprimirlo.
Saludos
__________________
SI UN PROBLEMA TIENE SOLUCION, YA NO ES UN PROBLEMA, Y SI NO LA TIENE PARA QUE PREOCUPARSE. |
#2
|
||||
|
||||
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. |
#3
|
|||
|
|||
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
__________________
SI UN PROBLEMA TIENE SOLUCION, YA NO ES UN PROBLEMA, Y SI NO LA TIENE PARA QUE PREOCUPARSE. |
|
|
|