Showing posts with label dynamics ax 2012. Show all posts
Showing posts with label dynamics ax 2012. Show all posts

Tuesday, November 21, 2017

Saturday, April 16, 2016

QR Code DAX 2012 : AX 2012 X++

QR Code DAX 2012


static void JobCreateforQRCode(Args _args)

{
    Image           image;
    container       imageContainer;
    str             url;
    EFDocQRCode_BR  qrCode;  
    
    // The url to create the QR code. 
    url = 'http://www.google.com';
    
    // Create an instance of the QR code class
    qrCode = new EFDocQRCode_BR();
    
    // Generate a QR code for the URL and save the result to a container
    imageContainer = qrCode.generateQRCode(url);
    
    // Use AX's good old Image class to load the image from the container
    // and save it as a file
    image = new Image();
    image.setData(imageContainer);
    
    image.saveImage("F:\QrCode.jpg", ImageSaveType::JPG);
}
Related Posts Plugin for WordPress, Blogger...