Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Generate two-dimensional QR Code® bar codes in an SSRS report


Generate two-dimensional QR Code® bar codes in an SSRS report

Author
Message
Stan Kulp-439977
Stan Kulp-439977
SSC Veteran
SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)

Group: General Forum Members
Points: 254 Visits: 1093
I started working on QR Codes for a work project that was going to be on a secure server not connected to the Internet, so the external service was not an option. I wasn't able to come up with anything and the requirement was dropped, but it bugged me and I just decided to figure out how to generate QR Codes programmatically.

I got this far, and I thought I might just share my knowledge on the chance that somebody else would show me a better way.
Stan Kulp-439977
Stan Kulp-439977
SSC Veteran
SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)

Group: General Forum Members
Points: 254 Visits: 1093
Try downloading the binaries and application from here...

http://www.codeproject.com/Articles/258779/Just-launched-new-open-source-project-QrCode-Net-a

...and use the Gma.QrCodeNet.Demo.exe executable to generate some QR Codes and see if your phone can decipher them.

If it can, I am going to try to figure out how to use the accompanying Gma.QrCodeNet.Encoding.dll.

I have tried before, but got nowhere. Maybe this time will be different.
a.abalos.castillo
a.abalos.castillo
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 Visits: 57
Thanks Stan. I have downloaded and run the code from the link you shared ("Just launched new open source project QrCode.Net at http://qrcodenet.codeplex.com").

The QR codes seem to work, however, non-regular characters are not understood properly (like Ñ, Å, Æ). The standard 128 ASCII chars work fine, so it could work with URLs.

I guess this code could be used as a DLL in Reporting Services and then solve the problem (to some point...)

Thanks again,
Antonio.
Stan Kulp-439977
Stan Kulp-439977
SSC Veteran
SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)

Group: General Forum Members
Points: 254 Visits: 1093
Looking at that page again, there may be enough information for me to get it to work. I will try it this weekend.
aframiller326
aframiller326
Grasshopper
Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)

Group: General Forum Members
Points: 12 Visits: 31
a.abalos.castillo (1/14/2014)
After trying the code, the qr code images generated seem unreadable by a cell phone. Is that expected somehow?

The online
qr code reader at zxing does recognize it, but iPhone or Lumia phones were unable to read it

Thanks.


Have you tried to use any android-based phone to read the QR code? I mean it is a little strange that only the online barcode reader can read the barcode.;-)
a.abalos.castillo
a.abalos.castillo
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 Visits: 57
Windows phone and iPhone
hsmith77
hsmith77
Forum Newbie
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: General Forum Members
Points: 8 Visits: 25
Hi Stan,
was following your great step-by-step.

I admit I skipped hte compiling when I saw you'd attached some predone ones (mostly because hte install for Studio is still now going on).

I had a problem with 'Add references to the "System.Drawing" and "System.Windows.Forms" assemblies from the ".NET" tab of the "Add Reference" window. '.
I don`t see a .NET tab in the SSRS Reference dialog.. but I finally just went hunting and added those 2 .dll from here (c:\windows\microsoft .NET\framework\...) which got System.Drawing, Version=2.0.0.0 and System.Windows.Forms, Version=2.0.0.0 added.

I thought I was home free.. but when I hit Preview, I got:
Error while loading code module: ‘CreateQRCodeReturnByteArray, Version=1.0.0.0, Culture=neutral, PublicKeyToken=64807c980cf7c534’. Details: Could not load file or assembly 'CreateQRCodeReturnByteArray, Version=1.0.0.0, Culture=neutral, PublicKeyToken=64807c980cf7c534' or one of its dependencies. The system cannot find the file specified.

I was hoping you could help me?
HS
Stan Kulp-439977
Stan Kulp-439977
SSC Veteran
SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)

Group: General Forum Members
Points: 254 Visits: 1093
It sounds to me as if you have not successfully added the DLLs to the GAC (Global Assembly Cache). Just a guess.

You might try adding them using this GUI utility:

https://wingac.codeplex.com
hsmith77
hsmith77
Forum Newbie
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: General Forum Members
Points: 8 Visits: 25
ok, went through the dll creation process step by step, including gac deploy.

still arguing. drat.

for adding the drawing and windows.forms to SSRS, I used the files from C:\Windows\Microsoft.NET\Framework\v2.0.50727, correct?

and took Csharp and NET.http out of the reference list for all 3 projects (if present).

even tried a gac on hte 2.0 files for drawing and forms.
Stan Kulp-439977
Stan Kulp-439977
SSC Veteran
SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)SSC Veteran (254 reputation)

Group: General Forum Members
Points: 254 Visits: 1093
I wrote this a while back and don't remember everything, but I was careful to make it very thorough.

Have you tried doing the entire thing step-by-step?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search