Handling .Net exceptions with X++

In my last blog I was talking about casting CLR-objects in X++. In the code example you might have noticed the following code: 1: catch(Exception::CLRError) 2: { 3: //we’ll discuss this later… 4: } Well, handling CLR-objects isn’t that easy. But fortunately you can find examples in Ax (for example in SysWorkflowHelper/validateWorkflowRuntimeURL) like the following…

1

Casting CLR-objects with X++

Casting CLR-objects with X++ isn’t that obvious as it is in .Net languages as C# or even VB.Net. The following code will not compile because of the incompatibility of the two types System.Net.WebRequest and System.Net.HttpWebRequest even if you are allowed to upcast in any .Net language the WebRequest easily to HttpWebRequest. 1: System.Net.WebRequest webRequest; 2:…

1

ReportViewer

If you need a great reporting tool, or you want to use the RDLs from the Reporting Services 2005 without a SQL Server 2005 license, then this link will be very interesting for you (or maybe you already know the ReportViewer? ): http://www.gotreportviewer.com/ Here’s an excerpt from the product description: ReportViewer is a freely redistributable…

0

Back from holidays…

.. and back on this blog. 😉

0