Migration 17.7 to 18.7 missing setSymbologyType method

Hello
Aspose 18.7 has new API, and I got a problem with migration. Please see on the code below.

BarCodeBuilder barCodeBuilder = new BarCodeBuilder();
barCodeBuilder.setSymbologyType(Symbology.QR);
barCodeBuilder.setQRErrorLevel(QRErrorLevel.LevelH);
barCodeBuilder.setCodeText(data);
barCodeBuilder.setCodeLocation(CodeLocation.None);
barCodeBuilder.save(outputStream, BarCodeImageFormat.Png);

What is equivalent of method setSymbologyType?

Thanks :slight_smile:

@SoftwarePlant,

Please use barCodeBuilder.setEncodeType instead of setSymbologyType now which is its replacement and let us know if you have any further query in this regard.

And what about Symbology.QR?

@SoftwarePlant,

Please use

barCodeBuilder.setEncodeType(EncodeTypes.QR);

as whole.