Is it possible, on a WebBrowser control, to intercept a HyperLink and react
programmaticall y to this click ?
That's my first question.
In fact, I use the Webbrowser as a sort of report (I write the html code and
tables programmaticall y in a string, and I give the string to the property
DocumentText of the WebBrowser, and I insert in this code some Hyperlinks by
wich I could react, launching an specific action)
The properties ShowPrintPrevie wDialog and others 'Show...' properties of the
WebControl are very interresting, and sometimes better then using true
Reports or CrystalReports
The second question is : is there a document somewhere who discuss on this
subject, comparing CrystalReports and use of WebBrowser in their function of
showing reports ? I try to explore this way.
Thanks for your response 9 3172
Hi Philip
You can handle the BeforeNavigate2 () event and do your own thing.
HTH
Charles
"philip" <ph**@philippe. com> wrote in message
news:44******** **************@ news.wanadoo.fr ... Is it possible, on a WebBrowser control, to intercept a HyperLink and react programmaticall y to this click ? That's my first question.
In fact, I use the Webbrowser as a sort of report (I write the html code and tables programmaticall y in a string, and I give the string to the property DocumentText of the WebBrowser, and I insert in this code some Hyperlinks by wich I could react, launching an specific action) The properties ShowPrintPrevie wDialog and others 'Show...' properties of the WebControl are very interresting, and sometimes better then using true Reports or CrystalReports
The second question is : is there a document somewhere who discuss on this subject, comparing CrystalReports and use of WebBrowser in their function of showing reports ? I try to explore this way.
Thanks for your response
I don't discover this event in WebBrowser.
I have Visual Studio 2005.
Is it normal ?
Must I have a reference ?
Thanks for your help
Philip
"Charles Law" <bl***@nowhere. com> a écrit dans le message de news:
%2************* ***@TK2MSFTNGP1 0.phx.gbl... Hi Philip
You can handle the BeforeNavigate2 () event and do your own thing.
HTH
Charles
"philip" <ph**@philippe. com> wrote in message news:44******** **************@ news.wanadoo.fr ... Is it possible, on a WebBrowser control, to intercept a HyperLink and react programmaticall y to this click ? That's my first question.
In fact, I use the Webbrowser as a sort of report (I write the html code and tables programmaticall y in a string, and I give the string to the property DocumentText of the WebBrowser, and I insert in this code some Hyperlinks by wich I could react, launching an specific action) The properties ShowPrintPrevie wDialog and others 'Show...' properties of the WebControl are very interresting, and sometimes better then using true Reports or CrystalReports
The second question is : is there a document somewhere who discuss on this subject, comparing CrystalReports and use of WebBrowser in their function of showing reports ? I try to explore this way.
Thanks for your response
I don't discover this event in WebBrowser.
I have Visual Studio 2005.
Is it normal ?
Must I ADD a reference ?
Thanks for your help
Philip
"Charles Law" <bl***@nowhere. com> a écrit dans le message de news:
%2************* ***@TK2MSFTNGP1 0.phx.gbl... Hi Philip
You can handle the BeforeNavigate2 () event and do your own thing.
HTH
Charles
"philip" <ph**@philippe. com> wrote in message news:44******** **************@ news.wanadoo.fr ... Is it possible, on a WebBrowser control, to intercept a HyperLink and react programmaticall y to this click ? That's my first question.
In fact, I use the Webbrowser as a sort of report (I write the html code and tables programmaticall y in a string, and I give the string to the property DocumentText of the WebBrowser, and I insert in this code some Hyperlinks by wich I could react, launching an specific action) The properties ShowPrintPrevie wDialog and others 'Show...' properties of the WebControl are very interresting, and sometimes better then using true Reports or CrystalReports
The second question is : is there a document somewhere who discuss on this subject, comparing CrystalReports and use of WebBrowser in their function of showing reports ? I try to explore this way.
Thanks for your response
Philip,
Using the 2005 WB, this event is called "navigating ."
--
Colin Neller http://www.colinneller.com/blog
"philip" <ph**@philippe. com> wrote in message
news:44******** *************** @news.wanadoo.f r... I don't discover this event in WebBrowser. I have Visual Studio 2005. Is it normal ? Must I have a reference ?
Thanks for your help
Philip
"Charles Law" <bl***@nowhere. com> a écrit dans le message de news: %2************* ***@TK2MSFTNGP1 0.phx.gbl... Hi Philip
You can handle the BeforeNavigate2 () event and do your own thing.
HTH
Charles
"philip" <ph**@philippe. com> wrote in message news:44******** **************@ news.wanadoo.fr ... Is it possible, on a WebBrowser control, to intercept a HyperLink and react programmaticall y to this click ? That's my first question.
In fact, I use the Webbrowser as a sort of report (I write the html code and tables programmaticall y in a string, and I give the string to the property DocumentText of the WebBrowser, and I insert in this code some Hyperlinks by wich I could react, launching an specific action) The properties ShowPrintPrevie wDialog and others 'Show...' properties of the WebControl are very interresting, and sometimes better then using true Reports or CrystalReports
The second question is : is there a document somewhere who discuss on this subject, comparing CrystalReports and use of WebBrowser in their function of showing reports ? I try to explore this way.
Thanks for your response
Perhaps the event 'Navigating' replace the 'BeforeNavigate 2' event ?
I can use e.Cancel to cancel and do my own thing.
But now, how can I know which HyperLink has been clicked ?
Thanks for help, Charles.
Philip
"Charles Law" <bl***@nowhere. com> a écrit dans le message de news:
%2************* ***@TK2MSFTNGP1 0.phx.gbl... Hi Philip
You can handle the BeforeNavigate2 () event and do your own thing.
HTH
Charles
"philip" <ph**@philippe. com> wrote in message news:44******** **************@ news.wanadoo.fr ... Is it possible, on a WebBrowser control, to intercept a HyperLink and react programmaticall y to this click ? That's my first question.
In fact, I use the Webbrowser as a sort of report (I write the html code and tables programmaticall y in a string, and I give the string to the property DocumentText of the WebBrowser, and I insert in this code some Hyperlinks by wich I could react, launching an specific action) The properties ShowPrintPrevie wDialog and others 'Show...' properties of the WebControl are very interresting, and sometimes better then using true Reports or CrystalReports
The second question is : is there a document somewhere who discuss on this subject, comparing CrystalReports and use of WebBrowser in their function of showing reports ? I try to explore this way.
Thanks for your response
But now, how can I know which HyperLink has been clicked ?
Thanks for help, Colin.
Philip
"Colin Neller" <cn*****@gmail. com> a écrit dans le message de news:
u6************* ***@TK2MSFTNGP1 1.phx.gbl... Philip,
Using the 2005 WB, this event is called "navigating ."
-- Colin Neller http://www.colinneller.com/blog
"philip" <ph**@philippe. com> wrote in message news:44******** *************** @news.wanadoo.f r...I don't discover this event in WebBrowser. I have Visual Studio 2005. Is it normal ? Must I have a reference ?
Thanks for your help
Philip
"Charles Law" <bl***@nowhere. com> a écrit dans le message de news: %2************* ***@TK2MSFTNGP1 0.phx.gbl... Hi Philip
You can handle the BeforeNavigate2 () event and do your own thing.
HTH
Charles
"philip" <ph**@philippe. com> wrote in message news:44******** **************@ news.wanadoo.fr ... Is it possible, on a WebBrowser control, to intercept a HyperLink and react programmaticall y to this click ? That's my first question.
In fact, I use the Webbrowser as a sort of report (I write the html code and tables programmaticall y in a string, and I give the string to the property DocumentText of the WebBrowser, and I insert in this code some Hyperlinks by wich I could react, launching an specific action) The properties ShowPrintPrevie wDialog and others 'Show...' properties of the WebControl are very interresting, and sometimes better then using true Reports or CrystalReports
The second question is : is there a document somewhere who discuss on this subject, comparing CrystalReports and use of WebBrowser in their function of showing reports ? I try to explore this way.
Thanks for your response
> Perhaps the event 'Navigating' replace the 'BeforeNavigate 2' event ? I can use e.Cancel to cancel and do my own thing.
That is correct. The 2005 WB changes the event name to "Navigating "
But now, how can I know which HyperLink has been clicked ?
It would help to know exactly what you're trying to do. If you need to know
the specific anchor tag that was clicked, then you'll actually need to sink
the events from the HTMLDocument its self and capture the "onclick" event
rather than the "Navigating " event.
--
Colin Neller http://www.colinneller.com/blog
Ok, I found.
I use e.Url
Thanks for you help
Philip
"Colin Neller" <cn*****@gmail. com> a écrit dans le message de news:
u6************* ***@TK2MSFTNGP1 1.phx.gbl... Philip,
Using the 2005 WB, this event is called "navigating ."
-- Colin Neller http://www.colinneller.com/blog
"philip" <ph**@philippe. com> wrote in message news:44******** *************** @news.wanadoo.f r...I don't discover this event in WebBrowser. I have Visual Studio 2005. Is it normal ? Must I have a reference ?
Thanks for your help
Philip
"Charles Law" <bl***@nowhere. com> a écrit dans le message de news: %2************* ***@TK2MSFTNGP1 0.phx.gbl... Hi Philip
You can handle the BeforeNavigate2 () event and do your own thing.
HTH
Charles
"philip" <ph**@philippe. com> wrote in message news:44******** **************@ news.wanadoo.fr ... Is it possible, on a WebBrowser control, to intercept a HyperLink and react programmaticall y to this click ? That's my first question.
In fact, I use the Webbrowser as a sort of report (I write the html code and tables programmaticall y in a string, and I give the string to the property DocumentText of the WebBrowser, and I insert in this code some Hyperlinks by wich I could react, launching an specific action) The properties ShowPrintPrevie wDialog and others 'Show...' properties of the WebControl are very interresting, and sometimes better then using true Reports or CrystalReports
The second question is : is there a document somewhere who discuss on this subject, comparing CrystalReports and use of WebBrowser in their function of showing reports ? I try to explore this way.
Thanks for your response
I found e.Url in the event Navigating.
I can know which hyperlink was clicked.
Thank you for your help, sincerely.
Philip
"Colin Neller" <cn*****@gmail. com> a écrit dans le message de news: ua************* *@TK2MSFTNGP12. phx.gbl... Perhaps the event 'Navigating' replace the 'BeforeNavigate 2' event ? I can use e.Cancel to cancel and do my own thing. That is correct. The 2005 WB changes the event name to "Navigating "
But now, how can I know which HyperLink has been clicked ? It would help to know exactly what you're trying to do. If you need to know the specific anchor tag that was clicked, then you'll actually need to sink the events from the HTMLDocument its self and capture the "onclick" event rather than the "Navigating " event. -- Colin Neller http://www.colinneller.com/blog This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jim Hubbard |
last post by:
How would I implement the IDispatch interface to handle the following in
VB.Net
<BEGIN>
Controlling Download and Execution
The WebBrowser Control gives you control over what it downloads, displays,
and executes. To gain this control, you need to implement your host's
IDispatch so it handles DISPID_AMBIENT_DLCONTROL. When the WebBrowser
Control is instantiated, it will call your IDispatch::Invoke with this ID.
Set pvarResult to a...
|
by: SPE - Stani's Python Editor |
last post by:
Hi,
During optimizing SPE for Ubuntu, I found something strange. I have
Ubuntu 5.10 "The Breezy Badger" and unfortunately this code is not
working:
>>> import webbrowser
>>> webbrowser.open("http://www.python.org")
It does not throw an exception, but is not able to launch a browser.
|
by: Alex Clark |
last post by:
Greetings,
(.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs).
I've decided to take advantage of the layout characteristics of HTML
documents to simplify my printing tasks, but of course it's thrown up a
whole host of new issues...
I'm generating a multi page printable document in HTML from my app, and
displaying it in a WebBrowser control. I've looked into using some CSS
|
by: Prosperz |
last post by:
Hi,
I would like to make thumbnails of web page by capture content of a
WebBrowser. By example, capture http://www.google.com.
I used WebBrowser control with Framework 2.0.
I try this :
*************************************************
|
by: Dustan |
last post by:
At http://docs.python.org/whatsnew/modules.html on the webbrowser
module, it says "A number of additional browsers were added to the
supported list such as Firefox, Opera, Konqueror, and elinks."
I just installed python 2.5, looking forward to being able to control
firefox without having to make it my default browser, but...
I don't seem to have that functionality. In IDLE:
{'windows-default': }
| |
by: Anil Gupte |
last post by:
....and how do I insert one into my form? I used in VB 6.0 last, but cannot
figure out where it is in .Net
Thanx,
--
Anil Gupte
www.keeninc.net
www.icinema.com
|
by: Zytan |
last post by:
I have multiple threads writing to WebBrowser (using a function that
checks InvokedRequired, and if so, invokes itself on the WebBrowser
thread) and they are getting deadlocked.
They only deadlock when I use lock { } around the call to
WebBrowser.Write to ensure thread safety!
Does any one have experience with such a thing?
Zytan
|
by: Gregory Bloom |
last post by:
I'm running Python 2.5 under Windows. If I fire up IDLE and enter:
it works like a champ, opening the page in Firefox. Same thing goes
from a Windows cmd shell: it works as advertised.
But if I open a cygwin bash shell and try the same thing from a python
prompt, I get:
Traceback (most recent call last):
|
by: kimiraikkonen |
last post by:
Hi there,
I needed to use MouseOver event on Webbrowser which is NOT provided by
webbrowser control natively(what a disappointment), so i decided to go
with another route to simulate this like:
////////////////////////////////////////////////
Public Sub DisplayHyperlinks(ByVal sender As Object, ByVal e As
System.Windows.Forms.HtmlElementEventArgs)
|
by: TedTrippin |
last post by:
Hi,
Background - I've create a windows application in VS and added a WebBrowser component and all works well.
I'm now trying to do this programmatically. My application now listens on a socket and when it receives a request it creates a new Form and adds a new WebBrowser.
The problem - All works well without the WebBrowser, the form is visible, but when I do "Controls.Add(webBrowser)" I see nothing, not even something in the windows...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |