473,326 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 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 1803
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jens S0nderby Munk | last post by:
Hi, I'm having some problems with the Reponse.BinaryWrite, IE 6.0 and Adobe Reader 6.0. When I try to write a pdf-file to an IE browser with a Adobe Reader 6.0 installed then it just displays a...
4
by: Greg Miller | last post by:
Currently I am launching adobe reader using the following call: os.system("path.file.pdf") this works fine for opening the pdf doc at the beginning. We would like to enhance this and open the...
1
by: Derrick | last post by:
What's the best way to go about doing this? I see the "Readme" dialog you can add, but that seems like only a small text box to put some .rtf text in. I would like to pop up a somewhat lengthy...
2
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a server 2008 IIS 7.0 with indexing service installed. I have created the catalog and have a test page using these posts:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

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.