Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 22nd, 2004, 02:54 AM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to get print using VB 6.0

hi all,

   i am a fresher in programming VB..i would like to know how ll write program that prints the content of a form?..i am into a project in which i hav to automate a theatre ticket counter which gives reserved as well as normal tickets printed.

pls help me..how to interact to the printer thru VB program..

 
Old April 26th, 2004, 02:26 AM
Authorized User
 
Join Date: Mar 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

For your printing problem, use can use form1.PrintForm to print content of your form.(form1 is name of form).

Put some more details regd. ticket counter.

Hope this will solve your problem.

 
Old April 26th, 2004, 02:42 AM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,
  i don wan to print the entire form as such..i want to issue a movie ticket in which the seat no,no.of seats needed,and total amount should be printed along with the name of the theatre,and class and date on the top

 
Old January 7th, 2005, 09:29 AM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

add component to toolbar -- microsoft common dialog ...

Put a common diaolog on form name it cd
now

sub print()
cd.showprinter
printer.print "AMit Awasthi"
end sub

This will print on paper using default printer






Similar Threads
Thread Thread Starter Forum Replies Last Post
how to print the records in vb.net curiaquita VB.NET 0 May 16th, 2008 09:49 AM
print a VB form Jee Beginning VB 6 0 December 13th, 2005 05:34 AM
how to print the contents of datagrid using vb.net kumarkaushal VB.NET 2002/2003 Basics 1 March 21st, 2005 01:15 AM
Print a form in VB.net deon VB.NET 2002/2003 Basics 0 September 17th, 2004 02:45 AM
VB Printer.print command Hiddenattractor Java GUI 3 December 30th, 2003 09:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.