Telerik Forums
Reporting Forum
2 answers
183 views

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.

Todor
Telerik team
 answered on 04 Dec 2017
1 answer
211 views

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?

Silviya
Telerik team
 answered on 04 Dec 2017
0 answers
124 views

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,

smail
Top achievements
Rank 1
 asked on 02 Dec 2017
7 answers
623 views
I must set all report parameters to some default values. But before to view the report users must be able to change some parameters as the like. And only after the preview button is clicked the report must be generated. Now report is automatically generated unless all parameters are not supplied.
Who can help?
 
Katia
Telerik team
 answered on 30 Nov 2017
1 answer
154 views

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,

Katia
Telerik team
 answered on 29 Nov 2017
3 answers
1.0K+ views

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

 

Katia
Telerik team
 answered on 29 Nov 2017
3 answers
363 views
I would like to make one textbox to change its size when the neighbouring textbox changes its size. I have a situation where one textbox grows vertically in size because of its input, and the textbox next to it (which represents a label) stays the same.
Katia
Telerik team
 answered on 29 Nov 2017
1 answer
142 views

Hi,

 

Can you please give me a sample code how I can add multiple bookmark id in the report?

Im loading data from a textfile and load it in a 1 textbox. From there, I want to add multiple bookmarks.

 

Please give me a sample code how I can do it? Already browsed your docs but only description are available.

 

Thanks,

Katia
Telerik team
 answered on 29 Nov 2017
2 answers
145 views

HI,

 

I have a report with one sub report. On sub-report i have a list where items are aligned to horizontal. I set KeepTogheter = True and Page Break = After.I need for each project details other new page.

The problem is the "Project Number" which is populated only one time but all information for the projects are populated to report without project number. Page break doesn't work also.

I attached a print about the situation

Thank you
Silviya
Telerik team
 answered on 28 Nov 2017
1 answer
1.2K+ views

Hi,

 

How do I change the forecolor of specific string in a textbox in telerik reporting in code behind?

Im pretty sure that I will put the code in the databind event but how do I code there?

For example, the string data is "Change the string property of the textbox" in a textbox. Now I want to change the forecolor to of "property" and the "textbox" to yellow and I want to make it Bold.

How do I do that?

Thanks,

 

Silviya
Telerik team
 answered on 24 Nov 2017
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?