|
-
May 5th, 2004, 02:48 AM
#1
Thread Starter
Junior Member
Alignment problem while printing
hi all
am trying to print "subjects " in a vertical manner and am using a print document to do this
Private Sub prtDocSP_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles prtDocSP.PrintPage
Dim x As Single = e.MarginBounds.Left
Dim y As Single = e.MarginBounds.Top
Dim verticalFormat As New System.Drawing.StringFormat (StringFormatFlags.DirectionRightToLeft.DirectionVertical)
x = 70
y = 250
strPrintLine = "Subjects "
e.Graphics.DrawString(strPrintLine, fntBHeading, Brushes.Black, x, y, verticalFormat)
end sub
it is displaying the text in vertical but i need it to be displayed in the other way. right now the text can only be read from the left hand side, i need to read the text from the right hand side.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|