Solved

Office 2003 Primary Interop Assemblies Save As Filtered Html Problem!

Posted on 2006-07-09
1
390 Views
Last Modified: 2008-03-10
The problem is as follows:

I am using the office 2003 primary interop assemblies to accept a word file that is uploaded to my website and save that word file into html.

To do so, I use the following code:

      object missing = System.Reflection.Missing.Value;
                  object fileName = strFileName;
            object Format = (int)Word.WdSaveFormat.wdFormatFilteredHTML;
                  oDoc.SaveAs(ref fileName, ref Format,ref missing, ref missing,ref missing,ref missing,ref missing,
                        ref missing,ref missing,ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);

This works great accept when the word document has special office formatting in it. When special formatting exists, a window is popped up on the server by the interop assemblies that says:

"Are you sure you wish to save in this format?" with a yes no prompt.

Thus, how do I stop this menu from popping up and ruining the saving as html process. Preferably I would like to disable this option in Microsoft Word itself but a programming solution would be good also.
0
Comment
Question by:simsingh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 17070246
Maybe this will help:

_app.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone;

Bob
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question