Hi,
printing to the printer with vb .net
how do i print to the printer from right to left with vb.net
example in vb6:
Printer.RightToLeft = True
Printer.Print "abcd"
Printer.EndDoc
please send me small example
thanking you in advance
Printable View
Hi,
printing to the printer with vb .net
how do i print to the printer from right to left with vb.net
example in vb6:
Printer.RightToLeft = True
Printer.Print "abcd"
Printer.EndDoc
please send me small example
thanking you in advance
Quoted from the VS Help files.Quote:
RightToLeft No longer necessary. The direction of printing is controlled by the localization settings in Windows.
VB Code:
Dim WithEvents pDoc As Printing.PrintDocument Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click pDoc = New Printing.PrintDocument pDoc.Print() End Sub Private Sub pDoc_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles pDoc.PrintPage e.Graphics.DrawString("abcd", New Font("Tahoma", 14), Brushes.Black, 15, 15) End Sub
Hi,
every word you wrote it's right.
but it is not working
Whats not working? Explain.
Are you getting an error? If so where? what error?
If it prints but not right to left then you must change the localization.
Hi,
it is printing but not right to left
yes, i change the localization
I'm trying to simply get functionality to my program. How do I get it so where when my user selects "print" the windows print dialog window shows up (the one where they can select a printer), and then the document will print to the selected printer?
I tried the code listed above but it gave an error at "pdoc.print"
what to do, what to do?
Hi,
Answer To Printing from Right To Left to the Printer in VB.NET
Printing from Right To Left to the Printer in VB.NET
You can download a small example:
http://www.geocities.com/vmtnl/rtl.html
Have a nice day