0
是否有任何方法可以将VB代码从VB.NET生成为Crystal Reports?使用VB.NET在Crystal Report中生成QR码
我已经试过这个教程: http://www.keepautomation.com/vbnet_barcode/qrcode.html
但总是出现错误:“A所需的特权不保留的客户端。”
是否有另一个插件或任何它是从VB.NET生成二维码到Cystal报告?
是否有任何方法可以将VB代码从VB.NET生成为Crystal Reports?使用VB.NET在Crystal Report中生成QR码
我已经试过这个教程: http://www.keepautomation.com/vbnet_barcode/qrcode.html
但总是出现错误:“A所需的特权不保留的客户端。”
是否有另一个插件或任何它是从VB.NET生成二维码到Cystal报告?
我无法找到在水晶报表或VB中生成QR码的原生方式,但我确实找到了将图像链接到生成QR码的Google API的方法。
要使用:
根据需要编辑变量。
//--------------------------
// QR Code Gererator
//
// Uses Google's Chart API.
//
// To Use:
// Insert a graphic to the
// report. Right click
// on it and click "Format
// graphic". Click on the
// "Picture Tab". Click
// on the formula edit
// button next to graphic
// location. Add this code
// or reference a formula
// with this code in it.
//
// You can update the width
// height and encoding below.
//
// For more info see
// https://developers.google.com/chart/infographics/docs/qr_codes?csw=1
//
// Feel free to redistribute.
//
// @Author Daniel Havens
// @Created 2018-02-01
stringVar QRFormat;
stringVar QRwidth;
stringVar QRheight;
stringVar QRText;
stringVar QRURI;
// Encoding format see google's api
QRFormat := 'UTF-8';
// Width in Pixels
QRwidth := '325';
// Height in Pixels
QRheight := '325';
// Text for the QR Code.
//
//
QRText := 'http://stackoverflow.com/';
// To Do:
// StringReplace for URI
// Combine the result
//
// Base URI must be http://
// or Crystal cannot fetch
// the image
QRURI := 'http://chart.googleapis.com/chart?cht=qr&choe='+QRFormat+'&chs='+QRWidth+'x'+QRHeight+'&chl='+QRText;
QRURI;