?
Solved

Office 2003 Primary Interop Assemblies Save As Filtered Html Problem!

Posted on 2006-07-09
1
Medium Priority
?
402 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 2000 total points
ID: 17070246
Maybe this will help:

_app.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone;

Bob
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

801 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