Package com.aspose.cells

Examples of com.aspose.cells.Workbook.save()


    //Copy data to a new sheet from an existing
    //sheet within the Workbook.
    sheets.addCopy("Sheet1");

    //Save the excel file.
    wb.save("data/AsposeCopyWorkbook.xls");
   
    System.out.println("Sheet copied successfully."); // Print Message
  }
}
View Full Code Here


        worksheet2.moveTo(0);
        worksheet1.moveTo(1);
        worksheet3.moveTo(2);

    //Save the excel file.
        workbook.save("data/AsposeMoveSheet.xls");
   
    System.out.println("Sheet moved successfully."); // Print Message
  }
}
View Full Code Here

    //Setting the zoom factor of the worksheet to 75    
    worksheet.setZoom(75);

    //Saving the modified Excel file in default format
    workbook.save("data/AsposeZoom.xls");
   
    System.out.println("Aspose Zoom Created.");
  }
}
View Full Code Here

   
    //Input data into C6 Cell.
    worksheet.getCells().get(5,2).setValue("This is a test of merging");
   
    //Save the Workbook.
    wbk.save("data/merge_Aspose.xls");
   
    // Print message
    System.out.println("Process completed successfully");
  }
}
View Full Code Here

  public static void main(String[] args) throws Exception
  {
    Workbook workbook = new Workbook(); // Creating a Workbook object

    //Workbooks can be saved in many formats
    workbook.save("data/newWorkBook_Aspose.xlsx", FileFormatType.XLSX);

    System.out.println("Worksheets are saved successfully."); // Print Message
  }
}
View Full Code Here

    //Saving the modified style to the "A1" cell.
    cell.setStyle(style);

    //Saving the Excel file
    workbook.save("data/AsposeBorders.xls");

    System.out.println("Aspose Borders Created.");
  }
}
View Full Code Here

    //Adding a new worksheet to the Workbook object
    WorksheetCollection worksheets = workbook.getWorksheets();
    Worksheet worksheet = worksheets.add("My Worksheet");

    //Saving the Excel file
        workbook.save("data/newWorksheet_Aspose.xls");
       
        //Print Message
        System.out.println("Sheet added successfully.");
  }
}
View Full Code Here

    // Specifying the cells range (from A1 cell to F20 cell) of the print area
    pageSetup.setPrintArea("A1:F20");

    // Workbooks can be saved in many formats
    workbook.save("data/AsposePrintArea.xlsx", FileFormatType.XLSX);

    System.out.println("Print Area Set successfully."); // Print Message
  }
}
View Full Code Here

    //font.setSubscript(true);

    cell.setStyle(style);

    //Saving the modified Excel file in default format
    workbook.save("data/AsposeFonts.xls");
   
    System.out.println("Aspose Fonts Created.");
  }
}
View Full Code Here

        //Applying freeze panes settings
        worksheet1.freezePanes(0,2,0,2); // Freezing Columns
        worksheet2.freezePanes(2,0,2,0); // Freezing Rows    

        //Saving the modified Excel file in default format
        workbook.save("data/workbook_Aspose.xls");
       
        //Print Message
        System.out.println("Panes freeze successfull.");
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.