Jump to content
Fórum Script Brasil
  • 0

CSS no crystal reports


Tiago_BB

Question

Ola pessoal.

Por um acaso alguém sabe trabalhar com CSS no Crystal reports!!!

Tem um apropriedade no relatório chamada Set CSS Class... fiz tudo certo, inseri a tag no html do arquivo .aspx para referenciar minha classe CSs mas caso eu insira um objeto no no design do Crystal e altere a propriedade cssclass não faz nada!!!

Alguma sugestão?

Estou usando o crystal no vb.net 2003.

Obrigado!!!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Tem um apropriedade no relatório chamada Set CSS Class... fiz tudo certo, inseri a tag no html do arquivo .aspx para referenciar minha classe CSs mas caso eu insira um objeto no no design do Crystal e altere a propriedade cssclass não faz nada!!!

Tente traduzir que voce entenderá o que tem que fazer

Formatting Reports using HTML Classes

See Also

Absolute Formatting | Conditional Formatting | Formatting Report Sections | Enhancing Report Presentation

Instead of formatting report objects or sections in the embedded Crystal Reports Designer, you can use classes in a cascading style sheet (CSS) to apply formatting to reports viewed over the Web.

Generally, when you create a report, you format a particular report object (for example, a database field or text object) within the embedded Crystal Reports Designer. When the report is rendered into HTML and viewed, these formatting options are automatically converted into HTML. To change the formatting of the HTML page, you would need to make a change to the Crystal report itself.

The Set CSS Class option enables you to apply classes to report objects and to sections of a report, instead of manually changing the formatting of the report. You specify the name of the class and its scope in the embedded Crystal Reports Designer and then specify the value of the class within your web application files or through an external style sheet. The formatting specified is then applied to the report when the report is rendered into HTML.

To format reports using HTML class values

1- Right-click in the embedded Crystal Reports Designer and select Set CSS Class.

2- In the Object Scope field, select the objects or sections you would like the class to be applied to.

3- Enter the name of the class in the CSS Class Name field.

4- Tip Use CssClass in the Properties window to view, edit, or delete the class values for a specific report object or section.

5- Click OK.

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

Mais informações

http://publib.boulder.ibm.com/infocenter/r...ssdialogbox.htm

abraço

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...