Solved Troubles when Print Qr Codes created with quricol.dll in Report builder qrp

Discussion forum about all things Gupta, OpenText and the community.
emartinenco
Argentina
Posts: 10
Joined: 16 Apr 2019, 20:32
Location: Ushuaia, Argentina

Troubles when Print Qr Codes created with quricol.dll in Report builder qrp

Post by emartinenco » 23 Jun 2021, 18:59

Hi.
I have troubles when i try to print a qr code build with QURICOL.dll (there is an example of this library in td wiki) .

If I load the bmp generated by a quricol function into a picture control in a dlg or frm the image looks good and I can scan it without any issues.
qr_in_screen.jpg
If I get the picture string ( with M!Image or pricture function) and try to print that image in a report builder qrp (via an object input item or object input variable) the image in the report appears whith a displacement and i can't scan it.
qr_in_qrp.jpg

TD 6.0

Someone has been worked with quricol.dll?

Any hints?

Thanks in advance.

Enrique from Argentina
You do not have the required permissions to view the files attached to this post.

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3145
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: Troubles when Print Qr Codes created with quricol.dll in Report builder qrp

Post by Dave Rabelink » 24 Jun 2021, 05:42

Have you tried to use the generated bitmap as a static picture inside the qrp report?
If that works you can rule out an issue with the bitmap.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3145
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: Troubles when Print Qr Codes created with quricol.dll in Report builder qrp

Post by Dave Rabelink » 24 Jun 2021, 06:50

I found a post complaining about the same issue:

viewtopic.php?f=38&t=69845

Unfortunately no solution there.

But running the sample given there on TD 7.3 works ok.
Maybe it is an issue with your particular TD version.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3145
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: Troubles when Print Qr Codes created with quricol.dll in Report builder qrp

Post by Dave Rabelink » 25 Jun 2021, 07:57

I think the issue is caused by the fact that the bitmap generated by Quricol is 32 bit color depth.
Seems Report Builder has issues with that format. TD 7.0 and up shows these bitmaps correctly.

Solution is to convert the generated image to 8 bits (256 color bitmap) before sending it to Report Builder using M!Image function MImgSetBpp
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

emartinenco
Argentina
Posts: 10
Joined: 16 Apr 2019, 20:32
Location: Ushuaia, Argentina

Re: Troubles when Print Qr Codes created with quricol.dll in Report builder qrp

Post by emartinenco » 28 Jun 2021, 15:17

Thaks Dave for the hint.

The issue is with TD 6.0, with td 7.x works fine.

I try this and work ok in 6.0 . When I pass th string (sImagenString) in an Input Variable or Input Item to RB the bitmap is show ok.

Set nImagen = GetHBitmapW( spTextoAqr, 2, 2, ErrorCorrectionLevel_MediumQuality )
Set nImagen1 = MImgLoadFromHandle( nImagen, MIMG_TYPE_BMP )
Call MImgSetBpp( nImagen1, 1 )
Call MImgGetString( nImagen1, sImagenString, MIMG_TYPE_BMP )
Call MImgDelete( nImagen1 )

Thanks very much for your help.

Enrique

Return to “General Discussion”

Who is online

Users browsing this forum: [Ccbot] and 0 guests