Solved

Dos based printing

Posted on 2004-09-23
6
158 Views
Last Modified: 2010-05-02
Hi

How it is possible to write an ActiveX dll component for dos based printing.
The printing is be done in asp

thanks in advance
Riyasjef
0
Comment
Question by:riyasjef
  • 3
  • 3
6 Comments
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 12135419
I am not sure what you mean. If you maen Text mode printing, the answer is - yes, why not.

DOS based printing typically means writing to PRN/LPT1 device (did i get you correctly?). You may write a program to write data to PRN. But Windows uses these devices slightly differently. Direct manipulation of these devices is not allowed.

Which OS do you want it for? YOu may possibly describe your need more clearly.
0
 
LVL 9

Author Comment

by:riyasjef
ID: 12140529

windows 2000, I have to implement a text mode printing component for a "point of Sale" project. Parameters are passed from the database, formatting should be done and I should be able to call it from asp.

Riyasjef
0
 
LVL 9

Author Comment

by:riyasjef
ID: 12140534
Sorry windows 2000 or 98
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 19

Accepted Solution

by:
RanjeetRain earned 400 total points
ID: 12141046
IMO, you do not have much to worry about. May be I haven't understood you fully, but if I have, you are slightly confused.

DOS based printing is not same as TEXT mode printing. While DOS typically prints in character mode (notice that I am saying character mode and not text mode), Windows typically does in Graphics mode. Do you see the sifference? A character mode printer may not be able to print graphics, but the reverse is not true.

Which printers are you targetting? Are you targetting to print with DMPs? Or will you be printing with modern printers (Deskjets/Inkjets/Laserjets)?

If you want to print with modern printers, stop worrying. Just set the font to a mono-spaced fotn before sending the print data to the printer and you are okay. Mono-spaced fonts (Courier/System/Terminal) are almost same as their character mode counterparts and they will print equally neatly.

Please let me know if there are gaps.
0
 
LVL 9

Author Comment

by:riyasjef
ID: 12141436
Thanks
I am targetting the DotMatrix printer. No graphics required..But is it possible with asp with the same speed as in the case of a desktop application?

Let me know some more details please..

Riyasjef

0
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 12145907
Riyasjef,

The speed of printing has nothing to do with ASP. That depends on the client you use and in turn the printer driver that the client uses and in turn printer's own capability.

I give you some food for thought:

(1) ASP doesn't print, ASP generate HTML, which causes the webbrowser (IE/NN/Opera) to initiate a print process.
(2) Once the client (IE/NN/Opera) initiates printing, OS takes over.
(3) OS sends the data to the printer driver, which the driver sends over to the printer.
(4) The printer prints at the maximum speed possible.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question