Hi!
I'm quite new with Axapta but already familar with Excel export by code. But there is one probleme for which i can't find any solution - format cells (eg. Font, Size, Style[Bold,Italic,...]....)
please provide me any sample code if possible...I already searched the whole Internet without getting any answers on my question.
I'm now that far with the excel export:
static void testjob(Args _args)
{
SysExcelApplication sysexcelapp;
SysExcelWorkbooks workbooks;
SysExcelWorkbook workbook;
SysExcelWorksheets worksheets;
SysExcelWorksheet worksheet;
SysExcelCell cell;
;
workbooks = sysexcelapp.Workbooks();
workbook = workbooks.Add();
worksheets = workbook.worksheets();
worksheet = worksheets.Add();
worksheet.name("test");
cell=sysexcelapp.activeSheet().cells().item(1,1);
cell.value("test");
.....
.....
.....
}
with best greets and hope to get help ..... thegrosser
0
Comments
I don't know yet either, but can give you a hint were to look for . Try Administration\Periodic\Data import/export\Excel spreadsheets\Template wizard.
This is generating templates for tables in Axapta as Excel sheets. I noticed it is also formating the columns/cells as you need. See the code there for details.
Ciprian Dudau
Axapta Developer