Hi Alexey,
Thanks for ur immediate response.
Im aware of the LS2J concept, but for just creating word\excel report calling a java agent is not a good technique. Instead I want the Aspose API's to be used directly in Lotus script.
I have a sample code in lotus script that uses Aspose. Now I want to enhance that code for formatting the texts in the cells. (Note: The first stage is about creating reports so Im concentrating on excel.)
Please find below the code snippet:
Sub Initialize
Set license = CreateObject("Aspose.Cells.License")
Call license.SetLicense("D:\Aspose\Aspose.NET\Aspose.Total.lic")
Dim ExcelWb As Variant
Set ExcelWb = CreateObject("Aspose.Cells.Workbook")
Dim sheets As Variant
Set sheets = ExcelWb.worksheets
'Set sheets = ExcelWb.Open("c:\Test.xls")
Dim sheet As Variant
Set sheet = ExcelWb.worksheets.item(0)
Dim cells As Variant
Set cells = sheet.cells
Dim cell As Variant
Dim flag As Variant
Dim stl1 As Variant
For i = 0 To 3
Set cell = cells.item_2(0,i)
Call cell.PutValue_4("Field" + Cstr(i + 1), True)
Next
'Set stl1 = ExcelWb.Styles()
'Call stl1.setColor_2(Color.RED)
For i = 1 To 10
For j = 0 To 3
Set cell = cells.item_2(i, j)
Call cell.PutValue_4(Cstr(i * j), True)
'Call cell.setStyle_4(stl1)
Next
Next
'Call cells.item_2("N3").PutValue_4("Biscuits")
'ExcelWb.Visible
ExcelWb.Save_4("c:\Test.xls")
End Sub
Im not sure on the exact classes and methods in Aspose.Cells that can be used in Lotus script. Please let me know if there is any link or documents to know the same.
Hope u got my requirement.
Thanks.