In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Active X and Adobe

Xailer professional forum in English
Responder
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

Active X and Adobe

Mensaje por Nick Hilder »

Howdy
Has anyone got a working example of a form with a PDF being opened in an
activex container
I have a form and have done this
WITH OBJECT ::oPDFDoc := TAcroPDF():New( Self )
:nAlign := alCLIENT
:Create()
:SetFocus()
::oPDFDoc:LoadFile("C:Contacts.pdf")
END
I just get the hatching which means something when wrong somewhere...
I have made sure Adobe isn't prompting for upgrades etc when it opens
Under task manager AcroRd32.exe starts but thats it.
I can start acrord32.exe from a command line and open a pdf without any
prompts appearing
I'm sure there was an example of a PDF in the samples, but I can no longer
find any of the OCX examples, including the explorer one
Regards Nick
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

Active X and Adobe

Mensaje por Nick Hilder »

BTW I'm using Acrobat Reader 7
"Nick Hilder" <nick_Nospam#$%@capsol.com%NOSPAM%.au> wrote in message
news:[email=47bb4f9d@ozsrv2.ozlan.local...]47bb4f9d@ozsrv2.ozlan.local...[/email]
> Howdy
>
> Has anyone got a working example of a form with a PDF being opened in an
> activex container
>
> I have a form and have done this
>
> WITH OBJECT ::oPDFDoc := TAcroPDF():New( Self )
> :nAlign := alCLIENT
> :Create()
> :SetFocus()
> ::oPDFDoc:LoadFile("C:Contacts.pdf")
> END
>
> I just get the hatching which means something when wrong somewhere...
>
> I have made sure Adobe isn't prompting for upgrades etc when it opens
>
> Under task manager AcroRd32.exe starts but thats it.
>
> I can start acrord32.exe from a command line and open a pdf without any
> prompts appearing
>
> I'm sure there was an example of a PDF in the samples, but I can no longer
> find any of the OCX examples, including the explorer one
>
> Regards Nick
>
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

Active X and Adobe

Mensaje por Nick Hilder »

BTW I'm using Acrobat Reader 7
"Nick Hilder" <nick_Nospam#$%@capsol.com%NOSPAM%.au> wrote in message
news:[email=47bb4f9d@ozsrv2.ozlan.local...]47bb4f9d@ozsrv2.ozlan.local...[/email]
> Howdy
>
> Has anyone got a working example of a form with a PDF being opened in an
> activex container
>
> I have a form and have done this
>
> WITH OBJECT ::oPDFDoc := TAcroPDF():New( Self )
> :nAlign := alCLIENT
> :Create()
> :SetFocus()
> ::oPDFDoc:LoadFile("C:Contacts.pdf")
> END
>
> I just get the hatching which means something when wrong somewhere...
>
> I have made sure Adobe isn't prompting for upgrades etc when it opens
>
> Under task manager AcroRd32.exe starts but thats it.
>
> I can start acrord32.exe from a command line and open a pdf without any
> prompts appearing
>
> I'm sure there was an example of a PDF in the samples, but I can no longer
> find any of the OCX examples, including the explorer one
>
> Regards Nick
>
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

Active X and Adobe

Mensaje por Nick Hilder »

Anyone?
"Nick Hilder" <nick_Nospam#$%@capsol.com%NOSPAM%.au> wrote in message
news:[email=47bb4f9d@ozsrv2.ozlan.local...]47bb4f9d@ozsrv2.ozlan.local...[/email]
> Howdy
>
> Has anyone got a working example of a form with a PDF being opened in an
> activex container
>
> I have a form and have done this
>
> WITH OBJECT ::oPDFDoc := TAcroPDF():New( Self )
> :nAlign := alCLIENT
> :Create()
> :SetFocus()
> ::oPDFDoc:LoadFile("C:Contacts.pdf")
> END
>
> I just get the hatching which means something when wrong somewhere...
>
> I have made sure Adobe isn't prompting for upgrades etc when it opens
>
> Under task manager AcroRd32.exe starts but thats it.
>
> I can start acrord32.exe from a command line and open a pdf without any
> prompts appearing
>
> I'm sure there was an example of a PDF in the samples, but I can no longer
> find any of the OCX examples, including the explorer one
>
> Regards Nick
>
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

Active X and Adobe

Mensaje por Nick Hilder »

Anyone?
"Nick Hilder" <nick_Nospam#$%@capsol.com%NOSPAM%.au> wrote in message
news:[email=47bb4f9d@ozsrv2.ozlan.local...]47bb4f9d@ozsrv2.ozlan.local...[/email]
> Howdy
>
> Has anyone got a working example of a form with a PDF being opened in an
> activex container
>
> I have a form and have done this
>
> WITH OBJECT ::oPDFDoc := TAcroPDF():New( Self )
> :nAlign := alCLIENT
> :Create()
> :SetFocus()
> ::oPDFDoc:LoadFile("C:Contacts.pdf")
> END
>
> I just get the hatching which means something when wrong somewhere...
>
> I have made sure Adobe isn't prompting for upgrades etc when it opens
>
> Under task manager AcroRd32.exe starts but thats it.
>
> I can start acrord32.exe from a command line and open a pdf without any
> prompts appearing
>
> I'm sure there was an example of a PDF in the samples, but I can no longer
> find any of the OCX examples, including the explorer one
>
> Regards Nick
>
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Active X and Adobe

Mensaje por Oleg »

Nick!
>> I'm sure there was an example of a PDF in the samples, but I can no
>> longer find any of the OCX examples, including the explorer one
For me, the example from XailerSamplesOCXTest1 is working fine (see
Menuitem Test|PDF).
But I have Acrobat Reader 5 on my XP machine (not 7).
Regards, Oleg.
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Active X and Adobe

Mensaje por Oleg »

Nick!
>> I'm sure there was an example of a PDF in the samples, but I can no
>> longer find any of the OCX examples, including the explorer one
For me, the example from XailerSamplesOCXTest1 is working fine (see
Menuitem Test|PDF).
But I have Acrobat Reader 5 on my XP machine (not 7).
Regards, Oleg.
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Active X and Adobe

Mensaje por jfgimenez »

Nick,
> I'm sure there was an example of a PDF in the samples, but I can no longer
> find any of the OCX examples, including the explorer one
The sample is at xailersamplesocxtest1
However, AFAIR Adobe changed the way the ocx has to be instantiated, and
it's dependant on the acrobat version. So, the (possibly) best way to do it
is using the webbrowser ocx and let it to load the correct acrobat
component.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Active X and Adobe

Mensaje por jfgimenez »

Nick,
> I'm sure there was an example of a PDF in the samples, but I can no longer
> find any of the OCX examples, including the explorer one
The sample is at xailersamplesocxtest1
However, AFAIR Adobe changed the way the ocx has to be instantiated, and
it's dependant on the acrobat version. So, the (possibly) best way to do it
is using the webbrowser ocx and let it to load the correct acrobat
component.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Bingen Ugaldebere
Mensajes: 1310
Registrado: Mié Sep 26, 2007 7:12 pm

Active X and Adobe

Mensaje por Bingen Ugaldebere »

Hi Nick, depending of the version of Acrobat Reader the source code you
proposed works well or not.
This is the only way to view PDFs with all Acrobat versions.
http://www.binarygeneration.com/Demos/P ... fViewer.zi p
Regards.
Bingen Ugaldebere
Mensajes: 1310
Registrado: Mié Sep 26, 2007 7:12 pm

Active X and Adobe

Mensaje por Bingen Ugaldebere »

Hi Nick, depending of the version of Acrobat Reader the source code you
proposed works well or not.
This is the only way to view PDFs with all Acrobat versions.
http://www.binarygeneration.com/Demos/P ... fViewer.zi p
Regards.
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Active X and Adobe

Mensaje por Oleg »

Nick,
> This is the only way to view PDFs with all Acrobat versions.
>
> http://www.binarygeneration.com/Demos/P ... fViewer.zi p
>
There is also Foxit Reader from www.foxitsoftware.com
Regards, Oleg
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Active X and Adobe

Mensaje por Oleg »

Nick,
> This is the only way to view PDFs with all Acrobat versions.
>
> http://www.binarygeneration.com/Demos/P ... fViewer.zi p
>
There is also Foxit Reader from www.foxitsoftware.com
Regards, Oleg
Responder