PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Formatting a word inside a paragraph text.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
mr_kunaljain



Joined: 05 Jul 2007
Posts: 1

PostPosted: Thu Jul 05, 2007 9:50 am    Post subject: Formatting a word inside a paragraph text. Reply with quote

Hi ,

Thanks for making a useful tool like PDFSharp.

I am new to PDFsharp and have been using it for last 10-15 days.

In one of my paragraph the string contents are from DB. These string values are to be shown in bold. I have used the following code to generate the pararaph in my PDF.

string strPara;
strPara = "Please submit this form, along with your resume, to the address below. You do not need to include anything else, because you have selected the " + strDeadline_Title + ", you must arrive at our office no later than " + Deadline_Date + " ! This is not a postmark deadline.";

XTextFormatter oPara = new XTextFormatter(gfx);
oPara.Alignment = XParagraphAlignment.Justify;
oPara.DrawString(strPara, font, XBrushes.Black, new XRect(new XPoint(leftMargin, currentY - 10), new XSize(pageWidth - (leftMargin + rightMargin), 40)));

The output of the above code is working fine. But now I need to show the value strDeadline_Title and Deadline_Date in BOLD in the PDF.

Is there anyway that will make these 2 values appear bold in the paragraph and my paragraph appear Justified aligned.

Note : the values from does not have fixed width.

Please reply soon , it urgent .. Smile
Thanks
Kunal
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com