Doc Class

An object encapsulating a Word document.
Hierarchy
SystemObject
  WebSupergoo.WordGlue4Doc

 

Namespace:  WebSupergoo.WordGlue4
Assembly:  WordGlue4 (in WordGlue4.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
public class Doc : IDisposable

The Doc type exposes the following members.

Constructors
  Name Description
Public method Doc
Create a new Doc object.
Public method Doc(Stream)
Create a new Doc object. Parse the document specified as a Stream, into an object ready for rendering.
Public method Doc(String)
Create a new Doc object. Parse the document specified by file name, into an object ready for rendering.
Public method Doc(Stream, String)
Create a new Doc object. Parse the document specified as a Stream and with a type specified using a file name, into an object ready for rendering.
Top
Properties
  Name Description
Public property DocumentFrame
The DocumentFrame comprising the root of the Frame tree.
Public property Fields

Field variable definitions for resolving field codes.

Field definitions are values that can be can be used as a data source when saving a rendered output. They do not reflect the current value of fields within a docx.

You should place your data in this structure and then at the point of render, should fields be found, appropriate values will be pulled from this property.

Use MS Word or similar tools to determine what fields are in your particular document.

Public property Options
Options for loading, parsing and rendering documents.
Public property PageCount
The total number of pages in the document.
Public property Properties
Document properties.
Public property Status
The state in which the current document is in.
Top
Methods
  Name Description
Public method Dispose
Free buffers and other resources used by the document render.
Public method GetPageSize
Obtain the dimensions of a particular page of the document.
Public method Render(Object)
Render all pages to an ABCpdf Doc object.
Public method Render(Object, Int32)
Render a particular page to an ABCpdf Doc object.
Public method Render(IRenderingContext, Int32)
Render the specified page onto the given rendering context.
Public method SaveAs(String)
Save the Word document as a different format.
Public method SaveAs(Stream, String)
Convert the entire Word document into another format.
Public method SaveAs(String, Int32)
Save a specified page of the Word document as a different format.
Public method SaveAs(Stream, String, Int32)
Convert a specified page of the Word document into another format.
Public method SaveAs(String, String, Int32)
Convert a specified page of the Word document into another format.
Public method SetFile
Parse the document specified by file name, into an object ready for rendering.
Public method SetStream(Stream)
Parse the document specified as a Stream, into an object ready for rendering.
Public method SetStream(Stream, String)
Parse the document specified as a Stream and with a type specified using a file name, into an object ready for rendering.
Top
See Also