USING ThoughtWorks.QRCode.Codec.*.
USING System.Drawing.*.
DEFINE VARIABLE oEncoder AS ThoughtWorks.QRCode.Codec.QRCodeEncoder NO-UNDO.
DEFINE VARIABLE oImage AS System.Drawing.Image NO-UNDO.
oEncoder = NEW QRCodeEncoder().
oEncoder:QRCodeVersion = 0.
oImage = oEncoder:Encode("Hello World!").
DELETE OBJECT oEncoder.
oImage:Save("c:\hello_world.gif",System.Drawing.Imaging.ImageFormat:Gif).
can you recommend some ?HI there
Although i have never tried to print a self-generated QR code from OpenEdge yet,i have generate some QR code using a barcode generater.
You can also google for a tool to help you out.That would be more convenient.
Did you try the code in my post above? It uses the ThoughtWorks QR Code Library and some simple OpenEdge codecan you recommend some ?
I did it in OE 10 with the "ThoughtWorks QR Code Library". The code is very simple really (you need at least OE 10 because of the use of .Net):
Code:USING ThoughtWorks.QRCode.Codec.*. USING System.Drawing.*. DEFINE VARIABLE oEncoder AS ThoughtWorks.QRCode.Codec.QRCodeEncoder NO-UNDO. DEFINE VARIABLE oImage AS System.Drawing.Image NO-UNDO. oEncoder = NEW QRCodeEncoder(). oEncoder:QRCodeVersion = 0. oImage = oEncoder:Encode("Hello World!"). DELETE OBJECT oEncoder. oImage:Save("c:\hello_world.gif",System.Drawing.Imaging.ImageFormat:Gif).
My first question would be is the assembly referenced in assemblies.xml?
Have a look at http://knowledgebase.progress.com/articles/Article/P138939?q=assemblies.xml&l=en_US&fs=Search&pn=1How
How i do that?
I did it in OE 10 with the "ThoughtWorks QR Code Library". The code is very simple really (you need at least OE 10 because of the use of .Net):
Code:USING ThoughtWorks.QRCode.Codec.*. USING System.Drawing.*. DEFINE VARIABLE oEncoder AS ThoughtWorks.QRCode.Codec.QRCodeEncoder NO-UNDO. DEFINE VARIABLE oImage AS System.Drawing.Image NO-UNDO. oEncoder = NEW QRCodeEncoder(). oEncoder:QRCodeVersion = 0. oImage = oEncoder:Encode("Hello World!"). DELETE OBJECT oEncoder. oImage:Save("c:\hello_world.gif",System.Drawing.Imaging.ImageFormat:Gif).
Should it works in OE10.01A? How should I prepare the propath?
<assembly name="ThoughtWorks.QRCode, Version=1.0.2774.19990, Culture=neutral"/>