Forums     Knowledge Base     OfficeWriter Online     
 
 
This documentation is for
OfficeWriter v3.8.1
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > WordApplication API > CompatibilitySettings

The CompatibilitySettings Object


This class contains various settings so imported documents from other versions of Word and competing products will look the way they were intended to.

You cannot create a CompatibilitySettings object using the new keyword. You must get an existing CompatibilitySettings object from a Document.

The following sample gets the CompatibilitySettings of a document so you can start working with these properties.



Examples:

[csharp]
WordApplication app = new WordApplication();
 Document doc = app.Create();
 CompatibilitySettings cs = doc.CompatibilitySettings;
[vbnet]
Dim app As New WordApplication()
 Dim doc As Document = app.Create()
 Dim cs As CompatibilitySettings = doc.CompatibilitySettings


CompatibilitySettings Properties

Property Type Access Description
AdjustTableLineHeight boolean read
write

Sets or returns a boolean that represents whether or not Word will auto-adjust line height in Tables in this document

AlignRowsIndependent boolean read
write

Sets or returns a boolean that represents whether or not Word will align table rows independently of one another in this document

AllowLeading boolean read
write

Sets or returns a boolean that represents whether or not Word will add leading (extra space) between rows of text in this document

AllowSnapInCells boolean read
write

Sets or returns a boolean that represents whether or not Word will snap text to grid while in a table with inline objects in this document

AllowTableBreaks boolean read
write

Sets or returns a boolean that represents whether or not Word will allow tables to break across pages in this document

ApplyBreakingRules boolean read
write

Sets or returns a boolean that represents whether or not Word will apply breaking rules in this document

AutospaceLike95 boolean read
write

Sets or returns a boolean that represents whether or not Word will auto space like Word 95 in this document

BalanceColumns boolean read
write

Sets or returns a boolean that represents whether or not Word will balance columns for continuous section starts in this document

BorderRulesLike6 boolean read
write

Sets or returns a boolean that represents whether or not Word should use Word 6 border rules for this document

ConvertMailMergeEsc boolean read
write

Sets or returns a boolean that represents whether or not Word will treat \" as "" in mail merge data sources in this document

ExactOnTop boolean read
write

Sets or returns a boolean that represents whether or not Word will center "exact line height" lines in this document

ExpandShiftReturn boolean read
write

Sets or returns a boolean that represents whether or not Word will expand character spaces on the line ending in SHIFT + RETURN in this document

FootnotesLike97 boolean read
write

Sets or returns a boolean that represents whether or not Word will layout footnotes like Word 97 in this document

GrowTableAutoFit boolean read
write

Sets or returns a boolean that represents whether or not Word will allow autofit tables to extend into the margins when in print layout for this document

JustifyLikeWP6 boolean read
write

Sets or returns a boolean that represents whether or not Word will do full justification like WordPerfect 6 for this document

LeaveBackslashAlone boolean read
write

Sets or returns a boolean that represents if Word will not convert '\' characters into Yen signs in this document

LineBreaksLike97 boolean read
write

Sets or returns a boolean that represents whether or not Word will use line breaking rules from Word 97 for East Asian text in this document

LineWrapLike6 boolean read
write

Sets or returns a boolean that represents whether or not Word will wrap lines like Word 6 for this document

MapPrintColor boolean read
write

Sets or returns a boolean that represents whether or not Word will print colors in this document as black on non-color printers

MirrorMargins boolean read
write

Sets or returns a boolean that represents whether or not Word will swap margins on left/right pages

NoSpaceForRaisedLower boolean read
write

Sets or returns a boolean that represents if Word will not add extra space raised or lowered characters

NoTabForIndent boolean read
write

Sets or returns a boolean that represents if Word will not add automatic tab stops for a hanging indent

ShapesLike97 boolean read
write

Sets or returns a boolean that represents whether or not Word will layout auto shapes like Word 97 for this document

ShowBreaksInFrames boolean read
write

Sets or returns a boolean that represents whether or not Word will show hard page or column breaks in frames

SnapPageBorder boolean read
write

Sets or returns a boolean that represents whether or not Word will snap table and page borders to the page border in this document

SpaceLikeWP5 boolean read
write

Sets or returns a boolean that represents whether or not Word will calculate the width of a space like WordPerfect 5 for this document

SubBasedOnSize boolean read
write

Sets or returns a boolean that represents whether or not Word will replace fonts based on size in this document

SuppressExtraAfter boolean read
write

Sets or returns a boolean that represents whether or not Word will supress extra line spacing at the bottom of the page for this document

SuppressSpaceAfterPageBreak boolean read
write

Sets or returns a boolean that represents whether or not Word will suppress paragraph space before and space after options after a page break in this document

SuppressSpacingLike5 boolean read
write

Sets or returns a boolean that toggles the suppression of line spacing like Word 5 for Mac

SuppressSpacingLikeWP boolean read
write

Sets or returns a boolean that toggles the suppression of line spacing like WordPerfect

SupressTopSpacing boolean read
write

Sets or returns a boolean that represents whether or not Word will suppress line spacing at the top of the page in this document

SwapBorders boolean read
write

Sets or returns a boolean that represents whether or not Word will swap left and right borders on odd facing pages in this document

TableRowsApart boolean read
write

Sets or returns a boolean that represents whether or not Word will allow table rows to be layed out apart from one another in this document

TruncateFontHeight boolean read
write

Sets or returns a boolean that represents whether or not Word will truncate font heights for this document

UnderlineTrailingSpaces boolean read
write

Sets or returns a boolean that represents whether or not Word will underline trailing spaces for this document

UseAsianBreakingRules boolean read
write

Sets or returns a boolean that represents whether or not Word will use Asian breaking rules for this document

UseLargerSmallCaps boolean read
write

Sets or returns a boolean that represents whether or not Word will use larger small capitalization like Word 5 for Mac for this document

UsePrinterMetrics boolean read
write

Sets or returns a boolean that represents whether or not Word will use printer metrics to lay out this document

UseTableRawWidth boolean read
write

Sets or returns a boolean that represents whether or not Word will lay out tables using their raw width in this document

UseTableStylesLike2002 boolean read
write

Sets or returns a boolean that represents whether or not Word will use table styles like Word 2002

WrapTextWithPunct boolean read
write

Sets or returns a boolean that represents whether or not Word will wrap text with punctuation in this document

WrapTrailingSpaces boolean read
write

Sets or returns a boolean that represents whether or not Word will wrap trailing spaces at the end of a line in this document



This object does not have any methods defined.



Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.