How to Align This Format

Posted by Jayakumars under VB.NET on 6/5/2013 | Points: 10 | Views : 787 | Status : [Member] [MVP] | Replies : 0

I am using For Printing Method for this

Private Sub PrintUsingDocumentCondensed(ByVal text As String, _
Optional ByVal printCaption As String = "")
Dim doc As New FlowDocument(New Paragraph(New Run(text)))
doc.PagePadding = New Thickness(100) 'Creates margin around the page
Dim diag As New PrintDialog() 'Used to perform printing
diag.PrintDocument( _
CType(doc, IDocumentPaginatorSource).DocumentPaginator, _
End Sub

I call this method like this

PrintUsingDocumentCondensed(dtSales.Rows(i)("ItemName") & dtSales.Rows(i)"Rate") & )

I need Output this (How to align number field Right Align)

Keyboard 1500.00
Mouse 250.00

This is Wrong

But my ouput comes this
Keyboard 1500.00
Mouse 250.00

Mark as Answer if its helpful to you
EmailId :


(No response found.)

Login to post response