Solved

Disable formfeed

Posted on 1998-07-09
5
347 Views
Last Modified: 2010-05-18
After every printjob vb generates a formfeed
I'm using a matrix-printer for address-labels
How can i disable the formfeed after the printjob
0
Comment
Question by:ga
  • 3
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
Dalin earned 50 total points
ID: 1465323
Ga
Get rid of the "Printer.EndDoc" statement.
Regards
Dalin
0
 

Author Comment

by:ga
ID: 1465324
When i'm not using the printer.enddoc statement, how
can i send my printjob to the printer without closing the
application
0
 
LVL 9

Expert Comment

by:Dalin
ID: 1465325
ga,
you use the same code to send your stuff to the printer, such as Printer.Print myText...
Printer.EndDOc is to terminate the printing operation and do a form feed (like a printer.Newpage).  You can use Printer.EndDoc when you do want to have a new page (or your printing job end).
Regards
Dalin
0
 

Author Comment

by:ga
ID: 1465326
When I don't use the printer.enddoc statement nothing is printed
until I close the application.
the printer data will be send to the printer after the
printer.enddoc statement, or when the application is closed.
0
 
LVL 9

Expert Comment

by:Dalin
ID: 1465327
ga,
That is the limitation of VB.

However, you can still use theold DOS GWBAsic type of commend to print line by line.


            Open "PRN" For Output As #1

            Print #1, YourStuff

Regards
Dalin
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

821 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