Jump to content

Graphic QR Code in OnRecordStart


ThomasLewis

Recommended Posts

Is there any way to get this to work in OnRecordStart?

 

var DataToEncode = "My string";
var EncodingMode = "Byte";
var ErrorCorrectionMode = "Q";
var PreferredFormat = "0";
var ProcessTilde = false;

r = Resource(MakeQRBarcodeGraphic(DataToEncode, ProcessTilde, EncodingMode, ErrorCorrectionMode, PreferredFormat));

FindGraphicFrame("qrframe").SetGraphic(r);

 

It returns the error "no resource named Resource("Generated QR Barcode").

Link to comment
Share on other sites

Is there any way to get this to work in OnRecordStart?

No, sorry, this won't work. You need to create a Graphic rule which returns the call to the MakeQRBarcodeGraphic function (without the extra call to the Resource function), and assign that rule to the graphic frame.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...