Barcode not displayed after printing

Hi! I am working on ASP.Net MVC application. I am using FastReport Version "2016.2.18.0" to show datamatrix barcode in report which is generated programmatically. I am using following code for generating barcode:


FastReport.Barcode.BarcodeObject barcode = new FastReport.Barcode.BarcodeObject();

/* This is data to encode in barcode */
barcode.Text = ItemNo + "," + ItemBatchNo;

/* determines whether it is necessary to show the human-readable text. */
barcode.ShowText = false;

barcode.Barcode = new FastReport.Barcode.BarcodeDatamatrix();
barcode.Left = float.Parse(field.FieldPosition.Left.Split('p')[0]);
barcode.Top = float.Parse(field.FieldPosition.Top.Split('p')[0]);
barcode.Width = float.Parse(field.Width);
barcode.Height = float.Parse(field.Height);
barcode.AutoSize = false; /* Disabling AutoSize so that barcode displayed as per width/height specified above */

dataBand.Objects.Add(barcode);


When this programmatically generated report displayed in view(View in ASP.Net MVC) it's displayed properly in report viewer with generated barcode. I am using following code

WebReport.GetHtml()


But when I click on "Print From Browser" button it redirects me to another tab and after printing report it's not showing generated barcode there. Is there any setting missing in above code? Please give me solution for it.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.