How to Generate Bar Code Using ASP.NET MVC

A Bar Code is a machine-readable code in the form of numbers and pattern of parallel lines in varying width usually used for stock control. In this article, we’ll show you how to make a bar code using ASP.NET MVC 4. To start this task, you will need a font named “FREE3OF9.tff”. Download it at

First, we need to create a database for storing barcode image, or the barcode number used for displaying the bar code.

Then we create model in model for data accessing.

Now, using Visual Studio 2012, create a new ASP.NET MVC4 Web Application in Visual C#. Name it BarCode or whatever you like.

Then create a view.

Then follow this guide for full instructions:

Leave a Reply

Your email address will not be published. Required fields are marked *