web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / how to change barcode ...
Power Apps
Answered

how to change barcode formart

(0) ShareShare
ReportReport
Posted on by 25

Hi everyone.

I generared a barcode with this code in the HtmlText property:

 

"<img src=""https://www.barcodesinc.com/generator/image.php?code=" &
lbltransCode& "
&style=197&type=C128B&width=500&height=150&xres=1&font=3""/>"

 

but the image is too small. Is there a way to make the barcode image bigger?

 

 

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    You should be able to use the same expression that is inside the src attribute of the <img> tag inside your HtmlText in an Image control - and you can resize that control to be the size you want:

    "https://www.barcodesinc.com/generator/image.php?code=" &
    lbltransCode& "
    &style=197&type=C128B&width=500&height=150&xres=1&font=3"

    You can also update the xres parameter to make it larger. The image below shows a quite large barcode using this:

    ForumPost001.png

    Hope this helps!

  • DanieleZanchi93 Profile Picture
    25 on at

    Hi @CarlosFigueira

    Thank you very much for the example. I tried it and it's work!

    I have another question if you can answer. What is the xres parameter in this case? ( i tried to find in the internet but i did't understand nothing)

  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    To be frank, I just tried changing some of those parameters, and that made the barcode bigger :-). I guess that it means something like the x (horizontal) resolution of the barcode Â¯\_(ツ)_/¯

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard