Tuesday, 17 June 2014

Printing a QR Code in a SMARTForm

Here's a great blog from a guy who's managed to get a QR Code output onto a SMARTForm.
Essentially, he:

  • uses a Google Charts API to generate the QR Code, 
  • reads the content of this in using the HTTP_CLASS. 
  • transfers this content to a nominal bitmap file on SAP
  • refers to this file in the SMARTForm

http://scn.sap.com/docs/DOC-47644

It's so pretty. Again, great work to the author.

2 comments:

  1. Good post.Thanks for your sharing,i learn a lot from your post.There is a lot of very useful knowledge in your post.I enjoy reading it and hope to see more.Can you write more about printing qrcode in .net applications?I am very interested in it.Waiting for your new post.

    ReplyDelete
    Replies
    1. Hi there Dale - thanks for the feedback! Sorry, I don't know anything about getting the qr code into the .net application, but I would assume that the process is the same : call the google graphs api with the appropriate url suffix, then get .net to interpret the result. Even an iView or similar where you just have a little window with the graphic from google. The link you put up looks like it's a 3rd party product the lives on the same server as the app itself, that does the same thing.
      Basically, short of writing your own interpreter (and we have considered this!) you're dependent on an external library!

      Delete