Hi anybody,
Good Day!
FYI - We own Telerik Reporting service tool.
1, I need to implement Bar Code in my report forms in which the Bar codes has to be displayed in the form retrieving the Bar code from the Database.
2, Also, I am binding the report form using Telerik Report Viewer Control. The form consists of 3 pages in total. But, I need to display only first two pages of the form in certain cases (i.e,) I need to make the third page invisible on certain conditions.
So, please help me with the following,
1, Could you please provide me with a sample code on how to implement Bar Code in forms retrieving the bar code numeric values from the database?
2, Could you also provide me with a sample code on how to control the number of pages to be displayed at certain conditions in Telerik Report Viewer?
Thank you for your help in advance.
public RegistrationSummaryReport() |
{ InitializeComponent(); |
DataView source = getDataSource(); |
this.DataSource = source; |
ReportParameter param = new ReportParameter(); |
param.Name = "paramEP"; |
param.Type = Telerik.Reporting.ReportParameterType.String; |
param.UI.AvailableValues.DataSource = source; |
param.UI.AvailableValues.ValueMember = "=Fields.ProductId"; |
param.UI.AvailableValues.DisplayMember = "=Fields.ProductName"; |
param.UI.MultiValue = true; |
param.UI.Visible = true; |
this.ReportParameters.Add(param); |
public RegistrationSummaryReport() | |
{ InitializeComponent(); |
|
DataView source = getDataSource(); | |
this.DataSource = source; | |
List<string> eps = new List<string>(); | |
foreach (DataRowView dr in source) | |
eps.Add(DataUtility.MakeNullEmpty(dr["ProductName"])); | |
ReportParameter param = new ReportParameter(); | |
param.Name = "paramEP"; | |
param.Type = Telerik.Reporting.ReportParameterType.String; | |
param.UI.MultiValue = true; | |
param.UI.Visible = true; | |
param.Value = eps; | |
this.ReportParameters.Add(param); |