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 

Important Notice: We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024. If you wish to migrate to our paid hosting service, please contact billing@hostonnet.com.
Problem Aligning String Right

 
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
jasonu



Joined: 03 Jul 2008
Posts: 1

PostPosted: Thu Jul 03, 2008 12:21 pm    Post subject: Problem Aligning String Right Reply with quote

Hi guys/gals,

This is probably really stupid but i'm having trouble aligning a string to the right hand side. The code i'm using is:

Code:
                    gfx.DrawString(foundRows[count].ItemArray[7].ToString(), fntDetails, XBrushes.Black,
                        new System.Drawing.Point(478, start));


I need to align it right instead of left. How can i do this ?

Thanks in advance.
Back to top
View user's profile Send private message
jeff2008



Joined: 01 Jul 2008
Posts: 3
Location: Whittier, California

PostPosted: Thu Jul 03, 2008 6:56 pm    Post subject: Reply with quote

Use the version of DrawString that takes an XStringFormat parameter in addition to the parameters that you are already using. I am a newbie, but I ran into a similar situation yesterday while playing around with adding page numbering to an existing document. If you want to see the XStringFormat option in an example, check out the two pages to one sample code. Sorry I cannot offer any more particulars, but I think this will get you going in the right direction.
_________________
Jeff
Back to top
View user's profile Send private message
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