I've faced a problem in the reporting. Sometime the telerik report not showing it's navigation bar. So, I can't download the report file and can't zoom the report. I've marked the navigation bar for better understanding. Sometime the navigation bar show and sometimes disappear.
Now, I want to know how to solved this problem.
I've checked the Developer Tools (Network tab). Everything is fine and loading.
I've added the network tab, element tab and the report. In the report I've marked the navigation bar which is not showing.
Thanks in advance.
I have a report that is a report of items contained in a package.
The data source for this report is from SQL.
I have a field called Fields.PackageID, which in this example is 157893. It will always be a unique number. When I put this field in a textbox, it displays properly. When I put this field into a barcode with font 3 of 9 and scan it, the output is 157893X. Where X is a random letter. Some packages that I scan will give me an S or a P at the end. It varies. Before switching my report to telerik reporting, everything worked as intended.
Is there a way to troubleshoot this?
I thought about just shortening the string length by 1 using (ScannedNumber = ScannedNumber.Remove(ScannedNumber.Length - 1)) but when my package count goes into the 7 digit realm, it will start to cause issues. And we also scan other numbers with the program for products.
Thanks!
chartCS_HW_Quontity.IntelligentLabelsEnabled =
false;
chartCS_HW_Quontity.ChartTitle.TextBlock.Text = "Title Text";
reportAccess.getTotHWMachine(loc, dept, projid).ToString();
chartCS_HW_Quontity.PlotArea.Appearance.Border.Width = 0F;
chartCS_HW_Quontity.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.
Color.Transparent;
chartCS_HW_Quontity.PlotArea.Appearance.FillStyle.SecondColor = System.Drawing.
Color.Transparent;
chartCS_HW_Quontity.Legend.Appearance.Border.Visible =
false;ChartSeries serie = new ChartSeries();
serie.Type =
ChartSeriesType.Pie;
serie.Clear();
serie.Appearance.LegendDisplayMode = Telerik.Reporting.Charting.
ChartSeriesLegendDisplayMode.ItemLabels;
DataTable dt = new DataTable();
dt = reportModel.getQuontityOfHW(loc, dept, projid);
for (int i = 0; i < dt.Rows.Count ; i++)
{
ChartSeriesItem item = new ChartSeriesItem();
item.YValue =
Convert.ToDouble(dt.Rows[i]["count"].ToString());
item.Name = dt.Rows[i][
"papersize"].ToString();
item.Appearance.Exploded =
true;
item.Label.TextBlock.Text =
/*dt.Rows[i]["papersize"].ToString() +*/ "#%";
item.Appearance.FillStyle.FillType =
FillType.Solid;
if (i==0)
item.Appearance.FillStyle.MainColor =
Color.FromArgb(79,129,189);// Color.Blue;
if (i == 1)
item.Appearance.FillStyle.MainColor =
Color.FromArgb(192, 80, 77);
if (i == 2)
item.Appearance.FillStyle.MainColor =
Color.FromArgb(155, 187, 89);
if (i == 3)
item.Appearance.FillStyle.MainColor =
Color.FromArgb(128, 100, 162);
item.Label.TextBlock.Appearance.TextProperties.Color =
Color.Black;
serie.Items.Add(item);
}
chartCS_HW_Quontity.Series.Add(serie);
Hi. I'm wondering if it's possible to get access to the fields, textboxes, etc. on a standalone report after it's been rendered and placed onto report pages.
When a report is printed, I need to know which specific groups on the report are being printed so that I can set a Printed flag for the order that just had it's Order Confirmation printed. I can get the page numbers which were just printed, but now I need to know which page(s) the groups were rendered on.
Thanks for your time.
I'm using the True Print option, it works great, the problem is the printed content itself, the margins are off and thus part of the content is missing (see attached image).
When I open and print the same file using the Adobe Reader program the content is as fine.
Can something be done to prevent this from happening when printing from Chrome?
I am using Telerik reporting in my application and I am using Sqllite db file, I want the connection string to change according to the user.
I found this solution :
https://www.telerik.com/support/kb/reporting/details/changing-the-connection-string-dynamically-according-to-runtime-data
but I didn't know how to use it . I don't know what is a report source and i don't have a file with extention .trdx in my solution.
(i.e where to put this code : this.reportViewer1.ReportSource = reportSource;
this.reportViewer1.RefreshReport();
thanks,
Hi,
Im having trouble displaying the data to the documentmaptext. The code below is working which I programmatically add bookmark during the event of ItemDataBound event or even in the ItemDataBinding.
This is the code below :
private void detailTextBox_ItemDataBound(object sender, EventArgs e)
{
Telerik.Reporting.Processing.TextBox currentloadeddatainTextBox = (Telerik.Reporting.Processing.TextBox)sender;
Telerik.Reporting.Processing.IDataObject idataObject;
idataObject = currentloadeddatainTextBox.DataObject;
System.Data.DataRowView datarowView = (System.Data.DataRowView)idataObject.RawData;
System.Data.DataRow dataRow = datarowView.Row;
string PageGroupDetails = dataRow.ItemArray.GetValue(0).ToString();
string PageRow = dataRow.ItemArray.GetValue(2).ToString();
if (PageGroupDetails.Contains("[BKMARK]"))
{
if (bookmarkList.Count == 0)
{
bookmarkList.Add(new BookMarkList { BookMarkID = PageGroupDetails.Replace("[BKMARK]", "").Trim() });
detailTextBox.BookmarkId = PageGroupDetails.Replace("[BKMARK]", "").Trim();
detailTextBox.DocumentMapText = PageGroupDetails.Replace("[BKMARK]", "").Trim();
}
else
{
if (!bookmarkList.Exists(bookmarkList => bookmarkList.BookMarkID.Equals(PageGroupDetails.Replace("[BKMARK]", "").Trim())))
{
bookmarkList.Add(new BookMarkList { BookMarkID = PageGroupDetails.Replace("[BKMARK]", "").Trim() });
detailTextBox.BookmarkId = PageGroupDetails.Replace("[BKMARK]", "").Trim();
detailTextBox.DocumentMapText = PageGroupDetails.Replace("[BKMARK]", "").Trim();
}
}
currentloadeddatainTextBox.Style.Font.Bold = true;
}
}
public class BookMarkList
{
public string BookMarkID { get; set; }
}
The code is tied in the textbox control. I load all data into these textbox. Once loaded, the event itemdatabound will be triggered. In these event, I added condition that it will only add bookmark that it not yet added and also to check if the specific data has the "[BKMARK]" string which means that these part will be bookmarked.
Able to run the code but, somehow it doesn't display the correct documentmaptext properly, it shows duplicate data. tried debugging but I was only adding unique bookmark id and no duplicates.
Please I need your assistance on this.
Thanks,
Hi,
I have this scenario. I have a report with a header, a detail section and a footer. Inside of detail section I added a crosstab and a picture box. I want that the Crosstab and the picture box to start on new page (the crostab should start on a new page and then when the picture is drawn, the pciture should start on a new page). The problem is that I saw that the page break option can be used only on detail section. How can I accomplish this ?
I have also tried to add to report a header, 2 detail sections and footer but the report does not accept 2 setail sections.
Thanks