Página 1 de 1

Active X and Adobe

Publicado: Mar Feb 19, 2008 10:52 pm
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

Active X and Adobe

Publicado: Mar Feb 19, 2008 11:42 pm
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
>

Active X and Adobe

Publicado: Mar Feb 19, 2008 11:42 pm
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
>

Active X and Adobe

Publicado: Jue Feb 21, 2008 4:16 am
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
>

Active X and Adobe

Publicado: Jue Feb 21, 2008 4:16 am
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
>

Active X and Adobe

Publicado: Jue Feb 21, 2008 7:03 am
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.

Active X and Adobe

Publicado: Jue Feb 21, 2008 7:03 am
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.

Active X and Adobe

Publicado: Jue Feb 21, 2008 7:37 pm
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

Active X and Adobe

Publicado: Jue Feb 21, 2008 7:37 pm
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

Active X and Adobe

Publicado: Vie Feb 22, 2008 7:57 am
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.

Active X and Adobe

Publicado: Vie Feb 22, 2008 7:57 am
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.

Active X and Adobe

Publicado: Mar Feb 26, 2008 9:02 am
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

Active X and Adobe

Publicado: Mar Feb 26, 2008 9:02 am
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