How to share style sheets across reports?

3 posts, 1 answers
  1. Karl
    Karl avatar
    20 posts
    Member since:
    Aug 2019

    Posted 30 Sep 2019 Link to this post

    Hi,

    I'm using the Standalone report designer and have exported my stylesheet.xml.

    I read https://docs.telerik.com/reporting/style-exportingand-reusing-style-sheets?_ga=2.155451643.1765117186.1569843212-799383587.1565369057

    When I create my next report using the standalone designer, I can't figure out where to locate the stylesheet.xml.

    My Directory Structures

    c:\repos\Reporting\Reports\ - all my reports are here

    c:\repos\Reporting\Reports\StyleSheets\    - I've tried copying my stylesheet.xml here, no luck.

    c:\ReportDesigner\ - I have the Telerik.ReportDesigner.exe and other files here.

    What do I have to do so that the stylesheet.xml is automatcaily added to new reports I create?

    Why don't you have an "import" feature to import stylesheets?

    Do the external stylesheets have to be available at runtime?

     

    So I really have two quesitons:

    Designtime location?

    Runtime location?

    Thank you,

    Karl

     

     

     

  2. Answer
    Peter
    Admin
    Peter avatar
    1665 posts

    Posted 03 Oct 2019 Link to this post

    Hi Karl,

    The exact external style sheets should be specified in the External Style Sheets editor. This is required because some users need different style or collection of styles for different reports. The idea is to make this option more flexible.

    I have noticed that the Report ExternalStyleSheet property is mistyped and I will fix that for the next documentation upload. Here is the corrected steps:

    1. Open the report in design view.
    2. Select the Report object.
    3. Click in the ExternalStylesSheets property, and then click the ellipsis button to open the Collection Editor.
    4. Click the New icon in the upper left corner of the Collection Editor window. This will open a File Open dialog. You will be located in the current project's root directory.
    5. Browse to, and then select, the exported Style Sheet. Click Open. This action will return you to the Collection Editor window.
    6. When you are finished adding Style Sheets, click OK.

    When using the Standalone Report Designer the External Style Sheets are relative to the trdp/trdx report definition. 

    Yes, the External Style Sheets should be available runtime relatively to the report definition when trdp/trdx report definition is used in application project.

    Regards,
    Peter
    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
  3. Karl
    Karl avatar
    20 posts
    Member since:
    Aug 2019

    Posted 07 Oct 2019 in reply to Peter Link to this post

    Thank you.
Back to Top