Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

Disable formfeed

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
ga
Asked:
ga
  • 3
  • 2
1 Solution
 
DalinCommented:
Ga
Get rid of the "Printer.EndDoc" statement.
Regards
Dalin
0
 
gaAuthor Commented:
When i'm not using the printer.enddoc statement, how
can i send my printjob to the printer without closing the
application
0
 
DalinCommented:
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
 
gaAuthor Commented:
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
 
DalinCommented:
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now