Str to QRCode

private void insertQrCodeImage(str tagName, PrintTagValue val) { Microsoft.Dynamics.QRCode.Encoder encoder = new Microsoft.Dynamics.QRCode.Encoder(); System.Drawing.Bitmap bitmap = encoder.Encode(_val.strValue()); Filename tmpImageFile = encoder.GetTempFile(WinAPI::getTempPath()); ; new FileIOPermission(tmpImageFile,'r').assert(); bitmap.Save(tmpImageFile, System.Drawing.Imaging.ImageFormat::get_Gif()); wordDocument.insertImage2ShapeRange(_tagName, tmpImageFile, true); WinAPI::deleteFile(tmpImageFile); CodeAccessPermission::revertAssert(); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.