All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aspose.cells.WorkbookRender.html Maven / Gradle / Ivy

There is a newer version: 23.1
Show newest version





WorkbookRender




com.aspose.cells
Class WorkbookRender

java.lang.Object
    extended by com.aspose.cells.WorkbookRender

public class WorkbookRender 
extends java.lang.Object

Represents a Workbook render. The constructor of this class , must be used after modification of pagesetup, cell style.


Constructor Summary
WorkbookRender(Workbook workbook, ImageOrPrintOptions options)
           The construct of WorkbookRender
 
Property Getters/Setters Summary
intgetPageCount()
           Gets the total page count of workbook.
 
Method Summary
float[]getPageSizeInch(int pageIndex)
           Get page size in inch of output image.
voidtoImage(int pageIndex, java.io.OutputStream stream)
           Render certain page to a stream.
voidtoImage(int pageIndex, java.lang.String fileName)
           Render certain page to a file.
voidtoImage(java.io.OutputStream stream)
           Render whole workbook as Tiff Image to stream.
voidtoImage(java.lang.String filename)
           Render whole workbook as Tiff Image to a file.
voidtoPrinter(java.lang.String printerName)
           Render workbook to Printer
voidtoPrinter(java.lang.String printerName, java.lang.String jobName)
           Render workbook to Printer
 

Constructor Detail

WorkbookRender

public WorkbookRender(Workbook workbook, ImageOrPrintOptions options)
               throws java.lang.Exception
The construct of WorkbookRender
Parameters:
workbook - Indicate which workbook to be rendered.
options - ImageOrPrintOptions contains some property of output image

Property Getters/Setters Detail

getPageCount

public int getPageCount()
Gets the total page count of workbook.

Method Detail

getPageSizeInch

public float[] getPageSizeInch(int pageIndex)
Get page size in inch of output image.
Parameters:
pageIndex - The page index is based on zero.
Returns:
Page size of image, [0] for width and [1] for height

toImage

public void toImage(java.io.OutputStream stream)
            throws java.lang.Exception
Render whole workbook as Tiff Image to stream.
Parameters:
stream - the stream of the output image

toImage

public void toImage(java.lang.String filename)
            throws java.lang.Exception
Render whole workbook as Tiff Image to a file.
Parameters:
filename - the filename of the output image

toImage

public void toImage(int pageIndex, java.lang.String fileName)
            throws java.lang.Exception
Render certain page to a file.
Parameters:
pageIndex - indicate which page is to be converted
fileName - filename of the output image

toImage

public void toImage(int pageIndex, java.io.OutputStream stream)
            throws java.lang.Exception
Render certain page to a stream.
Parameters:
pageIndex - indicate which page is to be converted
stream - the stream of the output image

toPrinter

public void toPrinter(java.lang.String printerName)
              throws java.lang.Exception
Render workbook to Printer
Parameters:
printerName - the name of the printer , for example: "Microsoft Office Document Image Writer"

toPrinter

public void toPrinter(java.lang.String printerName, java.lang.String jobName)
              throws java.lang.Exception
Render workbook to Printer
Parameters:
printerName - the name of the printer , for example: "Microsoft Office Document Image Writer"
jobName - set the print job name

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy