EasyPDF Java SDK
v5.1

com.bcl.easypdf.EasyPDFPrinter
Class IExcelPrintJob

java.lang.Object
  extended by com.bcl.easypdf.EasyPDFPrinter.IPrintJob
      extended by com.bcl.easypdf.EasyPDFPrinter.IExcelPrintJob

public class IExcelPrintJob
extends IPrintJob

In addition to inheriting all features from class IPrintJob, this class offers features specific to Excel. Use an IExcelPrintJob object, instead of a generic PrintJob object, to set Excel specific options.

See Also:
IPrintJob

Method Summary
 boolean getPrintAllSheets()
          If this method returns true, all Excel worksheets will be printed; otherwise, only the active worksheet will be printed, the default behavior.
 boolean getReadOnly()
           
 void setDocumentPassword(java.lang.String newVal)
          Sets a password for printing a password protected Excel document.
 void setFitToPagesTall(int Pages)
           
 void setFitToPagesWide(int Pages)
           
 void setMarginBottom(double newVal)
          Sets bottom margin.
 void setMarginLeft(double newVal)
          Sets left margin.
 void setMarginRight(double newVal)
          Sets right margin.
 void setMarginTop(double newVal)
          Sets top margin.
 void setPaperOrientation(int EprnPaperOrientation)
          Sets paper orientation.
 void setPaperSize(int EprnMsoPaperSize)
          Sets paper size.
 void setPrintAllSheets(boolean newVal)
          To print all Excel worksheets, call this method with newVal set to true; to print only the active worksheet, call this method with newVal set to false.
 void setReadOnly(boolean newVal)
           
 void setZoom(int Percent)
           
 
Methods inherited from class com.bcl.easypdf.EasyPDFPrinter.IPrintJob
getBannerMessage, getConversionResult, getConversionResultMessage, getFileConversionTimeout, getInitializationTimeout, getMakeTempCopyOfInput, getPageConversionTimeout, getPDFSetting, getPrinterResult, getPrinterResultMessage, PrintOut, PrintOut2, PrintOut3, setBannerMessage, setFileConversionTimeout, setInitializationTimeout, setMakeTempCopyOfInput, setPageConversionTimeout, setPageFrom, setPageTo, setSignatureDigitalIDPassword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPrintAllSheets

public boolean getPrintAllSheets()
                          throws EasyPDFException
If this method returns true, all Excel worksheets will be printed; otherwise, only the active worksheet will be printed, the default behavior.

Throws:
EasyPDFException

setPrintAllSheets

public void setPrintAllSheets(boolean newVal)
                       throws EasyPDFException
To print all Excel worksheets, call this method with newVal set to true; to print only the active worksheet, call this method with newVal set to false.

Throws:
EasyPDFException

setMarginLeft

public void setMarginLeft(double newVal)
                   throws EasyPDFException
Sets left margin.

Parameters:
newVal - New left margin in inches
Throws:
EasyPDFException

setMarginTop

public void setMarginTop(double newVal)
                  throws EasyPDFException
Sets top margin.

Parameters:
newVal - New top margin in inches
Throws:
EasyPDFException

setMarginRight

public void setMarginRight(double newVal)
                    throws EasyPDFException
Sets right margin.

Parameters:
newVal - New right margin in inches
Throws:
EasyPDFException

setMarginBottom

public void setMarginBottom(double newVal)
                     throws EasyPDFException
Sets bottom margin.

Parameters:
newVal - New bottom margin in inches
Throws:
EasyPDFException

setPaperOrientation

public void setPaperOrientation(int EprnPaperOrientation)
                         throws EasyPDFException
Sets paper orientation.

Parameters:
EprnPaperOrientation - New paper orientation defined in interface prnPaperOrientation
Throws:
EasyPDFException
See Also:
prnPaperOrientation

setPaperSize

public void setPaperSize(int EprnMsoPaperSize)
                  throws EasyPDFException
Sets paper size.

Throws:
EasyPDFException

setDocumentPassword

public void setDocumentPassword(java.lang.String newVal)
                         throws EasyPDFException
Sets a password for printing a password protected Excel document.

Parameters:
newVal - New password
Throws:
EasyPDFException

setZoom

public void setZoom(int Percent)
             throws EasyPDFException
Throws:
EasyPDFException

setFitToPagesWide

public void setFitToPagesWide(int Pages)
                       throws EasyPDFException
Throws:
EasyPDFException

setFitToPagesTall

public void setFitToPagesTall(int Pages)
                       throws EasyPDFException
Throws:
EasyPDFException

getReadOnly

public boolean getReadOnly()
                    throws EasyPDFException
Throws:
EasyPDFException

setReadOnly

public void setReadOnly(boolean newVal)
                 throws EasyPDFException
Throws:
EasyPDFException

EasyPDF Java SDK
v5.1

Copyright 2007 BCL Technologies. All rights reserved.