cancel
Showing results for 
Search instead for 
Did you mean: 

CrystalReportViewer export/print report without CSS styles

Former Member
0 Kudos

Hello,

I've faced with one issue in CrystalReportViewer control and couldn't solve it by my own efforts. Before I wanted post it exactly to this forum I've found that some people already faced with that problem too...but nobody didn't receive any answer, so I have a big hope that I'll receive it here.

My problem is related to CrystalReportViewer control and especially to its styles. I have a test application which has just one aspx page which displays very simple test report (just 3 TextObjects, for test purposes) and each TextObject has its own style which stores in css file in my web site. So, CrystalReportViewer control displays report correct, but when I export/print this report to PDF or any other document all styles are lost.

Could someone help me with this issue or maybe just point me what thing I missed or just tuned incorrect.

Thanks in advance.

Best regards,

Sasha

Accepted Solutions (1)

Accepted Solutions (1)

Adam_Stone
Active Contributor
0 Kudos

CSS files are only used when rendering the report in a web application, they are not used when exporting or printing. In order for the report to appear how you want when exporting and printing, you need to design the report to have that formatting.

Former Member
0 Kudos

It's a pity that this control hasn't possibility to export/print report with its styles, because I think it is a very useful thing.

Thank you very much Adam, for your short and clear answer.

Answers (0)