void testFormats(String finpath, String sheetname){
WorkBookHandle tbo = new WorkBookHandle(finpath);
int color = 5, patern = 25;
FormatHandle fmt1 = new FormatHandle(tbo);
fmt1.setFont("Arial",Font.PLAIN,10);
fmt1.setForegroundColor(FormatHandle.COLOR_LIGHT_BLUE);
fmt1.setFontColor(FormatHandle.COLOR_YELLOW);
fmt1.setBackgroundPattern(FormatHandle.PATTERN_HOR_STRIPES3);
FormatHandle fmt2 = new FormatHandle(tbo);
try{
sheet = tbo.getWorkSheet(sheetname);
// TEST BORDERS
CellHandle bordercell = sheet.getCell("C3");
int borderfmt = bordercell.getFormatId();
sheet.add("MODDY BORDER", "A10");
bordercell = sheet.getCell("A10");
FormatHandle fmx = new FormatHandle(tbo);
fmx.setBorderLineStyle(3);
fmx.setBorderTopColor(FormatHandle.COLOR_LIGHT_BLUE);
fmx.setBorderBottomColor(FormatHandle.COLOR_GREEN);
fmx.setBorderLeftColor(FormatHandle.COLOR_YELLOW);
fmx.setBorderRightColor(FormatHandle.COLOR_BLACK);
fmx.addCell(sheet.add("Great new cell!!", "A1"));
fmx.setFont("Courier",Font.BOLD,12);
fmx.setForegroundColor(FormatHandle.COLOR_BRIGHT_GREEN);
fmx.setBackgroundColor(FormatHandle.COLOR_BLUE);
fmx.setFontColor(FormatHandle.COLOR_BLUE);
fmx.setBackgroundPattern(FormatHandle.PATTERN_HOR_STRIPES3);
CellHandle cell1 = null;
sheet.setHeaderText("Extentech Inc.");
sheet.setFooterText("Created by ExtenXLS:" + WorkBookHandle.getVersion());
String addr = "";