PdfPTable border color overlap

View: New views
7 Messages — Rating Filter:   Alert me  

PdfPTable border color overlap

by W.D :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

I’m trying to assign different colors to the bottom border and top border, and it doesn’t seem to work. Below is my code. Please help. Thanks.

 

Both top boder and bottom border of Cell_2 has the wrong color. I have two questions:

  1. why I can’t assign different color to Top Border and Bottom Border?
  2. How can I get the cell_2’s Top Border color (RED) overwrite cell_1’s Bottom Border color (GRAY)?

 

******************************************************************************

table=new PdfPTable(1);

cell_1=new PdfPCell(“cell 1”);

cell.BorderColorBottom=Color.GRAY;

cell.Border=Rectangle.BOTTOM_BORDER;     

 

cell_2=new PdfPCell(“cell 2”);

cell.BorderColorTop=Color.RED;

cell.BorderColorBottom=Color.GRAY;

cell.Border=Rectangle.BOTTOM_BORDER | Rectangle.TOP_BORDER;

******************************************************************************

 

 

Best Regards,

 

W.D

 


The information contained in this e-mail, and any attachment, is confidential and is intended solely for the use of the intended recipient. Access, copying or re-use of the e-mail or any attachment, or any information contained therein, by any other person is not authorized. If you are not the intended recipient please return the e-mail to the sender and delete it from your computer. Although we attempt to sweep e-mail and attachments for viruses, we do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of viruses.

Please refer to http://disclaimer.bnymellon.com/eu.htm for certain disclosures relating to European legal entities.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Re: PdfPTable border color overlap

by Paulo Soares :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You need UseVariableBorders = true.

Paulo

----- Original Message -----
From: "Ding Wei J" <wei.ding@...>
To: <itextsharp-questions@...>
Sent: Thursday, July 24, 2008 9:34 AM
Subject: [itextsharp-questions] PdfPTable border color overlap


Hi,

I’m trying to assign different colors to the bottom border and top border,
and it doesn’t seem to work. Below is my code. Please help. Thanks.

Both top boder and bottom border of Cell_2 has the wrong color. I have two
questions:

 1.  why I can’t assign different color to Top Border and Bottom Border?
 2.  How can I get the cell_2’s Top Border color (RED) overwrite cell_1’s
Bottom Border color (GRAY)?

******************************************************************************
table=new PdfPTable(1);
cell_1=new PdfPCell(“cell 1”);
cell.BorderColorBottom=Color.GRAY;
cell.Border=Rectangle.BOTTOM_BORDER;

cell_2=new PdfPCell(“cell 2”);
cell.BorderColorTop=Color.RED;
cell.BorderColorBottom=Color.GRAY;
cell.Border=Rectangle.BOTTOM_BORDER | Rectangle.TOP_BORDER;
******************************************************************************


Best Regards,

W.D


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Re: PdfPTable border color overlap

by camino8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, Paulo

I have created Table in my pdf. Only i have 2 problems:
- how can i fix the width of table? I have used the property Width but i don't works fine.
- how can i fix the separation between cells?  I have used the property Cellpadding, Cellspacing but they don't works fine.
- how can i indicate the width of column? i have one that duplicate. I have used SetWidths but nothing.

Thanks for your help.
Regards.
camino.


Re: PdfPTable border color overlap

by Paulo Soares-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The answer was about PdfPTable. Table is not supported anymore.

Paulo

> -----Original Message-----
> From: itextsharp-questions-bounces@...
> [mailto:itextsharp-questions-bounces@...]
> On Behalf Of camino8
> Sent: Friday, August 01, 2008 12:56 PM
> To: itextsharp-questions@...
> Subject: Re: [itextsharp-questions] PdfPTable border color overlap
>
>
> Hello, Paulo
>
> I have created Table in my pdf. Only i have 2 problems:
> - how can i fix the width of table? I have used the property
> Width but i
> don't works fine.
> - how can i fix the separation between cells?  I have used
> the property
> Cellpadding, Cellspacing but they don't works fine.
> - how can i indicate the width of column? i have one that
> duplicate. I have
> used SetWidths but nothing.
>
> Thanks for your help.
> Regards.
> camino.

Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem.

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Re: PdfPTable border color overlap

by camino8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks.
Can you say me where to find information over PdfTable? constructor, methods, ...
In the tutorial, only Table is used.

Thanks for your help.
Regards.

Re: PdfPTable border color overlap

by Paulo Soares-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There's abundant documentation about PdfPTable in Java, it's trivial to adapt to C#. The first source is the book "iText in Action", lots of explained examples and details. There's also a tutorial at http://itextdocs.lowagie.com/tutorial/ and more examples at http://1t3xt.info/examples/browse/index.php.

Paulo

> -----Original Message-----
> From: itextsharp-questions-bounces@...
> [mailto:itextsharp-questions-bounces@...]
> On Behalf Of camino8
> Sent: Friday, August 01, 2008 4:26 PM
> To: itextsharp-questions@...
> Subject: Re: [itextsharp-questions] PdfPTable border color overlap
>
>
> Thanks.
> Can you say me where to find information over PdfTable? constructor,
> methods, ...
> In the tutorial, only Table is used.
>
> Thanks for your help.
> Regards.

Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem.

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Re: PdfPTable border color overlap

by camino8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your help.

Regards.