Hai Appeon team,
I have a DLL to access the document reader. While I am importing the DLL, getting errors. What is the reason?
Hai Appeon team,
I have a DLL to access the document reader. While I am importing the DLL, getting errors. What is the reason?
Hi Shameem;
You can only import DLLs that use "simple" data types that can be mapped to standard data types in PB. If you need to process .Net Classes as one example of non-simple data types, then you would need to create a .Net DLL that acts as a "wrapper" for the document reader DLL.
Regards ... Chris
For now my improved 3rd version. It should deal better with the different image formats, but still some seem to fail (like .tiff).
See attached.
regards.
(done terrorizing everyone with this QR thing)
:)
Edited: to avoid duplication:
Here's the latest version of the PB sample app: https://github.com/mjl38/PB_sample_app_QRCodes
And here's the latest version of my Vstudio .net library (and test window form): https://github.com/mjl38/QRCodes
Let me know if you would like me to zip it all and duplicate it on the several posts here.
I've upload a newer version of both the powerbuilder app and the VS DLL and source code. Files were being kept in a lock, which should have been solved now. Also, I had to apply some encoding to allow for languages like Arabic and Chinese to work correctly.
Still haven't been able to figure out how to make this work correctly with different image formats. Only PNG seems to work correctly.
regards.
Edited: to avoid duplication:
Here's the latest version of the PB sample app: https://github.com/mjl38/PB_sample_app_QRCodes
And here's the latest version of my Vstudio .net library (and test window form): https://github.com/mjl38/QRCodes
Let me know if you would like me to zip it all and duplicate it on the several posts here.
So, I've made a DLL in C# which allows to Encode a text to a QR image file. I've also made a small sample application in pb2019. (you can use 2021).
It also allows to pick a QR image from disk and show the decoded text.
See the attached files.
This is supposed to allow for png, jpg, gif, and bmp formats, but for some reason I can only show the PNG format with success on a pb 2019 p_1 picture control. The picture has been generated, but for some reason it doesn't show. I'll create a ticket for that last bit.
Hope it's useful!
regards
Edited: to avoid duplication:
Here's the latest version of the PB sample app: https://github.com/mjl38/PB_sample_app_QRCodes
And here's the latest version of my Vstudio .net library (and test window form): https://github.com/mjl38/QRCodes
Let me know if you would like me to zip it all and duplicate it on the several posts here.
For example for you WIA dll, you should create a c# .net framework library.
Then add the following reference:
Then you have to figure out which functions you want to call and how to deal with the unsupported types in powerbuilder.
You write your own function in the .net library that CAN call these functions with unsupported types and call that function from powerbuilder.
Without decent documentation on the WIA that might be quite a job.
If you want, you tell me one function that you want to call and I'll try to give you an example of how to do what I just described above.
regards.