public void setPrintArea(int sheetIndex, int startColumn, int endColumn,int startRow, int endRow) {CellReference cell = new CellReference(startRow, startColumn, true, true);String reference = cell.formatAsString();cell = new CellReference(endRow, endColumn, true, true);reference = reference+":"+cell.formatAsString();setPrintArea(sheetIndex, reference);}

public void SetPrintArea(int sheetIndex, int startColumn, int endColumn,int startRow, int endRow){CellReference cell = new CellReference(startRow, startColumn, true, true);String reference = cell.FormatAsString();cell = new CellReference(endRow, endColumn, true, true);reference = reference + ":" + cell.FormatAsString();SetPrintArea(sheetIndex, reference);}
