Solved

Office 2003 Primary Interop Assemblies Save As Filtered Html Problem!

Posted on 2006-07-09
1
374 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
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
Comment Utility
Maybe this will help:

_app.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone;

Bob
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now