We're sorry GroupDocs doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.com

"Error! Bar code generator is not set." rendered instead of actual QR code in .NET

Using GroupDocs.Viewer 21.10 with the attached file and below code, just renders “Error! Bar code generator is not set.” instead of the actual QR code.

using (var viewer = new Viewer(documentPath))
	var options = HtmlViewOptions.ForEmbeddedResources("output_viewer{0}.html");

QRCode not rendered.zip (35.1 KB)

With GroupDocs.Conversion the barcode is rendered properly. Do I have to explicitly set a barcode generator for GroupDocs.Viewer?


We’ve reproduced this issue on our side. GroupDocs.Viewer does not support rendering QR-code fields. We have created a new ticket with ID VIEWERNET-3681 in our bug tracker to investigate this feature. We’ll notify you here in case of any updates.

1 Like


The support for rendering QR codes has been added in v21.11:

The new version is available at:

Have a nice day!

1 Like


Thanks a lot for adding this feature so quickly!
This is really awesome :grinning:

I have to add one little thing though.
As I already reported for GroupDocs.Conversion, the barcode with the original size is pretty small.

image.png (59.1 KB)

If you compare it with output from word, the “small” normal sized barcode has 104 pixels, while the 200% “big” QR code has 208 pixels -> 200% the size.
The GroupDocs output of the “big” 200% barcode is pretty close to that with 197 pixels, but the “small” QR code with 100% size is only 57 pixels and not 98 or 99 pixels.
Maybe this will be fixed with the other reported issue anyway, I just want to make sure you are aware of it.


You’re welcome!

We’ll investigate the issue with QR code size in QR code size is smaller comparing with Word.

1 Like