Implementing CSS in Crystal Reports 10

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • satyamedicherla
    New Member
    • Sep 2006
    • 1

    Implementing CSS in Crystal Reports 10

    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
  • vsundar
    New Member
    • Oct 2006
    • 1

    #2
    Hi Buddy,

    Have you got the solution? Please let me know if you got.

    Comment

    • Munazzah Nawaz
      New Member
      • May 2007
      • 1

      #3
      I also want to know the solution if u have got the solution plz tell me.

      Comment

      • neo2exp
        New Member
        • May 2007
        • 1

        #4
        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

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          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.

          Comment

          • sqzaman
            New Member
            • Sep 2008
            • 1

            #6
            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>

            Comment

            • study4robert
              New Member
              • May 2009
              • 1

              #7
              Can anyone help me to solve this problem?
              Its urgent.
              Thanx in advance.

              Comment

              Working...