How to Display File from Directory in Dynamics Ax


Description:-

In this article we will see if we want to display file from directory then we can display a list of file from particular directory in ax. Here is the example to display or see file from particular directory. Here I have created job to display file from directory in dynamics ax.

Code:-

Static void ShowFileNameinDirectory1(Args _args)
{
  int      handle;
  FilePath filePath;
  FileName FileName;
  ;
  filepath = @"D:\UMESH_Data\Images\Jpeg Images";
  [handle,filename] = WinAPI::findFirstFile(filepath + "\\*.jpg");
  while (filename)
  {
    info(filepath + "\\" + filename);
    filename = WinAPI::findNextFile(handle);
  }
  WinAPI::findClose(handle);
}

Related Posts

Previous
Next Post »

Thanks for comments.....