Excel format

thegrosserthegrosser Member Posts: 4
edited 2006-02-06 in Dynamics AX
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

Comments

  • MugurMugur Member Posts: 93
    Hi there,

    I don't know yet either, but can give you a hint were to look for :D . 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.
    Kind regards,

    Ciprian Dudau
    Axapta Developer
  • thegrosserthegrosser Member Posts: 4
    sorry, but i need incode formating .... please help
Sign In or Register to comment.