com.spire.doc.printing
Class PrintDocument

java.lang.Object
  extended by com.spire.ms.Printing.PrintDocument
      extended by com.spire.doc.printing.PrintDocument

public class PrintDocument
extends com.spire.ms.Printing.PrintDocument

Defines a resuable object that sends output to a printer.


Constructor Summary
PrintDocument()
           
 
Method Summary
 PageSettings getDefaultPageSettings()
          Gets page settings that are used as defalts for all pages to be printed.
 boolean getOriginAtMargins()
          Gets a value indicating whether the position of a graphics object associated with a page is located just inside the user-specified margins or at the top-left corner of the printable area of the page.
 PrinterSettings getPrinterSettings()
          Gets the printer that prints the documents.
 void print()
          Starts the document's printing process.
 void setOriginAtMargins(boolean value)
          Sets a value indicating whether the position of a graphics object associated with a page is located just inside the user-specified margins or at the top-left corner of the printable area of the page.
 

Constructor Detail

PrintDocument

public PrintDocument()
Method Detail

setOriginAtMargins

public void setOriginAtMargins(boolean value)
Sets a value indicating whether the position of a graphics object associated with a page is located just inside the user-specified margins or at the top-left corner of the printable area of the page.

Overrides:
setOriginAtMargins in class com.spire.ms.Printing.PrintDocument

getOriginAtMargins

public boolean getOriginAtMargins()
Gets a value indicating whether the position of a graphics object associated with a page is located just inside the user-specified margins or at the top-left corner of the printable area of the page.

Overrides:
getOriginAtMargins in class com.spire.ms.Printing.PrintDocument

print

public void print()
Starts the document's printing process.

Overrides:
print in class com.spire.ms.Printing.PrintDocument

getDefaultPageSettings

public PageSettings getDefaultPageSettings()
Gets page settings that are used as defalts for all pages to be printed.

Overrides:
getDefaultPageSettings in class com.spire.ms.Printing.PrintDocument

getPrinterSettings

public PrinterSettings getPrinterSettings()
Gets the printer that prints the documents.

Overrides:
getPrinterSettings in class com.spire.ms.Printing.PrintDocument