GridReport二维码图片的显示

                        if (fieldCode == "qrCodeImg" && !string.IsNullOrEmpty(fieldValue))
                        {
                            if (Report.ControlByName("PictureBox1") != null)
                            {
                                string base64 = fieldValue.Substring(22);

                                byte[] bytes = Convert.FromBase64String(base64);

                                Report.ControlByName("PictureBox1").AsPictureBox.LoadFromMemory(ref bytes[0], (int)bytes.Length);
                            }
                        }

原文地址:https://www.cnblogs.com/DavidAi/p/12613184.html