QR codes are becoming increasingly popular tools for storing and sharing information. In reports and documents, they can be used for quick access to websites, contacts, product information, and much more.
FastReport .NET is a powerful library for creating reports in .NET applications. It allows not only the generation of text and graphic reports but also the integration of dynamic elements such as QR codes. In this article, we will explore how to create a QR code with an image in FastReport .NET to enhance the visual representation of reports and improve their functionality.
First, we need to create a regular QR Code in the designer. To do this, go to the components panel and select “Barcode” > “2D” > “QR Code.”
After placing our QR Code, we go to its properties and set the ErrorCorrection property to H.
This property is responsible for error correction using Reed-Solomon code. It can take values: L (low—7%), M (medium—15%), Q (25%), H (high—30%). By default, it is set to L.
The redundancy (ErrorCorrection) is necessary for correctly reading the data when the image of the code is partially damaged or when an image is placed over it.
Next, we will create a PictureObject in which we will place our image with the logo.
Now we can place our image directly on the QR Code. Reading will function correctly.
So, we have figured out how to insert an image into our QR Code. The FastReport designer allows you to do this easily in just a few clicks. We can use this feature, for example, to link to the official website via phone, so clients know which QR code will lead them there just by looking at the image. For any questions, you can contact our support team. Enjoy using the tool!