Posts

Showing posts from March, 2018

Write data to .txt file (X++)

Hi, in this write i will explain how to write specific data from a table to a ."txt" file with X++ code. In the job example below, you will see that we specify the file and folder location and then take permission to "write". Then we loop through "InventTable" data without any filters and write down the "ItemId" column. static void writeInventRecIdToTxtFile (Args _args) { InventTable inventTable; container reclist; TextIo file; int i = 0 ; Filename filename = @"C:\exampleFolder\example.txt" ; //Specify the path for folder and .txt file before runnig this job. FileIOPermission permission; # File ; try { permission = new FileIOPermission(Filename, "w" ); //Give permission to write in file. permission.assert(); file = new TextIo(filename, "w" ); //New file with the write mode. ...

How to do barcode in SSRS (X++)

Image
In ths post, i will explain how to do barcode in SSRS reports. - First of all you need to install barcode fonts into your reporting server and AOS server. Search for barcode fonts over internet and install them both of the servers and restart the machines. - After you return the dataset and started to your report design in Visual Studio; you need to write the field expression of the field with stars, that you want to be seen as a barcode. - Create a textbox and select your returning data. - Right click on the textbox and select TextBox Properties. In the properties menu, select Font and select "BC C39 3 to 1 HD Wide"  (You can select other barcode types also but this works for me generally). - After this, right click the TextBox and select "Expression" and write the field expression like below.