Code Monkey home page Code Monkey logo

vbqrcodegen's Introduction

VbQRCodegen

QR Code generator library for VB6/VBA

Description

A single file QR Code generator based on https://www.nayuki.io/page/qr-code-generator-library

Usage

Just add mdQRCodegen.bas to your project and call QRCodegenBarcode function to retrieve an picture from a text or a byte-array like this:

    Set Image1.Picture = QRCodegenBarcode("Sample text")

Note that you can stretch/zoom the returned picture to any size without loss of quality because the picture is using vectors to draw the QR Code.

MS Access Support

For compatibility with image controls on forms/reports you can use QRCodegenConvertToData function like this:

    Image0.PictureData = QRCodegenConvertToData(QRCodegenBarcode("Sample text"))

If this does not work in your version of MS Access (for some reason) then you can try converting QR Code to a bitmap instead like this:

    Image0.PictureData = QRCodegenConvertToData(QRCodegenBarcode("Sample text"), 500, 500)

Note that this produces 500x500 bitmap picture of the QR Code so might need to tweak output size parameters.

vbqrcodegen's People

Contributors

vasilaev avatar wqweto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vbqrcodegen's Issues

QR Styling

@wqweto Why are the lines of the QR codes so rounded?

Thank you for the project! ๐Ÿ‘

Using QRCodegenConvertToPicture producing BMP

Thank you for your efforts, this module is vary useful.
I have tried to use this function QRCodegenConvertToPicture and SavePicture trying to save a BMP file but StdPicture produce an EMF file. Any ideas? Is it possible to have a function like QRCodegenToFile and having a file output instead?

Using QRCodegenBarcode as UDF in excel VBA

Thank you very much for your efforts.
I have tried to use this function QRCodegenBarcode as UDF in cell B2 but what I got is just numbers and not a barcode.
The code is working well on userform not on worksheet. Any ideas?

What am I doing wrong?

I put the code into my MS Access project. I put an unbound image on my report.
I used the following to assign a value to the code. This is on the detail section of the report.
Me![2dbarcode].PictureData = QRCodegenConvertToData(QRCodegenBarcode("'" & Me.CSLabelBC & "'"))

No image shows on my report. Can you tell me what I have done wrong?

module not running in .mdb access files

Hello, the module runs perfect in .accdb access files but in .mdb files it returns error 2192 "The bitmap you specified is not in a device-independent bitmap (.dib) format."
I use the function "Image0.PictureData = QRCodegenConvertToData(QRCodegenBarcode("Sample text"), 500, 500)"
Can you help me please with this?

Unable to scan the code with handheld QR Code reader

As mentioned, unable to scan the code with handheld E-Pos QR Code reader. iPhone works fine. QR codes generated online works fine with reader, so wonder what doesn't click.

Wonder if the code as option can be generated with text frame like attached example.

qr_with_txt

good job. thanks a lot.
Greg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.