Problem With Printer

  • Thread starter Thread starter Badshah
  • Start date Start date
B

Badshah

Hello Friends,

I have a problem . I have made a s/w. using java & am printing a bill
from software using file handling.
I am creating a extension less file & directly giving dos's print
command to print it.
The problem is , no matter what size the data is , the paper
automatically comes out upto the dotted line in paper, after finishing
the printing. Means the paper is size A4 . What I want is , when the
bill is small, the paper should not come out upto the dotted line in
paper that is end of a single A4 paper but it should stop there.

Thanx
Sohil
 
Badshah said:
Hello Friends,

I have a problem . I have made a s/w. using java & am printing a bill
from software using file handling.
I am creating a extension less file & directly giving dos's print
command to print it.
The problem is , no matter what size the data is , the paper
automatically comes out upto the dotted line in paper, after finishing
the printing. Means the paper is size A4 . What I want is , when the
bill is small, the paper should not come out upto the dotted line in
paper that is end of a single A4 paper but it should stop there.

Thanx
Sohil

Dotted line? What dotted line? Do you mean the perforations between the
pages of continuous fan-fold paper? Is this a dot matrix printer? You
do not give enough information.

Your problem is probably that the DOS PRINT command adds a form feed to
the output at the end of a print job. The COPY command does not, so
maybe you could COPY filename lpt1:

Or you could write a program to copy the file line by line to the
printer. You could use QBasic or Visual Basic.
 
Your problem is probably that the DOS PRINT command adds a form feed to
the output at the end of a print job. The COPY command does not, so
maybe you could COPY filename lpt1:

I should have written COPY/B filename lpt1: because you need to do a
byte-for-byte copy of your text file, ie (B)inary

When using the > LPTx command in MS-DOS, because the printer will not
be sent a page feed command, the printer may not eject the paper from
the printer. To eject the paper manually, use the button for FF (form
feed) or page feed to eject your paper. If you have a Dot Matrix
printer, use the hand wheel to manually eject the paper.
 
Badshah said:
Hello Friends,

I have a problem . I have made a s/w. using java & am printing a bill
from software using file handling.
I am creating a extension less file & directly giving dos's print
command to print it.
The problem is , no matter what size the data is , the paper
automatically comes out upto the dotted line in paper, after finishing
the printing. Means the paper is size A4 . What I want is , when the
bill is small, the paper should not come out upto the dotted line in
paper that is end of a single A4 paper but it should stop there.

Thanx
Sohil

Dotted line? What dotted line? Do you mean the perforations between the
pages of continuous fan-fold paper? Is this a dot matrix printer? You
do not give enough information.

Your problem is probably that the DOS PRINT command adds a form feed to
the output at the end of a print job. The COPY command does not, so
maybe you could COPY filename lpt1:

Or you could write a program to copy the file line by line to the
printer. You could use QBasic or Visual Basic.
 
Back
Top