Solved

Dos based printing

Posted on 2004-09-23
6
164 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Suggested Solutions

Title # Comments Views Activity
Copy a row 12 75
Convert VB6 MSXML2.ServerXMLHTTP process to C# 2 78
vb6 - Transfer from MSHFlexgrid1 to xls issue 8 63
vbModal 12 73
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

738 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