473,473 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problems with SHDocVw.InternetExplorerClass

Hi, I'm trying to add a link to the Document Actions window on a smart
document I'm writing. I've followed the instructions on the Smart Doc
SDK's tutorial but it seems that a specific line is failing in a
strange way. Any help getting this to work is appreciated. A
reference to SHDocVw has been included and the namespace is being used.

The code below works as expected with the objNav = new
SHDocVw.InternetExplorerClass(); line commented out, displaying all of
the MessageBoxes in sequence. When I put the line back in, the entire
function fails to execute. Not even MessageBox1 shows up, even when
other controls are invoked.
public void InvokeControl(int ControlID, string ApplicationName,
object Target, string Text, string Xml, int LocaleID)
{
Microsoft.Office.Interop.Word.Range objRange;
objRange = (Microsoft.Office.Interop.Word.Range)Target;
MessageBox.Show("1");

MessageBox.Show("2");
SHDocVw.InternetExplorerClass objNav;
object objTemp = null;

MessageBox.Show(ControlID.ToString());
switch(ControlID)
{
case 1001:
MessageBox.Show("3");
//objNav = new SHDocVw.InternetExplorerClass();
MessageBox.Show("4");
Oct 6 '05 #1
0 1839

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Hautzendorfer | last post by:
Hello, I'm currently working on some printing stuff: I have to print out several .xml files using a stylesheet. Therefor I choose the Internetexplorer PlugIn via SHDocVW. My problem: After...
3
by: Wiktor Zychla | last post by:
I have a problem I cannot solve. My application hosts IE activex control. I follow the standard procedure: I just aximp shdocvw.dll. Note that this gives you two files: axshdocvw.dll and...
2
by: Or Lavy | last post by:
Hi there, As mentioned in message "aximp of shdocvw.dll -> problem with ShellExecute" posted before, aximp creates two files: AxSHDocVW.dll SHDocVW.dll The second has the same name as the...
1
by: Eli Allen | last post by:
So now that MS04-004 is out breaking the ability to pass in a password/username through the URL how can we pass in a username and password using SHDocVw in c#? I'm launching IE like this:...
1
by: Shiro | last post by:
Hi I have read the various postings relating to Interop strong name signing and cannot find an example similar to mine. I have stringly named my AxInterops/Interops and they all work just...
3
by: Jay A. Moritz | last post by:
I have an application that loads IE and iterates through web pages to retrieve information from the page then activates specific controls to retrieve the next page and iterate through that page for...
0
by: Jaime | last post by:
Hi, I'm trying to add a link to the Document Actions window on a smart document I'm writing. I've followed the instructions on the Smart Doc SDK's tutorial but it seems that a specific line is...
4
by: Dick Sutton | last post by:
I am so close, yet oh so far! Here's the problem: I want to load a string variable that contains HTML into an instance of SHDocVw.InternetExplorer. Here's what I have so far: Function...
5
by: SQACSharp | last post by:
I'm trying to automate an action in Internet Explorer.... I'm trying to click an image that open a popup menu. The html code of the iimage look like like <img blabla..OnClick="ShowMenu()"/> I...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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...
0
tracyyun
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...
0
agi2029
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,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
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...

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.