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

Telerik Reports and CSS

3 Answers 221 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mihai
Top achievements
Rank 1
Mihai asked on 24 Apr 2013, 02:19 PM
Hello there,

I have a small issue, in that I would like to create a CSS file for my report.
I made an invoice, which will be displayed on a website and also exported and sent by the seller to his customers. Unfortunately there are some issues here:

1. since it's made out to be print-ready, the invoice itself is only about 600px wide...i would like to modify that so it will actually look good on the screen
2. i would like (seeing as I'm a web developer, very much used to working with CSS) to just apply some simple CSS rules to my invoice (i.e. fonts, colors, width, height, etc) but everytime I try to do that, nothing happens (this is the first time I've had to work with Telerik Reports...not really fammiliar with it yet)
3. if I actually manage to apply CSS to it, do I need to create some media querries for printing and exporting? or is that handled by the application itself?

3 Answers, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 29 Apr 2013, 11:59 AM
Hello Mihai,

Applying CSS to the report is not possible since this feature would have been available only in the HTML rendering. Therefore in order to preserve the consistency between the rendering extensions and the report viewers Telerik Reporting has its own way of styling the reports, which is much like the CSS way.

For more information regarding the styling of the report please check this help article.

Having this in mind:
  1. You will have to change the report definition itself, which is not possible with CSS.
  2. This is not possible since the report is placed in an iframe.
  3. You can change the design of the report by using Report Parameters, which will be the equivalent of media queries in Telerik Reporting.

Greetings,
IvanY
the Telerik team

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Eric
Top achievements
Rank 1
answered on 22 Jun 2016, 06:00 PM
Just a heads up your link to the help article is dead.
0
Stef
Telerik team
answered on 24 Jun 2016, 04:25 PM
Hi Eric,

Details about styling reports can be found in the Styling Reports section.

I hope this helps.

Regards,
Stef
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
General Discussions
Asked by
Mihai
Top achievements
Rank 1
Answers by
IvanY
Telerik team
Eric
Top achievements
Rank 1
Stef
Telerik team
Share this question
or