4 Answers, 1 is accepted
You can create a common stylesheet file and reuse it as described in the Exporting and Reusing Style Sheets help article.
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?
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.