Omgili - forum search, search forums  
  

Discussions about ihtmldocument2 object

Displaying 1 - 10 out of 50 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5  
Keep this page open to be updated with the newest discussions automatically.
On Wed, 12 Nov 2008 15:20:49 -0800 (PST), Chris Shearer Cooper <chris.shearer.cooper@gmail.com I've explored this further, and it appears there are some options in the IWebBrowser interface that might be useful (Silent and something called ScriptErrorsSuppressed...
Started by on , 6 posts by 2 people.  
Answer Snippets (Read the full thread at omgili):
Works fine, unless the HTML has some problem and then the object insists object as I mentioned, the reason is that I only want to use its HTML parsing ability, I don't want any windows appearing on the user....
The IHTMLDocument2's DOM.
In Perl, if I have HWND of a window object, how can I get access to that COM object using that handle? I looked at Win32::OLE but the closest I got was the GetActiveObject method, which expects a class.
Started by on , 4 posts by 4 people.  
The basic Windows API, including window handles, predates to get the IHTMLDocument2 pointer....
Get an HWND or location from an Accessible Object and manipulate it with the Windows API: use Win32, because a window is not a COM object.
On Fri, 17 Oct 2008 16:58:13 -0700, sasha <abc@fox.net Hello! I'm a bit confused by the description of this method: bstrHref [in] A BSTR that specifies how to add the style sheet to the document. If a file name is specified for the URL, ...
Started by on , 4 posts by 2 people.  
Answer Snippets (Read the full thread at omgili):
On Fri, 17 Oct 2008 17:11:18 -0700, sasha <abc@fox.net Maybe a better question would be 'how can I add CSS to a document via code and not using any files to load'? tia, .a On Fri, 17 Oct 2008 23:27:44 -0400, "Igor Tandetnik" <itandetnik@... .
Ask your Facebook Friends
I'm creating an IE extension (using VS2008, C++) that needs to react to scrollbar events in IE. I'm using BHO for that and I have access to IWebBrowser2 element, IHTMLDocument2 element and HWND of the parent window. I can't figure out how to access the...
Started by on , 4 posts by 3 people.  
What I would try is: QueryInterface() the IHTMLDocument2 object.
Apply CSS rules to them.
Hello there. I have a MSHTML editor with a IHTMLDocument2. I am trying to insert html at the current position of the caret. This is my code: voidAppendRaw(IHTMLDocument2* doc,const TCHAR* x) { HRESULT hrx = 0; BSTR b = SysAllocString(x); SAFEARRAY* ar...
Started by on , 2 posts by 1 people.  
To work, you must use IHTMLDocument2::get_selection() to get a IHTMLSelectionObject Create a Text Range IDispatch.
For anyone that is interested: IHTMLDocument2::write() does not work properly.
The class mshtml.HTMLDocumentClass in Microsoft.mshtml.dll assembly has a method: public virtual void write(params object[] psarray); Avoiding the real question for a moment, what code would you use to call write() ? Would you use: String html = "<...
Started by on , 3 posts by 3 people.  
It should be: void Write([In, MarshalAs(UnmanagedType.SafeArray)] object[] psarray); You will have.
The declaration for the write method on the IHTMLDocument2 created by TLBIMP/VS.NET is incorrect.
On Wed, 2 Jul 2008 22:15:00 -0700, Hetal <Hetal@discussions.microsoft.com Hi... I want to access the images rendered within iframe. But whever i am trying to access it always gives me "Access Denied" and sometimes "Permission Denied" error. I...
Started by on , 5 posts by 3 people.  
Answer Snippets (Read the full thread at omgili):
; // Here oDoc is the mshtml.HTMLDocument object IntPtr punk = Marshal.GetIUnknownForObject(oDoc); object iOleContainer = new object(); // But this give me null Type typeIOleContainer = this.GetType); ....
I wrote an Active X plugin for IE7 which implements IObjectWithSite besides some other necessary interfaces (note no IOleClient). This interface is queried and called by IE7. During the SetSite() call I retrieve a pointer to IE7's site interface which...
Started by on , 3 posts by 3 people.  
IUnknown *site, IHTMLDocument2 **document2) { HRESULT hr; #ifdef WINCE // Follow path Window2 ->**>(window2)); #else IHTMLWindow2 **window2) { CComPtr<IHTMLDocument2> html_document2; // To hook an event on a page's window ....
It seems that the common theme among SO questions regarding WatiN have to do with actually getting the thing working and I'm no exception. I've downloaded the latest release of WatiN (2.0.20.1089) and am trying to create the NUnit / WatiN equivalent of...
Started by on , 5 posts by 5 people.  
That way.
Your implementation and mine is that I'm running the IE instance as a singleton object.
We are developing an application which needs to interact with the active document in IE. Context: The app is a C#, .Net 3.5 desktop app. The goal is to highlight specific text elements in the web page on user request. For this we need to retrieve and ...
Started by on , 4 posts by 4 people.  
Script([Out, MarshalAs(UnmanagedType.Interface)] out object ppScript); } public object RunScript(InternetExplorer ie, string scriptText) { IHTMLDocument doc = (IHTMLDocument)ie.Document; object", System.Reflection.BindingFlags.InvokeMethod....
Page: 1   2   3   4   5  

Related Message Boards & Forums

  • Stack Overflow
  • Windows Desktop SDK
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost