|
-
Aug 7th, 2003, 11:39 AM
#1
Thread Starter
Addicted Member
printing to the printer with vb.net
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
-
Aug 8th, 2003, 04:58 PM
#2
RightToLeft No longer necessary. The direction of printing is controlled by the localization settings in Windows.
Quoted from the VS Help files.
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
-
Aug 8th, 2003, 11:22 PM
#3
Thread Starter
Addicted Member
Hi,
every word you wrote it's right.
but it is not working
-
Aug 9th, 2003, 01:13 AM
#4
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.
-
Aug 9th, 2003, 08:32 AM
#5
Thread Starter
Addicted Member
Hi,
it is printing but not right to left
yes, i change the localization
-
Dec 7th, 2003, 12:50 AM
#6
Frenzied Member
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?
-
Dec 7th, 2003, 01:21 AM
#7
Thread Starter
Addicted Member
Answer To Printing from Right To Left to the Printer in VB.NET
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
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
|