Página 1 de 1

...SamplesOCXTest1 - pdf viewing problem

Publicado: Mié May 23, 2012 12:05 pm
por ChrisGillard
Hi,
The sample in C:xailer2SamplesOCXTest1 shows a web page and also allows
you to view a pdf.
This always used to work ok and we have used the pdf viewing code in one of
our applications.
The pdf viewer now errors when trying to load the pdf ... see image.
It appears that TPdf() may be returning a NIL rather than an object.
Have tried it on a couple of PC's.
Any thoughts would be appreciated.
Chris


Attached files

...SamplesOCXTest1 - pdf viewing problem

Publicado: Mié May 23, 2012 1:52 pm
por ignacio
Chris Gillard escribió el mié, 23 mayo 2012 12:05Hi,
The sample in C:xailer2SamplesOCXTest1 shows a web page and also allows
you to view a pdf.
This always used to work ok and we have used the pdf viewing code in one of
our applications.
The pdf viewer now errors when trying to load the pdf ... see image.
It appears that TPdf() may be returning a NIL rather than an object.
Have tried it on a couple of PC's.
Any thoughts would be appreciated.
Chris

Chris,
It seems to work fine here

Regards,


Attached files

...SamplesOCXTest1 - pdf viewing problem

Publicado: Mié May 23, 2012 2:02 pm
por ChrisGillard
Hi Ignacio,
Hmmm ... is that a .exe you could email to me to test here possibly ?
chris[at]bluesquare[dot]co[dot]uk
Could different versions of Adobe Acrobat Reader have different CLSID and so
not work with the hard coded one in the program?
Thanks
Chris
"Ignacio Ortiz de Zúñiga" <nonametoavoidspam@xailer.com> wrote in
message news:4fbccf90$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Chris Gillard escribió el mié, 23 mayo 2012 12:05
>> Hi,
>>
>> The sample in C:xailer2SamplesOCXTest1 shows a web
>> page and also allows you to view a pdf.
>>
>> This always used to work ok and we have used the pdf
>> viewing code in one of our applications.
>>
>> The pdf viewer now errors when trying to load the pdf
>> ... see image.
>>
>> It appears that TPdf() may be returning a NIL rather
>> than an object.
>>
>> Have tried it on a couple of PC's.
>>
>> Any thoughts would be appreciated.
>>
>> Chris
>
>
> Chris,
> It seems to work fine here
>
>
>
> Regards,
>
------------------------------------------------------------ --------------------
>
> --
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer/Xailer team]
> http://www.xailer.com
> http://www.xailer.info

...SamplesOCXTest1 - pdf viewing problem

Publicado: Mié May 23, 2012 4:05 pm
por ignacio
Chris Gillard escribió el mié, 23 mayo 2012 14:02Hi Ignacio,
Hmmm ... is that a .exe you could email to me to test here possibly
http://www.xailer.com/files/temp/TestOcx.rar
Regards,

...SamplesOCXTest1 - pdf viewing problem

Publicado: Mié May 23, 2012 4:39 pm
por ChrisGillard
Hi Ignacio,
Thanks for that .... your .exe has same error here.
Something not right with my setup here, also my colleagues PC.
Will uninstall & reinstall Adobe.
Thanks for your help.
Chris
"Ignacio Ortiz de Zúñiga" <nonametoavoidspam@xailer.com> wrote in
message news:4fbcee9b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Chris Gillard escribió el mié, 23 mayo 2012 14:02
>> Hi Ignacio,
>>
>> Hmmm ... is that a .exe you could email to me to test
>> here possibly
>
>
> http://www.xailer.com/files/temp/TestOcx.rar
>
> Regards, --
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer/Xailer team]
> http://www.xailer.com
> http://www.xailer.info

...SamplesOCXTest1 - pdf viewing problem

Publicado: Jue May 24, 2012 10:34 am
por jfgimenez
Chris,
the problem is that Adobe changed the OCX several times over last Reader
versions. Even that, some version do not work correctly. The only way to
do it to work is to use the IWebBrowser OCX to show the PDF file.
Please, see http://xailer.info/esp/?p=75. That article is written in
spanish, but you may translate it into your language using google, and
it contains a full source code sample which shows how to do it.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

...SamplesOCXTest1 - pdf viewing problem

Publicado: Jue May 24, 2012 12:46 pm
por ChrisGillard
Jose,
Thanks for your thoughts and you confirm what I suspected with different
versions of the Adobe OCX .... the CLID approach is going to fail.
I like the idea of letting the browser do the work using its own link to
whatever pdf reader you have installed.
I have the article and I will give it a go and let you know.
Thanks
Chris
..
"Jose F. Gimenez" <jfgimenezAM]"@wanadoo.es> wrote in message
news:4fbdf2b2$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Chris,
>
> the problem is that Adobe changed the OCX several times over last Reader
> versions. Even that, some version do not work correctly. The only way to
> do it to work is to use the IWebBrowser OCX to show the PDF file.
>
> Please, see http://xailer.info/esp/?p=75. That article is written in
> spanish, but you may translate it into your language using google, and it
> contains a full source code sample which shows how to do it.
>
>
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info

...SamplesOCXTest1 - pdf viewing problem

Publicado: Jue May 24, 2012 1:02 pm
por jfgimenez
Chris,
> I like the idea of letting the browser do the work using its own link to
> whatever pdf reader you have installed.
Yes, and this way has another benefit: it will work with any pdf reader
which install itself as a browser plugin, not only Adobe's one.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

...SamplesOCXTest1 - pdf viewing problem

Publicado: Jue May 24, 2012 1:03 pm
por jfgimenez
Chris,
sorry, I didn't read all your message, and I've just said the same as you.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

...SamplesOCXTest1 - pdf viewing problem

Publicado: Jue May 24, 2012 2:50 pm
por ChrisGillard
Jose,
My browser is not finding the pdf file at the moment.
I have tried to follow your parsing and Navigate method and am using
something like
::oOcx:Navigate( "file:///c:/remit.pdf" )
The browser says it cant find the file.
I have tried lots of other combinations of // and /// plus also with no
drive letter & path with the pdf in the application folder ... no luck.
What is the final format of the string I am trying to make?
Thanks in advance.
Chris
"Jose F. Gimenez" <jfgimenezAM]"@wanadoo.es> wrote in message
news:4fbe157d$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Chris,
>
> sorry, I didn't read all your message, and I've just said the same as you.
>
>
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info