Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old November 24th, 2004, 01:36 AM
rajanikrishna rajanikrishna is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 33 rajanikrishna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Question Printing in DOS mode

Hello,

I have large text in a multiline textbox. It was generated from the database. Ex.
job size qty lay bdlno opr
A01 M 25 1 10 5

job size qty lay bdlno opr
A01 M 29 1 11 6

job size qty lay bdlno opr
A01 M 25 1 12 7
.....

Around 500 rows. In the command click event, i am printing this on my default dot matrix printer. The paper is also continuous feed and is pre formated with these headings(job size qty lay bdlno opr)
There is no top margin or bottom margin. You can not find whether the paper is ended. Only thing a dotted line exist on the paper at the end of each page to cut it.So it looks likea continuous single page with the headings as specified. So i generated report from the database and stored in the text box. Why i am using this way is that the user may delete some records and start printing from that. In case power failures the user must start printing from the beginning. So, i used textbox.
Its printing one page only. How can i print continuously?

Ex:
dim strOP
strOP=txtResult.text
printer.print strOP

How can i set vertical spacing.

Thanx in advance

Reply With Quote
  #2  
Old November 24th, 2004, 01:29 PM
Darius Darius is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 108 Darius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 16 m 54 sec
Reputation Power: 4
Quote:
Originally Posted by rajanikrishna
How can i print continuously?
Have you tried:
Open "LPT1" for output as #1
print #1, variable
Close #1

Quote:
Originally Posted by rajanikrishna
How can i set vertical spacing.
En epson compatible (being ESC = CHR(27) and n the number of n/60-inch space):

ESC 0 Select 1/8-inch line spacing
ESC 1 Select 7/72-inch line spacing
ESC 2 Select 1/6-inch line spacing
ESC 3 Select 1/180-inch line spacing
ESC An Set n/60-inch line spacing

Reply With Quote
  #3  
Old November 24th, 2004, 06:50 PM
rajanikrishna rajanikrishna is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 33 rajanikrishna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Hello,

Thanx for the reply.
Where to set the value ESC 0 or ESC 1

I am not sure.

Thanx




Quote:
Originally Posted by Darius
Have you tried:
Open "LPT1" for output as #1
print #1, variable
Close #1

En epson compatible (being ESC = CHR(27) and n the number of n/60-inch space):

ESC 0 Select 1/8-inch line spacing
ESC 1 Select 7/72-inch line spacing
ESC 2 Select 1/6-inch line spacing
ESC 3 Select 1/180-inch line spacing
ESC An Set n/60-inch line spacing

Reply With Quote
  #4  
Old November 25th, 2004, 09:27 AM
Darius Darius is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 108 Darius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 16 m 54 sec
Reputation Power: 4
Open "LPT1" for output as #1
print #1, chr(27) & "0"
print #1, variable
Close #1

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Printing in DOS mode


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway