08-13-2019 07:02 AM
Hello @Gautham99 ,
In this app, I have used Google Charts API, https://developers.google.com/chart/infographics/docs/qr_codes
Simply set Image property as
where someVariable is defined by Text Input control.
This is great and very useful!
Does anyone know how I may be able to print my generated QR code? I know you can print HTML text from PowerApps via PDF creation or via email to a specified user but printing images still seems to be near impossible, any suggestions welcomed!
For context I am essentially using powerapps to create an inventory list, the user adds items to a crate and the crate is given a unique ID. I am then using the QR generator to change the unique crate ID to a QR code which I would then like to print and physically stick on the crates ready for shipping.
Hi, thanks for your reply.
I'm not sure I follow. PowerApps only allows for HTML text therefore when the bar code is added to the HTML no image is displayed and again with the PDF there is no image.
Unless I'm missing something?
Ok, here is the global process...
To generate a PDF file from an HTML containing images, you need to use a Flow. Call the Flow from PowerApps, sending your QR code image through the call (and other data if needed). Then in the Flow, build a string containing the needed HTML with your <img> tag that should look like this (convert your image data to Base64 first):
Still in the Flow, create an HTML file on a OneDrive and convert it to PDF using the adequate Flow operator.
Then, once you have the PDF file, I don't know how you want to print it...
Do you need more help on this? Is using the Flow process worth considering for your?