N
N
Novichek222017-10-20 13:58:39
Seal
Novichek22, 2017-10-20 13:58:39

C# - how to work with printing on a line matrix printer?

Good afternoon.
I ran into a problem: the enterprise has a lot of software written in FoxPro under ms-dos, it is required to rewrite the functionality in C#. Report printing is now carried out, for the most part, on line-matrix printers, a ribbon A3 wide and N meters long (depending on the amount of data).
Are there any libraries (or software manuals) for dealing with these types of printers in C#?
Thanks in advance.
PS: I tried to google materials, but on the first pages there are only offices selling printers.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman, 2017-10-20
@yarosroman

https://social.msdn.microsoft.com/Forums/vstudio/e... I think it will help you or https://www.codeproject.com/articles/29709/WebControls/

D
d-stream, 2017-10-20
@d-stream

As an option - use a model ideologically similar to that used in FoxPro:
feed data to a reporter who will generate / print reports either directly or through a txt file.
Candidates for consideration:
Crystal Report, StimulSoft Report, Microsoft Report Service
In conjunction with a text printer driver * - a quite worthy design can turn out, which will not require any changes when changing printing devices to any others. Unless you want to change the design of the reports.
p / s / just checked: stimulsoft can drive into the text:

+---------------------------------------------------------+--------+
|                     Основные данные                     |Согласие|
+----+-----+----+------------------------+----------------+-       |
|№ п/| ID  |Тип |      Наименование      |     Группа     |        |
|    |     |    |                        |                |        |
+----+-----+----+------------------------+----------------+--------+--------------------------------------------------+

This is a stupid piece of an ordinary beautiful graphical report when uploaded to a text file. Of course, you can drive it not to a file, but to a stream and then drive the stream, for example, to LPT
_____________________________
* - in ancient times, there was a text printer driver in win - in fact, in this scenario, the print stream was bare text

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question