471,073 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,073 software developers and data experts.

launching Adobe Reader from wxHTMLwindow

I have some html code that is displayed on a wxHTMLwindow in a Python
application. One of the ahref links is to a pdf document. When I
click the link, I get what appears to be some sort of header material
for a pdf document, but Adobe Reader doesn't start. Is there a
special call I will have to use in the HTML code instead of ahref to
get Reader to launch?
Jul 18 '05 #1
2 1731
Greg wrote on 26 May 2004 10:12:59 -0700:
for a pdf document, but Adobe Reader doesn't start. Is there a
special call I will have to use in the HTML code instead of ahref to
get Reader to launch?


You chould subclass wxHtmlWindow and implement the OnLinkClicked methos:
def OnLinkClicked(self, linkinfo):
# do something with linkinfo.GetHref()

That "something" could be a system command to open the Href with the
default app for that file type.

--
Yours,

Andrei

=====
Real contact info (decode with rot13):
ce******@jnanqbb.ay. Fcnz-serr! Cyrnfr qb abg hfr va choyvp cbfgf. V ernq
gur yvfg, fb gurer'f ab arrq gb PP.
Jul 18 '05 #2
Thanks Andrei, I was hoping that I wouldn't have to do that, although
it seems easy enough. It appears to be not an issue now as we're
launching a tab using wxIEHtmlWin for the service documentation, and
Adobe Reader launches from there just by using the *.pdf link.

Andrei <pr******@redrival.net> wrote in message news:<14*****************************@40tude.net>. ..
Greg wrote on 26 May 2004 10:12:59 -0700:
for a pdf document, but Adobe Reader doesn't start. Is there a
special call I will have to use in the HTML code instead of ahref to
get Reader to launch?


You chould subclass wxHtmlWindow and implement the OnLinkClicked methos:
def OnLinkClicked(self, linkinfo):
# do something with linkinfo.GetHref()

That "something" could be a system command to open the Href with the
default app for that file type.

--
Yours,

Andrei

=====
Real contact info (decode with rot13):
ce******@jnanqbb.ay. Fcnz-serr! Cyrnfr qb abg hfr va choyvp cbfgf. V ernq
gur yvfg, fb gurer'f ab arrq gb PP.

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by =?Utf-8?B?SmVycnkgQw==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.