We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Borderless table

Thread ID:

Created:

Updated:

Platform:

Replies:

75276 Jul 18,2008 09:42 AM Jul 30,2008 12:25 AM Windows Forms 5
loading
Tags: PDF
Dennis van der Stelt
Asked On July 18, 2008 09:42 AM

Simple question, how do I create a borderless table?

Thanks


Sri Subhashini M [Syncfusion]
Replied On July 21, 2008 12:52 AM

Hi,

Thank you for your interest in Essential PDF.

We can create borderless table by assigning the cell color as white. Kindly use the below code snippet to create borderless table.

// Creating pen style
PdfPen borderPen = new PdfPen(Color.White);
// Assigning the cell style as penstyle
PdfCellStyle defStyle = new PdfCellStyle();
defStyle.BorderPen = borderPen;
// Assigning the penstyle as default
table.Style.DefaultStyle = defStyle;

Please look into the below sample from the specified location and let me know if this helps.
http://www.syncfusion.com/support/user/uploads/Sample_a8e72c1e.zip

Regards,
Suba




Dennis van der Stelt
Replied On July 25, 2008 03:13 AM

That's not really a solution, it's a work-around! I'm loading a .jpg in the background which has a white/green background. So I now have to make sure the tables aren't drawn over the green background or you'll see white borders.


Sri Subhashini M [Syncfusion]
Replied On July 25, 2008 08:05 AM

Hi,

Sorry for the inconvenience caused.

Table Border`s Transparent color is not working properly.

The issue mentioned here is suspected to be a defect and we have sent this to our development team for more analysis. We will update you once we get back from our development team.

Thanks for your patience.

Regards,
Suba



Sri Subhashini M [Syncfusion]
Replied On July 29, 2008 06:15 AM

Hi Dennis,

Sorry for the delay in getting back with you.

Could you please try to set the BorderPen as Transparent color in order to draw borderless table. Kindly look into the code snippet to draw the border less table,

PdfCellStyle style = new PdfCellStyle();
style.BorderPen = new PdfPen(PdfBrushes.Transparent);
table2.Style.DefaultStyle = style;

Please look into the sample and let me know if this helps,
http://www.syncfusion.com/support/user/uploads/Sample_2d266bba.zip

Regards,
Suba


Sri Subhashini M [Syncfusion]
Replied On July 30, 2008 12:25 AM

Hi Dennis,

Table Border`s Transparent color is not working properly.

This mentioned issue has been fixed. The fix for this defect is available in our next week Development build.

Please refer to the below link for the weekly development build updates.
http://www.syncfusion.com/downloads/product/build.aspx

Regards,
Suba



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;