Adjust barcode size

Dear Sir,

The user is using the trial of Aspose.BarCode For .NET but he encounters a problem.

When it generates a code39 barcode, the image is very large, how can he adjust the size? Could you give us some instruction?

Thank you.

/* Style Definitions */ table.MsoNormalTable {mso-style-name:表格內文; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";}

<![endif]–>

Hi Anni,


Thank you for contacting support. Aspose.BarCode provides control over the barcode image size. Please refer to this helping topic: Generate Barcode Using Custom Width Support

The GetOnlyBarCodeImage method will allow you to get the exact bar code in the Bitmap format and then the GetCustomSizeBarCodeImage method will allow you to set the size of the whole picture with bar code inside. Please don’t truncate its original width or height otherwise you could face recognition failure problems.

Please feel free to reply us in case of any confusion or questions.

<span style=“font-family: “Calibri”,“sans-serif”;” lang=“EN-US”>Hi Imran,

Thanks for your reply.

The user tried the method you suggested, when he multiplied (x) 1, the image size could be small, is it the only solution? he wonders why he can not use division (/).

Another question, he followed the instruction to create barcode in the report (rdlc), but it can’t display well, only showed the [X] mark as below screen shot.
P.S. they are using VisualStudio2008

https://docs.aspose.com/barcode/net/technical-articles/

Please assist, Thank you.

BR,

Hi Anni,


Well, please note that the barcode size depends upon the code text as well. These methods help to get minimum sized image and then extend its size according to the requirement. You can perform operations on a Size by using the overloaded operators such as Addition, Subtraction, and Equality. In case, it does not help then please share requirement details. We’ll take a closer look and guide you accordingly.
linksoftinc:
Another question, he followed the instruction to create barcode in the report (rdlc), but it can’t display well, only showed the [X] mark as below screen shot.
P.S. they are using VisualStudio2008
Could you please confirm the Aspose.BarCode for .NET version? Please note that each new release contains many improvements, bug fixes and new features and we always recommend our customers use the latest version of Aspose APIs. If he is using an old version then please suggest him to use the latest build. Please refer to the download page:
http://www.aspose.com/community/files/51/.net-components/aspose.barcode-for-.net/default.aspx

Otherwise, please share the environment details where it fails, i.e. Operating System (edition, 32 or 64 bits) and .NET Framework. It will be so nice of you if you can attach a sample project which reproduces the issue on your side and attach it here. We’ll investigate the issue at our end and guide you accordingly.