Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 3rd, 2005, 2:11 PM   #1
Firebirdracer14
Newbie
 
Join Date: Jul 2005
Posts: 15
Rep Power: 0 Firebirdracer14 is on a distinguished road
Question Printing From Printer

Ok I am just starting out and trying several different things one thing that I am confused about is visual basic printing. Say I give a command like

Private Sub Command1_Click()
Printer.Print "Hello"
Printer.Print "Goodbye"
End Sub

Once the button is clicked my little printer icon in the taskbar pops up and it says printer is spooling and I am confused to what this means?
__________________
My Site In Progress
Firebirdracer14 is offline   Reply With Quote
Old Aug 3rd, 2005, 2:16 PM   #2
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
Under Windows 98 and above (i think) before your document is sent to the printer it gets cashed in your printers spooler and fed slowly into the printer. Not sure why it's like this, since i have mine set to print directly to the printer and i notice no difference.

VB has very basic printing support, so if your trying to gen reports froma db or something your going to have a hard time getting it to look nice. If you want something a little nicer (and free since most VB printing objects cost money) check out Qprinter2. I used it for a version fo my inventory program, till i switched to a better language.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Aug 4th, 2005, 10:06 AM   #3
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
You normally need to
Printer.EndDoc()
to actually start the printing, though I believe it does start when you do NewPage() - spooling means it's still awaiting the document to complete.
Rory is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:11 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC