943,742 Members | Top Members by Rank

Ad:
Jan 7th, 2006
0

problem in printing in VB

Expand Post »
hi

I have a problem with vb 6. I made a program to print bills using Data Report. The problem is, the printer prints the bill in fixed paper height. but the bill height varies according to the data. i want to stop the printer after the data ends. because i am using rolled paper not fixed height papers. my printer is dot matrix.

thank you
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nithin is offline Offline
1 posts
since Jan 2006
Jan 15th, 2006
0

Re: problem in printing in VB

Sorry to say u probably can't acheive this in Data Report. I had a similar problem regarding printing in roll papers. I sent the output to a text file and printed the file. U can probably try that approach if it helps
Reputation Points: 20
Solved Threads: 10
Junior Poster
aparnesh is offline Offline
193 posts
since Jul 2005
Jan 19th, 2006
0

Re: problem in printing in VB

hi
try with report's deactivate event

Aniket
Reputation Points: 10
Solved Threads: 0
Newbie Poster
aakulks is offline Offline
4 posts
since Jan 2006
Apr 20th, 2008
0

Re: problem in printing in VB

i sent the output to a text file and printed the file. U can probably try that approach if it helps BUT STILL IT PRINTS AND FORWARDS THE PAPER TO NEXT PAGE.
WHAT TO DO?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
laljain123 is offline Offline
4 posts
since Apr 2008
Apr 20th, 2008
0

Re: problem in printing in VB

Click to Expand / Collapse  Quote originally posted by nithin ...
hi

I have a problem with vb 6. I made a program to print bills using Data Report. The problem is, the printer prints the bill in fixed paper height. but the bill height varies according to the data. i want to stop the printer after the data ends. because i am using rolled paper not fixed height papers. my printer is dot matrix.

thank you
have you got the solution for the problem
Reputation Points: 10
Solved Threads: 0
Newbie Poster
laljain123 is offline Offline
4 posts
since Apr 2008
Apr 20th, 2008
0

Re: problem in printing in VB

I gave the solution for rolled paper, not pages (fanfold or otherwise). For rolled paper, there is naturally no concept of next page. If you are printing to pages of fixed height, using a data report and setting report height would be the best solution.
If you want to print from a text file and the printer moves onto next page, check if you have inserted a Form feed character at the end of your text file. Remove any such character.
Reputation Points: 20
Solved Threads: 10
Junior Poster
aparnesh is offline Offline
193 posts
since Jul 2005
Apr 21st, 2008
0

Re: problem in printing in VB

Dear
problem in Bill prinitng
1.
Ok if u consider the roll paper,i want print stops at the end of last line, Paper should not move forward. what to do?

2. There is no such any feed characer at the end of file.

thanks in advance

lalith jain
Reputation Points: 10
Solved Threads: 0
Newbie Poster
laljain123 is offline Offline
4 posts
since Apr 2008
Apr 21st, 2008
0

Re: problem in printing in VB

Dear
problem in Bill prinitng
1.
Ok if u consider the roll paper,i want print stops at the end of last line, Paper should not move forward. what to do?

2. There is no such any feed characer at the end of file.

thanks in advance

lalith jain
Reputation Points: 10
Solved Threads: 0
Newbie Poster
laljain123 is offline Offline
4 posts
since Apr 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: list box with columns
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Print to XPS Printer from VB6





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC