.ini file as footer

4 posts, 0 answers
  1. Daniel
    Daniel avatar
    7 posts
    Member since:
    Nov 2016

    Posted 12 Jan 2017 Link to this post

    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

  2. Katia
    Admin
    Katia avatar
    693 posts

    Posted 13 Jan 2017 Link to this post

    Hi Daniel,

    You can use a separate data item (Table, CrossTab, 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
  3. Daniel
    Daniel avatar
    7 posts
    Member since:
    Nov 2016

    Posted 16 Jan 2017 in reply to Katia Link to this post

    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

  4. Katia
    Admin
    Katia avatar
    693 posts

    Posted 16 Jan 2017 Link to this post

    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
Back to Top