style sheet for trdx file

5 posts, 0 answers
  1. Devesh
    Devesh avatar
    5 posts
    Member since:
    May 2016

    Posted 20 May 2016 Link to this post

    Hi,

    Is there any option to create a stylesheet for trdx files. The idea is to have a common place for common settings such as font-size font weight, font family, background color. border size etc for all reports.

     

    Regards

    Devesh

  2. Devesh
    Devesh avatar
    5 posts
    Member since:
    May 2016

    Posted 24 May 2016 Link to this post

    Any idea?
  3. Nasko
    Admin
    Nasko avatar
    941 posts

    Posted 24 May 2016 Link to this post

    Hello Devesh,

    You can create a common stylesheet file and reuse it as described in the Exporting and Reusing Style Sheets help article.

    Regards,
    Nasko
    Telerik
    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
  4. Graham
    Graham avatar
    3 posts
    Member since:
    Oct 2015

    Posted 13 Sep Link to this post

    We have a use-case within which the current stylesheet mechanism doesn't work.  

    We allow admin end-users to upload .tdrp files to our cloud-based application.  The .tdrp files are stored as binary within a database & rendered via the html5 viewer & the webapi REST service.  This works perfectly.

    In this scenario how can stylesheets be used?

    I can't point the external stylesheet to a url - I've tried and the standalone designer / open file dialog downloads the asset to appdata on local machine.

    I can't import the stylesheet (please see feature request someone else has raised).

    I can't edit the .trdp file to paste the stylesheet fragment; it's binary not xml.

    So, in order to get consistent styling, I need to *manually* enter the style information for any custom reports.  Is this right?

  5. Katia
    Admin
    Katia avatar
    567 posts

    Posted 18 Sep Link to this post

    Hi Graham,

    It is possible to modify the report styles programamtically. You will need to unpackage the TRDP report definition first in order to get the report object.
    To reach the inner report items you can use Find method - check this example.


    Regards,
    Katia
    Progress Telerik
    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