API Reference

Class

WordPackageCompatibility

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word
Modifiers static

Helper methods for manipulating Open XML packages.

Inheritance

  • Object
  • WordPackageCompatibility

Methods

FixPartIfExists(System.IO.Packaging.Package package, System.Uri partUri, System.Boolean removeWordPrefix) #

Updates relationships for the specified part if it exists in the package.

Parameters

package System.IO.Packaging.Package required
Package to modify.
partUri System.Uri required
URI of the relationships part.
removeWordPrefix System.Boolean required
Whether to remove the /word prefix from targets.
FixRelationships(System.IO.Packaging.PackagePart relsPart, System.Boolean removeWordPrefix) #

Fixes relationship targets in the specified relationships part.

Parameters

relsPart System.IO.Packaging.PackagePart required
Relationship part to process.
removeWordPrefix System.Boolean required
Whether to remove the /word prefix from targets.
NormalizeOpenOfficeRelationships 2 overloads
public static Void NormalizeOpenOfficeRelationships(Stream fileStream) #
Returns: Void

Adjusts relationship targets so that the document can be opened by OpenOffice.

Parameters

filePath System.String requiredposition: 0
Path to the document package.
NormalizeOpenOfficeRelationships(System.IO.Stream fileStream) #

Adjusts relationship targets for a document provided as a stream.

Parameters

fileStream System.IO.Stream required
Stream containing the document package.