How to Insert Barcodes into RDLC with C# Class Library

30 Nov

It is easy to insert linear and 2D barcodes in RDLC reports using Visual Stuio, details below:

  • First, search online and find one which meets for your generation purchase, usually those generators support ASP.NET or Winforms in VS, it depends on you.
  • Second, download the generaiton SDK and install it in Visual Stuio.

Create New ASP.NET Application with C# Class library

  1. Open Visual Studio then create an ASP.NET web form project using C#.NET programming;
  2. Add the RDLC .NET generator as reference of the RDLC project;
  3. Find  “Solution Explorer” then right-click web application to add a class;
  4. .NET programmers are able to use C#.NET codes in  class “APP_Code/Class1.cs” now;

Build New RDLC Reports Solution in Visual Studio

  1. Move to  “Solution Explorer”, and add a report;
  2. Display the “Report Item” in Toolbox, and then insert a table into local RDLC report;
  3. Move to “Website Data Source”, add “Name” and “Price” items to the report;
  4. Create a new “Barcode” column and drag and drop an Image item to it;

Insert Barcode Images in New RDLC Reports

  1.  Set “MIMEType” to “image/jpeg”,”Source” to “Database” and “Value” to “=Fields!Barcode.Value”, and save the report;
  2. Move to “Solution Explorer”, click “Default.aspx” and “View Designer” menu;
  3. Drag “View Designer” to the report, and then choose created report “Report1.rdlc”.
  4. Run the report, generated barcode images will be displayed on the web page.

Details, please refer to new refreshed



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: