Hi,
We use Aspose (Version=6.9.0.0) to create a label in Microsoft Dynamics NAV.
On this label we added a pdf417 barcode.
It’s necessarry to use 30 rows at least, so I added the option Rows = 30.
If I create a barcode, the pdf417 had always 25 rows.
Code:
lnetAsposeLicense := lnetAsposeLicense.License;
lnetAsposeLicense.SetLicense(‘Aspose.Total.lic’);
lnetBarcodeBuilder := lnetBarcodeBuilder.BarCodeBuilder;
lnetBarcodeBuilder.SymbologyType := lnetSymbology.Pdf417;
lnetBarcodeBuilder.CodeLocation := lnetCodeLocation.None;
lnetBarcodeBuilder.Pdf417ErrorLevel := lnetPDF417ErrorLevel.Level5;
lnetBarcodeBuilder.AspectRatio(3);
ldecResolutionX := 100;//Adjust horizontal resolution in DPI, smaller value is a bigger module
ldecResolutionY := 100;//Adjust vertical resolution in DPI, smaller value is a bigger module
lnetResolution := lnetResolution.Resolution(ldecResolutionX, ldecResolutionY, lnetResolutionMode.Customized);//Printer);
lnetBarcodeBuilder.Resolution(lnetResolution);
IF lnetBarcodeBuilder.Rows < 30 THEN
lnetBarcodeBuilder.Rows := 30;
lnetBarcodeBuilder.xDimension(1);
lnetBarcodeBuilder.yDimension(2.5);
lnetBarcodeBuilder.CodeText := ptxtContent;
lnetBarcodeBuilder.AutoSize(FALSE);
lnetBarcodeBuilder.Save(ptxtDestination, lnetImageFormat.Jpeg);//‘C:\Temp\Barcode_Output\Output.jpg’