Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 17974
Number of posts: 55343

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Printing problem? Posted by honest_dude on 22 Feb 2005 at 12:17 AM
Need help for printing a kind of receipt when enter sales transction. I need to print directly from a form (e.g. without previewing the print pages, etc. - just from the form where I enter the transaction where I put the print command button) where I enter some transaction as well as saving the transaction (e.g. the item, quantity, rates, total, etc.) I made and how to format the print output if I use the Print object for printing so that my output can go right, left, bottom or top on the page I print. Any one can help me on this. Thank you.

Report
Re: Printing problem? Posted by HackmanC on 22 Feb 2005 at 11:05 AM

Printer.Font.Name = "Sans Serif MS" ' Courier is Monospaced
Printer.Font.Size = 8

Printer.Print "SUM:" & Format$(x, "Currency")
Printer.Print "--------"
Printer.Print vbKeyTab & " ALL : " & total

Printer.Print "Thats all folks."

lol...
------
: Need help for printing a kind of receipt when enter sales transction. I need to print directly from a form (e.g. without previewing the print pages, etc. - just from the form where I enter the transaction where I put the print command button) where I enter some transaction as well as saving the transaction (e.g. the item, quantity, rates, total, etc.) I made and how to format the print output if I use the Print object for printing so that my output can go right, left, bottom or top on the page I print. Any one can help me on this. Thank you.
:
:

Good luck!
Hackman




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.