Solved

printing textboxes/lines and dir and file lists

Posted on 2000-04-29
10
155 Views
Last Modified: 2010-05-02
I know how to but why do i need to close down the app to start the printing?
0
Comment
Question by:markyvt
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 6

Expert Comment

by:Marine
ID: 2762054
what do you mean by closing app to start printing ? Explain please.
0
 
LVL 2

Author Comment

by:markyvt
ID: 2762073
I give the printing command.
But when i close the app. the printer starts to print.
0
 
LVL 2

Author Comment

by:markyvt
ID: 2762079
When the app is closed the windowsprinting programm starts to print, i want to print while my own programm is running
0
 
LVL 6

Expert Comment

by:Marine
ID: 2762086
Are you using Printer Object ? Please provide some code.
0
 
LVL 3

Expert Comment

by:vikiing
ID: 2762122
¿Ate you executing a Printer.EndDoc instruction? That flushes printer's buffers, forcing printing to start immediately...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Accepted Solution

by:
RobMWilliams earned 10 total points
ID: 2762124
When you close your program VB calls Printer.EndDoc which sends your output to the printer.  So, if YOU call Printer.EndDoc the printer will start.

Example:
Printer.Print "hello there!"
Printer.EndDoc

Rob
0
 
LVL 6

Expert Comment

by:Marine
ID: 2762129
stupidy take over:(
0
 
LVL 2

Author Comment

by:markyvt
ID: 2762294
I use printer.print text1.text
thats all
0
 
LVL 3

Expert Comment

by:vikiing
ID: 2762629
Any thing that is sent to the printer is stored in internal buffers; upon execution of EndDoc (or when buffers become full-filled), and only then, buffers are emptied, and printing starts.

0
 
LVL 2

Author Comment

by:markyvt
ID: 2763340
I know enough thank you all.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now