Solved

Dos based printing

Posted on 2004-09-23
6
155 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Use Multiple Forms 4 49
add text to end of existing text in file 16 69
TT Auto Dashboard 13 84
fso.FolderExists("\\server\HiddenFolder$") 4 51
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

920 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

19 Experts available now in Live!

Get 1:1 Help Now