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.

PDF Font Style

Thread ID:

Created:

Updated:

Platform:

Replies:

97197 Nov 7,2010 08:31 PM Nov 9,2010 08:18 AM ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
James Knowlton
Asked On November 7, 2010 08:31 PM

Is there a way to set both BOLD and UNDERLINE at the same time for a table cell? Here is an example of my code to set the text BOLD, how can I adjust it to make it both BOLD and Underline:

Dim table_ As PdfLightTable = New PdfLightTable()
table_.DataSourceType = PdfLightTableDataSourceType.TableDirect

'make the table borders transparent
Dim borderPen_ As PdfPen = New PdfPen(Color.Transparent)
borderPen_.Width = 1.0F

'Create a default style for our table
Dim defStyle_ As PdfCellStyle = New PdfCellStyle()
defStyle_.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10, PdfFontStyle.Bold)
defStyle_.BorderPen = borderPen_

'set custom table style properties
table_.Style.DefaultStyle = defStyle_



Selvakumar P [Syncfusion]
Replied On November 9, 2010 08:18 AM

Hi james,

Thank you for using Syncfusion Products.

It is possible to set the font style as both Bold and Underline in a PdfTable.Please look into the code snippet given below:

'Setting FontStyle as both Bold and Underline
defStyle_.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10, PdfFontStyle.Bold Or PdfFontStyle.Underline)

and also refer with the sample which we have posted,

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=PdfFontStyle877645221.zip

regards,
Selvakumar


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.

;