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.

...SamplesOCXTest1 - pdf viewing problem

Xailer professional forum in English
Responder
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

...SamplesOCXTest1 - pdf viewing problem

Mensaje 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
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9445
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

...SamplesOCXTest1 - pdf viewing problem

Mensaje 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
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

...SamplesOCXTest1 - pdf viewing problem

Mensaje 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
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9445
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

...SamplesOCXTest1 - pdf viewing problem

Mensaje 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,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

...SamplesOCXTest1 - pdf viewing problem

Mensaje 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
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

...SamplesOCXTest1 - pdf viewing problem

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

...SamplesOCXTest1 - pdf viewing problem

Mensaje 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
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

...SamplesOCXTest1 - pdf viewing problem

Mensaje 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
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:

...SamplesOCXTest1 - pdf viewing problem

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

...SamplesOCXTest1 - pdf viewing problem

Mensaje 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
Responder