This is a migrated thread and some comments may be shown as answers.

.ini file as footer

3 Answers 5 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 12 Jan 2017, 07:34 PM

The report I'm trying to create now has information from a .ini file which is housed on the server. This is all the information I need, so other than grabbing all the text out of the file and putting it in the textbox is there a way to just use the file as the page footer for the report?

Thanks in advance

3 Answers, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 13 Jan 2017, 09:30 AM
Hi Daniel,

You can use a separate data item (Table, , List) and set its DataSource property to one of the supported DataSource components.

After that, add a static group to the report and place the data item inside the GroupFooter section. To repeat this section at the bottom of each page set its PrintOnEveryPage property to true.


Regards,
Katia
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Daniel
Top achievements
Rank 1
answered on 16 Jan 2017, 03:48 PM

Katia,

Thanks for your reply, but I was hoping for something simpler... There's a way to set a textbox programmatically, right? I'll just set the textbox text to the text in the .ini file.

Thanks anyway

0
Katia
Telerik team
answered on 16 Jan 2017, 04:16 PM
Hi Daniel,

Setting a value of the report item is possible using the custom code after deserializing|unpackaging the report created with Standalone Designer.

A sample code that can be used for creating a TextBox item programmatically is provided in Creating Report Items Programmatically help article.

You can also check examples provided in Accessing Report Items Programmatically help article.


Regards,
Katia
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Report Designer (standalone)
Asked by
Daniel
Top achievements
Rank 1
Answers by
Katia
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or