Jasperreport Negrito em PDF ?[RESOLVIDO]  XML
Índice dos Fóruns » Java Avançado
Autor Mensagem
Metaleiro
Virtual Machine Man
[Avatar]

Membro desde: 06/07/2006 10:55:54
Mensagens: 671
Localização: São Bernardo do Campo - SP
Offline

Quando coloco a opção negrito e tento imprimir em PDF no Jasperreport até mesmo no Preview, simplesmente não ocorre nada, tentei algumas opções na internet e até agora não encontrei nada, alguém saberia como resolver ?

Desde já agradeço !

This message was edited 1 time. Last update was at 07/07/2011 10:27:23


"Why, Mr. Anderson? Why do you do it? Why get up? Why keep fighting? Do you believe you're fighting for something? For more than your survival? Can you tell me what it is? Do you even know? Is it freedom? Or truth? Perhaps peace? Yes? No? Could it be for love? Illusions, Mr. Anderson. Vagaries of perception. The temporary constructs of a feeble human intellect trying desperately to justify an existence that is without meaning or purpose. And all of them as artificial as the Matrix itself, although only a human mind could invent something as insipid as love. You must be able to see it, Mr. Anderson. You must know it by now. You can?t win. It?s pointless to keep fighting. Why, Mr. Anderson? Why? Why do you persist?"

Neo :
-Because is my choice

leoramos
GUJ Ranger
[Avatar]

Membro desde: 28/03/2008 12:22:12
Mensagens: 845
Localização: Florianópolis / SC
Offline

Uma das opções é colocar o markup do textField como html e, na parte que for negritada, usar tags .
Porém, isso só vai funcionar se a fonte que tu estiveres utilizando também estiver disponível para o cliente.
Se não estiver, tens que setar a propriedade isPdfEmbedded pra true.

Abraço!

"Nunca atribua à falta de caráter o que pode ser facilmente explicado pela estupidez."
[Email] [MSN]
Metaleiro
Virtual Machine Man
[Avatar]

Membro desde: 06/07/2006 10:55:54
Mensagens: 671
Localização: São Bernardo do Campo - SP
Offline

leoramos wrote:Uma das opções é colocar o markup do textField como html e, na parte que for negritada, usar tags .
Porém, isso só vai funcionar se a fonte que tu estiveres utilizando também estiver disponível para o cliente.
Se não estiver, tens que setar a propriedade isPdfEmbedded pra true.

Abraço!



Obrigado, tentei usar as duas opções mas nenhuma funcionou.

"Why, Mr. Anderson? Why do you do it? Why get up? Why keep fighting? Do you believe you're fighting for something? For more than your survival? Can you tell me what it is? Do you even know? Is it freedom? Or truth? Perhaps peace? Yes? No? Could it be for love? Illusions, Mr. Anderson. Vagaries of perception. The temporary constructs of a feeble human intellect trying desperately to justify an existence that is without meaning or purpose. And all of them as artificial as the Matrix itself, although only a human mind could invent something as insipid as love. You must be able to see it, Mr. Anderson. You must know it by now. You can?t win. It?s pointless to keep fighting. Why, Mr. Anderson? Why? Why do you persist?"

Neo :
-Because is my choice

leoramos
GUJ Ranger
[Avatar]

Membro desde: 28/03/2008 12:22:12
Mensagens: 845
Localização: Florianópolis / SC
Offline

Que fonte tu estás usando? Tens a versão bold dela instalada?

"Nunca atribua à falta de caráter o que pode ser facilmente explicado pela estupidez."
[Email] [MSN]
Metaleiro
Virtual Machine Man
[Avatar]

Membro desde: 06/07/2006 10:55:54
Mensagens: 671
Localização: São Bernardo do Campo - SP
Offline

Estou usando arial

"Why, Mr. Anderson? Why do you do it? Why get up? Why keep fighting? Do you believe you're fighting for something? For more than your survival? Can you tell me what it is? Do you even know? Is it freedom? Or truth? Perhaps peace? Yes? No? Could it be for love? Illusions, Mr. Anderson. Vagaries of perception. The temporary constructs of a feeble human intellect trying desperately to justify an existence that is without meaning or purpose. And all of them as artificial as the Matrix itself, although only a human mind could invent something as insipid as love. You must be able to see it, Mr. Anderson. You must know it by now. You can?t win. It?s pointless to keep fighting. Why, Mr. Anderson? Why? Why do you persist?"

Neo :
-Because is my choice

leoramos
GUJ Ranger
[Avatar]

Membro desde: 28/03/2008 12:22:12
Mensagens: 845
Localização: Florianópolis / SC
Offline

Tens Arial Bold no micro?
É windows ou linux aí?

"Nunca atribua à falta de caráter o que pode ser facilmente explicado pela estupidez."
[Email] [MSN]
Metaleiro
Virtual Machine Man
[Avatar]

Membro desde: 06/07/2006 10:55:54
Mensagens: 671
Localização: São Bernardo do Campo - SP
Offline

É Mac OS

"Why, Mr. Anderson? Why do you do it? Why get up? Why keep fighting? Do you believe you're fighting for something? For more than your survival? Can you tell me what it is? Do you even know? Is it freedom? Or truth? Perhaps peace? Yes? No? Could it be for love? Illusions, Mr. Anderson. Vagaries of perception. The temporary constructs of a feeble human intellect trying desperately to justify an existence that is without meaning or purpose. And all of them as artificial as the Matrix itself, although only a human mind could invent something as insipid as love. You must be able to see it, Mr. Anderson. You must know it by now. You can?t win. It?s pointless to keep fighting. Why, Mr. Anderson? Why? Why do you persist?"

Neo :
-Because is my choice

leoramos
GUJ Ranger
[Avatar]

Membro desde: 28/03/2008 12:22:12
Mensagens: 845
Localização: Florianópolis / SC
Offline

HAHAHA pergunta idiota que eu fiz, desculpa aí!
Cara, proposta idiota: muda tua fonte pra uma nativa que tu já tenhas visto impressa em PDF como negrito e testa.
Só pra desencargo, mesmo.

"Nunca atribua à falta de caráter o que pode ser facilmente explicado pela estupidez."
[Email] [MSN]
lokits5
GUJ Master

Membro desde: 15/04/2010 08:53:19
Mensagens: 1133
Localização: Santo Andre - São Paulo -Capital
Offline

qual a versão do IReport?

vc clicando em algum campo com o botão direito do mouse tem a opção de escolher o NOME DA FONTE NO PDF

tem as opções em baixo e tbm as opção como deseja

[WWW]
Metaleiro
Virtual Machine Man
[Avatar]

Membro desde: 06/07/2006 10:55:54
Mensagens: 671
Localização: São Bernardo do Campo - SP
Offline

No preview sai tudo perfeito, mas no PDF não, obrigado.

"Why, Mr. Anderson? Why do you do it? Why get up? Why keep fighting? Do you believe you're fighting for something? For more than your survival? Can you tell me what it is? Do you even know? Is it freedom? Or truth? Perhaps peace? Yes? No? Could it be for love? Illusions, Mr. Anderson. Vagaries of perception. The temporary constructs of a feeble human intellect trying desperately to justify an existence that is without meaning or purpose. And all of them as artificial as the Matrix itself, although only a human mind could invent something as insipid as love. You must be able to see it, Mr. Anderson. You must know it by now. You can?t win. It?s pointless to keep fighting. Why, Mr. Anderson? Why? Why do you persist?"

Neo :
-Because is my choice

Metaleiro
Virtual Machine Man
[Avatar]

Membro desde: 06/07/2006 10:55:54
Mensagens: 671
Localização: São Bernardo do Campo - SP
Offline

Consegui havia uma opção :

Pdf Font name is now deprecated. You should use a Font extension when using a not standard font. See Tools->Options->Fonts. Helvetica-Bold

alterei essa opção para Helvetica-Bold


Obrigado a todos.

"Why, Mr. Anderson? Why do you do it? Why get up? Why keep fighting? Do you believe you're fighting for something? For more than your survival? Can you tell me what it is? Do you even know? Is it freedom? Or truth? Perhaps peace? Yes? No? Could it be for love? Illusions, Mr. Anderson. Vagaries of perception. The temporary constructs of a feeble human intellect trying desperately to justify an existence that is without meaning or purpose. And all of them as artificial as the Matrix itself, although only a human mind could invent something as insipid as love. You must be able to see it, Mr. Anderson. You must know it by now. You can?t win. It?s pointless to keep fighting. Why, Mr. Anderson? Why? Why do you persist?"

Neo :
-Because is my choice

 
Índice dos Fóruns » Java Avançado
Ir para:   
Powered by JForum 2.1.8 © JForum Team