?
Solved

Dos based printing

Posted on 2004-09-23
6
Medium Priority
?
192 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 19

Accepted Solution

by:
RanjeetRain earned 1600 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

809 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