Solved

Office 2003 Primary Interop Assemblies Save As Filtered Html Problem!

Posted on 2006-07-09
1
387 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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