API Reference
Class
WordPackageCompatibility
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
- Package to modify.
- partUri System.Uri
- URI of the relationships part.
- removeWordPrefix System.Boolean
- 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
- Relationship part to process.
- removeWordPrefix System.Boolean
- Whether to remove the /word prefix from targets.
NormalizeOpenOfficeRelationships 2 overloads
public static Void NormalizeOpenOfficeRelationships(Stream fileStream) #Returns:
VoidAdjusts relationship targets so that the document can be opened by OpenOffice.
Parameters
- filePath System.String
- 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
- Stream containing the document package.