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

How to share style sheets across reports?

2 Answers 168 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 30 Sep 2019, 07:09 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 03 Oct 2019, 12:15 PM

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
0
Karl
Top achievements
Rank 1
answered on 07 Oct 2019, 11:57 AM
Thank you.
Tags
Report Designer (standalone)
Asked by
Karl
Top achievements
Rank 1
Answers by
Peter
Telerik team
Karl
Top achievements
Rank 1
Share this question
or