473,394 Members | 1,878 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,394 software developers and data experts.

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 1837

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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...

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.