public static void main(Args _args)
{
Commaio file;
container line;
InventTable inventTable;
#define.filename("C:\\dpk_Items.csv")
#File
;
file = new Commaio(#filename , #io_write); or file = new Commaio(#filename , 'W');
//file.outFieldDelimiter(';');
if( !file || file.status() != IO_Status::Ok)
{
throw error("File Cannot be opened");
}
while select inventTable
{
line = [inventTable.ItemId,inventTable.ItemName];
file.writeExp(line);
}
}
As per this you can save the document in any format such as doc,txt,xls only.
Saturday, October 13, 2012
How export data to csv file in Ax 2009
Subscribe to:
Post Comments (Atom)
How to identify the user that was used to change an object from AOT in AX2012
Get the object name for which we need to track these (user and date&time) information's. Login to SQL Server Management Studio an...
-
Combo boxes in Dialogs are added by adding a DialogField object with the type of an enum. The enum is then controlling what items you can pi...
-
This article explains: How to picking list through a job using X++ in Dynamics AX. Applied on: Dynamics AX 2009 SP1 Create a job a...
-
A while ago I had the need to translate labels, I was creating eMail bodys while using SysMailer and wanted to use different languages for d...
No comments:
Post a Comment