borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (fontsize and paper size)Next Topic (Printer  Doesn\'t Eject paper) New Topic New Poll Post Reply
AndreaVB Forum : Printing : Printing reciept in VB
Poster Message
aminul
Level: Trainee

Registered: 11-10-2005
Posts: 1

icon Printing reciept in VB

Hey guys,

I want to print some reports by using reciept printer. How can I do it?

Aminul.

11-10-2005 at 04:37 PM
View Profile Send Email to User Show All Posts | Quote Reply
TJ_01
Level: VB Lord


Registered: 24-08-2005
Posts: 320
icon Re: Printing reciept in VB

Your question is not too clear and hard to answer but ill give it a try. Simply install the printer and set as default.

Printer.Print Text1.Text



HTH..

____________________________
Im JAMES  

28-10-2005 at 02:43 AM
View Profile Send Email to User Show All Posts | Quote Reply
nappel
Level: Protégé

Registered: 06-12-2004
Posts: 6
icon Re: Printing reciept in VB

Recommend use MS Word for editin and printing. Quality printing!


Dim wrd As New Word.Application ''Word as COM component
Dim  St As String

wrd.Visible = True  ''Visible Word
St = "hello.doc"
Set doc = wrd.Documents.Add(St)

wrd.ActiveDocument.PrintOut Copies:=1, Pages:="1,2", ManualDuplexPrint:=False  '' One side printing pages 1,2

Regards

____________________________
http://word.oflameron.ru

04-04-2006 at 06:17 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Printing : Printing reciept in VB
Previous Topic (fontsize and paper size)Next Topic (Printer  Doesn\'t Eject paper) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder