codebude / QRCoder

A pure C# Open Source QR Code implementation
MIT License
4.67k stars 1.11k forks source link

QRCoder in VBA Excel #195

Open pldeschamps opened 5 years ago

pldeschamps commented 5 years ago

Type of issue

[ ] Bug
[X] Question (e.g. about handling/usage)
[ ] Request for new feature/improvement

Expected Behavior

Regarding your post: https://en.code-bude.net/2017/05/21/how-to-generate-swiss-qr-code-in-csharp-and-vba/

do you provide the COM-interface? As the QRCoder is already in use in VBA projects, do the users provide their own COM interface?

Regards,

Current Behavior

Possible Solution (optional)

If I succeed to use QRCoder in VBA, I would fork my code (I have to learn to do that first! may be it is already done!)

Steps to Reproduce (for bugs)

qrcodervba

Your Environment

codebude commented 5 years ago

Hello @pldeschamps ,

currently I'm neither providing a COM-interface nor a binary for use in VBA environments. As you have found out, I have described how one could do it, but I don't provide a working solution.

Background: When writing the article mentioned above, I tried to write a small wrapper and setup a COM-compatible variant. It worked quite well for me in the main features, but there were two problems:

pldeschamps commented 5 years ago

Hello @codebude , Your project is awesome! I agree: you should maintain the trust of the users. Hence not adding VBA which is a messy language! I did make a fork: https://github.com/pldeschamps/QRCoder and a COM-interface: https://github.com/pldeschamps/QRCoder/blob/master/QRCoder/QRCodeCOMInterface.cs At this stage I did not succeed to import the bitmap or the byte array to VBA from the COM-interface. But I guess I can bypass this problem by writing the bitmap in a file (but this is not clean as I use the file system).

I am not familiar with licences in general and with MIT licence in particular: Do I have the full copyright of my class? What is your politic? should I keep the same version number? should I change the Project name? Project description? Assembly name? Do you mind at all? Are you OK with what I have done in my fork? Do you mind at all?

Regards,