x++

Microsoft Dynamics AX 2009: Error executing code: Wrong argument types in variable assignment.

I have added an object member to InventMovement class and have created one parameter method for the same but following line of code is popping up above error: movement.parmProdJournalId(this.JournalId); JournalId parmProdJournalId(JournalId _prodJournalId = prodJournalId) { ; prodJournalId = _prodJournalId; return prodJour...

Running Dynamics AX Test Case in C#

Hi Everyone, I am hoping someone out there can give me help with this. So I need to be able to run Microsoft Dynamics AX test case in C#. Now I was going to try and do something like Process.Start("ax32.exe", "-StartupCmd=RunTestProject_<name of test>"); But I am hoping there might be a way to run it by importing some Dynamics AX DLL...

Print Report in Microsoft Dynamics AX 2009 through X++

I am trying to print sales confirmation report on a button click which I have added on Sales Order Detail form in Microsoft Dynamics AX 2009. On click event of that button, I have written following code: void clicked() { Args args; ReportRun reportRun; SalesFormLetter salesFormLetter; PrintJo...

How to read text files transfered as binary

My code copies files from ftp (using text transfer mode) to local disk and then trys to process them. All files contain only text and values are seperated using new line. Sometimes files are moved to this ftp using binary transfer mode and looks like this will mess up line-ends. Using hex editor, I compared line ends depending the transf...