By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 1,115 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

Implementing CSS in Crystal Reports 10

P: 1
Hi All,

We have more than 50 Crystal Reports (Implemented) in our project.

Please let us know how to implement Cascading Style Sheet to Text Objects and Line Objects in Crystal Reports and also it needs to be reflect in PDF while exporting.

We got output through .Net Code Behind file by implementing System.Drawings.Color to Report Objects. But Client is not willing for System.Drawings.Color and also Change in existing Code Behind files.

We are able to apply CSS to Report objects as mentioned in attachment, but its reflecting only in report not in PDF while exporting.

Please let us know if you have any suggestions.

Thanks in Advance

Thanks & Regards
Satya Prasad
Sep 28 '06 #1
Share this Question
Share on Google+
6 Replies


P: 1
Hi Buddy,

Have you got the solution? Please let me know if you got.
Oct 26 '06 #2

P: 1
I also want to know the solution if u have got the solution plz tell me.
May 10 '07 #3

P: 1
I also have the same problem.

i just want to know how to write the css for crystal report 11 release 2.
Pease help us out?

Thanks
Neo
May 23 '07 #4

drhowarddrfine
Expert 5K+
P: 7,435
I don't know anything about Crystal Reports so I googled for it. Apparently it's capable of generating XML files? If so, CSS can style them just like it styles HTML but I'm wondering if XSL may be more appropriate.
May 23 '07 #5

P: 1
To format reports using HTML class values

Right-click in the embedded Crystal Reports Designer and select Set CSS Class.
In the Object Scope field, select the objects or sections you would like the class to be applied to.
Enter the name of the class in the CSS Class Name field.
Tip Use CssClass in the Properties window to view, edit, or delete the class values for a specific report object or section.
Click OK.
Save the report.
In the web application file, reference an external style sheet that has the class already defined, or enter the class value.
For example:

<HTML>
<STYLE>
.classname
{
background-color:808080; border-color:000000; color:000000; font-family:Arial; font-weight:bold; font-style:italic; }
<STYLE>
</HTML>
Sep 25 '08 #6

P: 1
Can anyone help me to solve this problem?
Its urgent.
Thanx in advance.
May 8 '09 #7

Post your reply

Sign in to post your reply or Sign up for a free account.