Browse by Tags

HOWTO: Using WinAPI FindFirstFile, FindNextNext in Batch Jobs.
13 March 09 02:56 PM | czdaxsup | 1 Comments   
In batch job is not posible to call WinAPI functions WINAPI::FindFirstFile(..) and WINAPI::FindNextFile(...) . This is limited only for code running on client. Sometimes is necesary have similar function for code running on server (or in batches). There Read More...
HOWTO: Sending mail from AX using .NET Framework.
03 December 08 03:08 PM | czdaxsup | 0 Comments   
Sometimes happen that SysMailer class (using CDO) is not the right solution for sending mails with attachments. There is a little sample of X++ Job that is using System.Net.Mail namespace to achieve same. static void JobNETSendMail(Args _args) { System.Net.Mail.MailMessage Read More...
Filed under: , ,
Casting .NET objects in X++
22 October 08 09:44 AM | czdaxsup | 0 Comments   
To cast any .NET object it is necessary to first assign the value you need to cast to an instance of CLRObject and then you can assing the instance of CLR object into an instance you need, like assinging System.Net.WebRequest instance into System.Net.HttpWebRequest Read More...
Filed under: ,
Novinka v AX 2009 - byref - předávání parametrů odkazem pro CLR Interop.
27 August 08 03:20 PM | czdaxsup | 0 Comments   
Novinkou v Dynamics AX 2009 je klíčové slovo byref . To umožní předat odkaz na proměnou do CLR tříd. Třída v .NET musí mit pak před parametrem uvedeno ref . Velmi pěkně zpracované příklady jsou k dispozici na stránkách Read More...
Filed under: , ,
Volání .NET tříd z X++
26 August 08 04:03 PM | czdaxsup | 0 Comments   
Někdy je zapotřebí použít objekty z prostředí .NET. Vytrovřil jsem proto jednoduchou ukázku jak se toho dá dosáhnout v Dynamics AX (4.0 nebo 2009). Nejprve je potřeba vytvořit .NET projekt ve Visual Studiu 2005 (NET Framework Read More...
Filed under: , ,
Práce s MemoryStream v MS Dynamics AX 2009
21 July 08 01:36 PM | czdaxsup | 0 Comments   
Od verze 2009 (5.0) je jižné možné používat nasledující konstrukci ke konverzi .NET objektu MemoryStream do container. V předchozích verzích se stejné muselo řešit cyklem nebo použitím externího DLL. Read More...
Filed under: ,

Search

This Blog

Syndication

Page view tracker