Ir para conteúdo
Fórum Script Brasil
  • 0

CSS no crystal reports


Tiago_BB

Pergunta

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 para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts Recomendados

  • 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 para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,2k
    • Posts
      652,1k
×
×
  • Criar Novo...