DataMatrix ASP.NET Web Control. Using SaveToImageFile method

Method 3. Using the SaveToImageFile method.

You can use the SaveToImageFile method to create a barcode image. To do it, you should create an object of the Barcodes.DataMatrix.DataMatrixWebControl class from your ASP.NET code and call the SaveToImageFile method.
] This method is less preferable than the other two methods because you have to specify access rights to create this file and delete the barcode image file after it is used.