DoNotSaveAsSingleFile class

Office 2013 and later

Defines the DoNotSaveAsSingleFile Class. When the object is serialized out as xml, its qualified name is w:doNotSaveAsSingleFile.

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class DoNotSaveAsSingleFile : OnOffType

[ISO/IEC 29500-1 1st Edition]

doNotSaveAsSingleFile (Recommend Web Page Format over Single File Web Page Format)

This element specifies that applications should recommend that new web page files generated using this WordprocessingML document use a multi-file web page format (HTML), rather than a single-file web page format (MHTML) when this document is saved as an HTML web page. This setting shall not prevent the use of the MHTML format; it shall only cause applications to recommend (via a default) a non single-file format when saving as a web page.

[Note: This setting is primarily intended for applications which explicitly support a "Save as Web Page…" action, in order to determine the default setting for the resulting web page. end note]

[Example: Consider a WordprocessingML document which contains the following content within the web settings part:

  <w:doNotSaveAsSingleFile w:val="true" />

The doNotSaveAsSingleFile element specifies that applications should recommend a multi-file web page format when this document is subsequently saved as a web page. end example]

Parent Elements

webSettings (§

This element’s content model is defined by the common boolean property definition in §17.17.4.

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.