Spread.Sheets Documentation
qualityFactor Method
GC.Spread.Sheets.Print Namespace > PrintInfo type : qualityFactor Method
The quality factor for printing is a positive integer between 1 and 8. The greater the quality factor, the better the printing quality. When the quality factor is bigger, the printing efficiency is affected.
Gets or sets the quality factor for printing.
Syntax
var instance = new GC.Spread.Sheets.Print.PrintInfo();
var returnValue; // Type: any
returnValue = instance.qualityFactor(value);
function qualityFactor( 
   value : number
) : any;

Parameters

value
The quality factor for printing is a positive integer between 1 and 8. The greater the quality factor, the better the printing quality. When the quality factor is bigger, the printing efficiency is affected.

Return Value

If no value is set, returns the quality factor for printing; otherwise, returns the print setting information.
Example
This example sets the quality factor.
activeSheet.setRowCount(5, GC.Spread.Sheets.SheetArea.viewport);
activeSheet.setColumnCount(5, GC.Spread.Sheets.SheetArea.viewport);

activeSheet.suspendPaint();
            //set value
            for (var r = 0, rc = activeSheet.getRowCount(); r < rc; r++) {
                for (var c = 0, cc = activeSheet.getColumnCount(); c < cc; c++) {
                    activeSheet.setValue(r, c, r + c);
                }
            }
activeSheet.resumePaint();

$("#button1").click(function () {
var printInfo = new GC.Spread.Sheets.Print.PrintInfo();
printInfo.headerLeft("Header Left");
printInfo.qualityFactor(6);
activeSheet.printInfo(printInfo);
spread.print();
   });
See Also

Reference

PrintInfo type