1.04 anywheresoftware.b4a.objects.WorkbookWrapper ReadableWorkbook This library wraps the open source jexcel project. It allows reading and writing Microsoft Excel files. See the tutorial in the forum for more information. jxl.Workbook process Ready (Success As Boolean) Initialize Opens the given workbook in read-only mode. void Dir java.lang.String FileName java.lang.String Close Closes the workbook. void InitializeAsync Opens the file asynchronously. The Ready event will be raised when the workbook is ready. void ba anywheresoftware.b4a.BA EventName java.lang.String Dir java.lang.String FileName java.lang.String GetSheet Gets the sheet at the specified index (first sheet is at index 0). anywheresoftware.b4a.objects.WorkbookWrapper.AbsSheetWrapper.SheetWrapper Index int IsInitialized boolean GetSheetNames Returns an array with the sheets names. java.lang.String[] NumberOfSheets int Returns the number of sheets. Encoding Gets or sets the encoding. Must be set before Initialize is called. java.lang.String anywheresoftware.b4a.objects.WorkbookWrapper.WritableWorkbookWrapper WritableWorkbook jxl.write.WritableWorkbook process Initialize Initializes the output file. <b>The output file will be deleted if it already exists.</b> void Dir java.lang.String FileName java.lang.String Close Closes the workbook. void Write Writes the data to the disk. void GetSheet Gets the sheet at the specified index (first sheet is at index 0). anywheresoftware.b4a.objects.WorkbookWrapper.AbsSheetWrapper.WritableSheetWrapper Index int RemoveSheet Removes the sheet at the given index. void Index int AddSheet Adds a new sheet with the given name and at the specific index. anywheresoftware.b4a.objects.WorkbookWrapper.AbsSheetWrapper.WritableSheetWrapper Name java.lang.String Index int Initialize2 Initializes the output file and creates a copy of the given workbook. <b>The output file will be deleted if it already exists.</b> void Dir java.lang.String FileName java.lang.String Workbook jxl.Workbook IsInitialized boolean GetSheetNames Returns an array with the sheets names. java.lang.String[] NumberOfSheets int Returns the number of sheets. Encoding Gets or sets the encoding. Must be set before Initialize is called. java.lang.String anywheresoftware.b4a.objects.WorkbookWrapper.AbsSheetWrapper.SheetWrapper ReadableSheet jxl.Sheet process ValuesAvailable (Success As Boolean, Rows As List) GetAllAsync Asynchronously retrieves all the values in the sheet. The ValuesAvailable event is raised when the data is ready with a List that holds the data. Each item in the list is an array of strings that represents a single row. void ba anywheresoftware.b4a.BA EventName java.lang.String GetCellValue Returns the string value of the cell at the given column and row. (0, 0) is equivalent to A0. (0, 1) is equivalent to A1. (1, 0) is equivalent to B0. java.lang.String Col int Row int IsInitialized boolean Name java.lang.String Gets the sheet's name. RowsCount int Returns the number of rows. ColumnsCount int Returns the number of columns. anywheresoftware.b4a.objects.WorkbookWrapper.AbsSheetWrapper.WritableSheetWrapper WritableSheet jxl.write.WritableSheet process ValuesAvailable (Success As Boolean, Rows As List) GetAllAsync Asynchronously retrieves all the values in the sheet. The ValuesAvailable event is raised when the data is ready with a List that holds the data. Each item in the list is an array of strings that represents a single row. void ba anywheresoftware.b4a.BA EventName java.lang.String SetRowHeight void Row int Height float AddCell Adds a new cell to the sheet. void Cell jxl.write.WritableCell SetColumnWidth void Col int Width int GetCellValue Returns the string value of the cell at the given column and row. (0, 0) is equivalent to A0. (0, 1) is equivalent to A1. (1, 0) is equivalent to B0. java.lang.String Col int Row int IsInitialized boolean Name java.lang.String v java.lang.String Gets the sheet's name. RowsCount int Returns the number of rows. ColumnsCount int Returns the number of columns. anywheresoftware.b4a.objects.WorkbookWrapper.AbsSheetWrapper.WritableCellWrapper WritableCell jxl.write.WritableCell process InitializeFormula Creates a new WritableCell in the given coordinates and formula. Call WritableSheet.AddCell to add it to the sheet. <code> cell.InitializeFormula(0, 1, "34 + 34") sheet1.AddCell(cell)</code> void Col int Row int Formula java.lang.String InitializeNumber Creates a new WritableCell in the given coordinates and number value. Call WritableSheet.AddCell to add it to the sheet. void Col int Row int Value double SetCellFormat Sets the cell format. Note that you can use the same WritableCellFormat for multiple cells. void CellFormat anywheresoftware.b4a.objects.WorkbookWrapper.AbsSheetWrapper.WritableCellFormatWrapper InitializeText Creates a new WritableCell in the given coordinates and text value. Call WritableSheet.AddCell to add it to the sheet. void Col int Row int Value java.lang.String IsInitialized boolean anywheresoftware.b4a.objects.WorkbookWrapper.AbsSheetWrapper.WritableCellFormatWrapper WritableCellFormat jxl.write.WritableCellFormat process Initialize Creates a new WritableCellFormat with the default settings. void SetBorder Sets the cell's border. Border - One of the BORDER constants. Style - One of the BORDER_STYLE constants. BorderColor - One of the COLOR constants. void Border jxl.format.Border Style jxl.format.BorderLineStyle BorderColor jxl.format.Colour Initialize2 Creates a new WritableCellFormat with the specified font style. Font - One of the FONT constants. FontSize - Default value is 10. Bold - Whether the text should be bold. Underline - Whether the text should be underlined. Italic - Whether the text style should be italic. FontColor - One of the COLOR constants. void Font jxl.write.WritableFont.FontName FontSize int Bold boolean Underline boolean Italic boolean FontColor jxl.format.Colour IsInitialized boolean HorizontalAlignment v jxl.format.Alignment Sets the cell's horizontal alignment. The value should be one of the HALIGN constants. BackgroundColor Clr jxl.format.Colour Sets the cell's background color. The color should be one of the COLOR constants. VertivalAlignment v jxl.format.VerticalAlignment Sets the cell's vertical alignment. The value should be one of the VALIGN constants. COLOR_CORAL jxl.format.Colour COLOR_TEAL2 jxl.format.Colour COLOR_LIGHT_TURQUOISE jxl.format.Colour COLOR_TURQUOISE jxl.format.Colour BORDER_STYLE_DOUBLE jxl.format.BorderLineStyle FONT_ARIAL jxl.write.WritableFont.FontName COLOR_TEAL jxl.format.Colour COLOR_UNKNOWN jxl.format.Colour BORDER_STYLE_DASH_DOT jxl.format.BorderLineStyle COLOR_BLUE jxl.format.Colour COLOR_ROSE jxl.format.Colour COLOR_BLUE_GREY jxl.format.Colour COLOR_BLUE2 jxl.format.Colour COLOR_DARK_BLUE2 jxl.format.Colour COLOR_ORANGE jxl.format.Colour BORDER_BOTTOM jxl.format.Border BORDER_STYLE_THIN jxl.format.BorderLineStyle COLOR_DARK_TEAL jxl.format.Colour COLOR_DARK_BLUE jxl.format.Colour FONT_TIMES jxl.write.WritableFont.FontName COLOR_IVORY jxl.format.Colour COLOR_PINK2 jxl.format.Colour COLOR_BRIGHT_GREEN jxl.format.Colour COLOR_SEA_GREEN jxl.format.Colour COLOR_PINK jxl.format.Colour COLOR_AUTOMATIC jxl.format.Colour COLOR_GREY_50_PERCENT jxl.format.Colour FONT_TAHOMA jxl.write.WritableFont.FontName BORDER_STYLE_MEDIUM_DASHED jxl.format.BorderLineStyle COLOR_GREEN jxl.format.Colour COLOR_BLACK jxl.format.Colour COLOR_TAN jxl.format.Colour BORDER_STYLE_MEDIUM jxl.format.BorderLineStyle VALIGN_JUSTIFY jxl.format.VerticalAlignment VALIGN_TOP jxl.format.VerticalAlignment HALIGN_RIGHT jxl.format.Alignment COLOR_LAVENDER jxl.format.Colour HALIGN_GENERAL jxl.format.Alignment BORDER_STYLE_DASHED jxl.format.BorderLineStyle VALIGN_CENTRE jxl.format.VerticalAlignment BORDER_STYLE_THICK jxl.format.BorderLineStyle BORDER_STYLE_DASH_DOT_DOT jxl.format.BorderLineStyle COLOR_ICE_BLUE jxl.format.Colour BORDER_STYLE_SLANTED_DASH_DOT jxl.format.BorderLineStyle COLOR_LIME jxl.format.Colour COLOR_PLUM jxl.format.Colour COLOR_AQUA jxl.format.Colour COLOR_LIGHT_ORANGE jxl.format.Colour COLOR_GREY_25_PERCENT jxl.format.Colour COLOR_VERY_LIGHT_YELLOW jxl.format.Colour COLOR_GOLD jxl.format.Colour HALIGN_JUSTIFY jxl.format.Alignment BORDER_TOP jxl.format.Border COLOR_BROWN jxl.format.Colour COLOR_TURQOISE2 jxl.format.Colour COLOR_OLIVE_GREEN jxl.format.Colour COLOR_WHITE jxl.format.Colour BORDER_LEFT jxl.format.Border BORDER_STYLE_NONE jxl.format.BorderLineStyle BORDER_RIGHT jxl.format.Border COLOR_PALE_BLUE jxl.format.Colour COLOR_DARK_YELLOW jxl.format.Colour COLOR_DARK_GREEN jxl.format.Colour COLOR_DARK_RED jxl.format.Colour BORDER_STYLE_MEDIUM_DASH_DOT_DOT jxl.format.BorderLineStyle COLOR_PLUM2 jxl.format.Colour COLOR_YELLOW2 jxl.format.Colour COLOR_VIOLET jxl.format.Colour COLOR_GREY_80_PERCENT jxl.format.Colour COLOR_OCEAN_BLUE jxl.format.Colour BORDER_NONE jxl.format.Border VALIGN_BOTTOM jxl.format.VerticalAlignment HALIGN_LEFT jxl.format.Alignment COLOR_SKY_BLUE jxl.format.Colour HALIGN_FILL jxl.format.Alignment HALIGN_CENTRE jxl.format.Alignment COLOR_VIOLET2 jxl.format.Colour COLOR_INDIGO jxl.format.Colour COLOR_LIGHT_TURQUOISE2 jxl.format.Colour COLOR_GREY_40_PERCENT jxl.format.Colour COLOR_DARK_PURPLE jxl.format.Colour COLOR_RED jxl.format.Colour FONT_COURIER jxl.write.WritableFont.FontName COLOR_LIGHT_GREEN jxl.format.Colour BORDER_STYLE_DOTTED jxl.format.BorderLineStyle COLOR_LIGHT_BLUE jxl.format.Colour COLOR_DARK_RED2 jxl.format.Colour BORDER_ALL jxl.format.Border BORDER_STYLE_HAIR jxl.format.BorderLineStyle BORDER_STYLE_MEDIUM_DASH_DOT jxl.format.BorderLineStyle COLOR_PERIWINKLE jxl.format.Colour 1.0 jxl