Printing from ASP

R

Rajani

Hello,

I am generating reports from database in HTML format. When i print from
browser, its printing so slow on my dotmatrix printer. How can i print in DOS
mode? I need to print on continuous sheets means long reports. Its a big time
consuming if i print from browser.

And, i am getting data and forming a line (job & " " & Size & " " & qty & "
" & lay & " " & bundleno & " " & operationno & vbcrlf & vbcrlf & vbcrlf

....

Like this, it may contain more than 5000 lines in one report. So, i am
saving this in a text file using FSO. To print on my pre printed paper, i am
giving a link to the user with the target to generated text file and an
instruction to "Right click on the link and save target as " to save the same
file to local disk as we cannot simply create a text file in client system.
Then, the client goto DOS prompt and issuing
TYPE filename.txt>PRN to print with equal line spacing and width on my pre
printed paper. This makes frustation to the client. But no choice.
How can i open DOS prompt from the client with the statement TYPE
filename.txt>PRN to directly print from the web page ? This eliminates some
frustation.

Sorry for the long post.

THanx in advance
 
J

Jeff Cochran

Hello,

I am generating reports from database in HTML format. When i print from
browser, its printing so slow on my dotmatrix printer. How can i print in DOS
mode? I need to print on continuous sheets means long reports. Its a big time
consuming if i print from browser.

And, i am getting data and forming a line (job & " " & Size & " " & qty & "
" & lay & " " & bundleno & " " & operationno & vbcrlf & vbcrlf & vbcrlf

...

Like this, it may contain more than 5000 lines in one report. So, i am
saving this in a text file using FSO. To print on my pre printed paper, i am
giving a link to the user with the target to generated text file and an
instruction to "Right click on the link and save target as " to save the same
file to local disk as we cannot simply create a text file in client system.
Then, the client goto DOS prompt and issuing
TYPE filename.txt>PRN to print with equal line spacing and width on my pre
printed paper. This makes frustation to the client. But no choice.
How can i open DOS prompt from the client with the statement TYPE
filename.txt>PRN to directly print from the web page ? This eliminates some
frustation.

You can't do this in ASP. Otherwise you could open a DOS prompt and
do a FORMAT C: as well.

Jeff
 
H

Hal Rosser

Rajani said:
Hello,

I am generating reports from database in HTML format. When i print from
browser, its printing so slow on my dotmatrix printer. How can i print in DOS
mode? I need to print on continuous sheets means long reports. Its a big time
consuming if i print from browser.

And, i am getting data and forming a line (job & " " & Size & " " & qty & "
" & lay & " " & bundleno & " " & operationno & vbcrlf & vbcrlf & vbcrlf

...

Like this, it may contain more than 5000 lines in one report. So, i am
saving this in a text file using FSO. To print on my pre printed paper, i am
giving a link to the user with the target to generated text file and an
instruction to "Right click on the link and save target as " to save the same
file to local disk as we cannot simply create a text file in client system.
Then, the client goto DOS prompt and issuing
TYPE filename.txt>PRN to print with equal line spacing and width on my pre
printed paper. This makes frustation to the client. But no choice.
How can i open DOS prompt from the client with the statement TYPE
filename.txt>PRN to directly print from the web page ? This eliminates some
frustation.

Print to a plain text file - give it a txt extension,
and provide a link so the user can download and print it.
 
I

io

Rajani said:
...So, i am saving this in a text file using FSO. ...

Judging by the fact there was no additional posts on your previous topic
(slow ASP code), what I suggested to you 2 days ago worked fine. It is damn
frustraiting thing to me when people don't even bother to come back with
simple "Thanks" for the help they receive...

Cheers,
Igor
 
M

Mark Schupp

You'll probably need a client-side component to do this. Try searching the
web for "brower print control" and see what you find.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top