Solved

Dos based printing

Posted on 2004-09-23
6
152 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

706 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now