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

style sheet for trdx file

4 Answers 74 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Devesh
Top achievements
Rank 1
Devesh asked on 20 May 2016, 09:15 AM

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

4 Answers, 1 is accepted

Sort by
0
Devesh
Top achievements
Rank 1
answered on 24 May 2016, 12:20 PM
Any idea?
0
Nasko
Telerik team
answered on 24 May 2016, 03:23 PM
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
0
Graham
Top achievements
Rank 1
answered on 13 Sep 2017, 04:17 PM

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?

0
Katia
Telerik team
answered on 18 Sep 2017, 09:49 AM
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
Tags
Report Designer (standalone)
Asked by
Devesh
Top achievements
Rank 1
Answers by
Devesh
Top achievements
Rank 1
Nasko
Telerik team
Graham
Top achievements
Rank 1
Katia
Telerik team
Share this question
or