Welcome to my personal blog on Microsoft Dynamics AX. This site has posts with AX, its related technologies and contains some X++ Codes for use in your day to day use which came out of my research. However,Use them at your own discretion.All content provided on this blog is for informational purpose only.I am solely responsible for all content published here and any views or opinions expressed here are strictly my own and does not represent or reflect my employer.
Thursday, April 29, 2010
Paging in a Query(Query run)/Paging while retrieving the records from a query
Tuesday, April 27, 2010
Convert pdf or any type of file to base 64 string in AX using x++
Friday, April 23, 2010
Store and retrieve an image in a table for a record in AX
- Generally, most of the customers would request for a functionality to store an image for an item. For this, there is no need of high customization.
- Initially, Goto the Design in InventTable Form and add a Display Menu Item called CompanyLogo to its button Group.
- Change the label of the Menu item button in the form.
- Now, open the InventTable form and click on the menu item and load an image associated with a record.
- This image will be stored in the CompanyImage table as a BLOB in a container with the refRecId, RefTableId and RefCompanyId of the associated record(Here Record of InventTable).
- Retrieving it and saving to file system again is pretty easy with the help of binData Class. Here is the supporting code snippet....
Wednesday, April 21, 2010
calculate total sales order or sales quotation amount / discounts / tax etc., through code( X++ ) in AX

Tuesday, April 20, 2010
Print Sales Invoice Report in PDF / HTML / RTF / ASCII etc., format through code
Sunday, April 18, 2010
send e-mail through code with attachments in AX


Wednesday, April 14, 2010
How to use COM Wrapper dll in AX
(i) Install the COM Wrapper DLL Files, into the bin directory of the AOS.
(ii) Register it with the following Command,%WINDIR%\Microsoft.NET\Framework\v2.0.50727\regasm.exe Test.Wrapper.DLL /tlb:Test.Wrapper.tlb
(iii) Now, After Successful Registration, Follow the below path and click on COM Class Wrapper Wizard.i.e., Tools->Development tools->Wizards->COM Class Wrapper Wizard


Monday, April 12, 2010
Common problem in Printing AX Reports as a file using Batch job scheduling through code in the Server File System
(i) Enable AOS printing on the AOS server configuration (see below). Do not restart the AOS yet.

(ii) Due to a bug in the Configuration Utility, we need to manually update the corresponding value in the registry.
In this path-> HKEY-LOCAL MACHINE->SOFTWARE->MICROSOFT->DYNAMICS-5.0->Configuration->Original search for the Name
useserverprinters and set the value to “1”. After that restart the AOS.
(iii) Provide an UNC Path on the AOS computer that will used for saving the PDF Files (temp. only).
Thats it done.............
Now you can print the AX reports as a pdf, rtf,txt or any other valid format through code(x++) from batch job scheduling.
Saturday, April 10, 2010
My First Blog
My name is Giridhar Raj Singh Chowhan.
I have been working on Microsoft Dynamics AX for over 2.5 years as a Technical Consultant.........
For a long time, I have been thinking of blogging about my experiences in AX...........
Atlast today I have started blogging.............
It is always very exciting when you start something new..........
My main motto of starting this blog is to share my knowledge & experience on AX and write about the most common problems and solutions that I have faced in my implementations............
So, that the developers can save their time and also get some good amount of knowledge................
You can encourage me by leaving your comments for my posts, Your feedback will always be appreciated and encouraged......................
you can always reach me at giridharax@gmail.com.......................
Thanks and Regards
Giridhar Raj.