Page 1 of 1

Epson fonts

Posted: Fri Mar 11, 2011 3:36 am
by flo78
Hi,

we are developing a cash registration system for gastronomy.
In this branch, Epson POS printers are wide in use (specially the TMT88 series).
The Epson driver provides a collection of (non-system) fonts like "FontA11", "FontA12"..., which are very fast even on serial printers.
Until now we are using Crystal Reports (which we want to get rid of), where you can assign a certain printer to a report in the report's edit mode.
If the assigned printer is an Epson POS printer, you can select those fonts like a regular System font.

Is there any way to handle this with Stimulsoft Reports.NET?
Assigning the printer in the report designer (printer settings - printer name) does not help.

This is the last problem to be solved before we change to Stimulsoft.
Any ideas?

Epson fonts

Posted: Fri Mar 11, 2011 5:54 am
by Alex K.
Hello,

To print on dot matrix printer, you can use the PrintToDotMatrixPrinter() method. And you can use the ESC command to control the printer and fonts.

Let us know if you need any additional help.
Thank you.

Epson fonts

Posted: Fri Mar 11, 2011 9:09 am
by flo78
Thank you for your answer,

but that is not not what I'm looking for.
I already tried the PrintToDotMatrixPrinter() method.
The method seems to use a printer-specific font, buts it only converts all the differently formatted fields of the report to the same font.
So there is no possibility to formate different fields individually.

And we do not address the printer from the program directly, but only via the driver.
So we don't use any escape sequences.

What I meant is, that you can select the Epson-specific fonts in the report designer's font menu, together with the system fonts, and formate each field as you want to. That way you can handle it in Crystal Reports.

But I'm not sure if you can help me in this issue, perhaps I have to contact the Epson helpdesk (if something like that exists...)

Best regards, Flo

Epson fonts

Posted: Sat Mar 12, 2011 1:33 pm
by Andrew
Hello,
but that is not not what I'm looking for.
I already tried the PrintToDotMatrixPrinter() method. The method seems to use a printer-specific font, buts it only converts all the differently formatted fields of the report to the same font. So there is no possibility to formate different fields individually.

And we do not address the printer from the program directly, but only via the driver. So we don't use any escape sequences.
When using the ESC-sequences you can use the text commands , eg , , .
A collection of commands and their corresponding ESC-sequences are stored in the StiOptions.Export.Txt.EscapeCodesCollectionList; property.
You can add your own commands, such as font controlling.

Example expression: Normal text Bold Italic Normal
What I meant is, that you can select the Epson-specific fonts in the report designer's font menu, together with the system fonts, and formate each field as you want to. That way you can handle it in Crystal Reports.
Unfortunately, the designer is currently working with fonts using the standard methods of the .NET, therefore, only those system fonts are supported which recognizes the .NET Framework.

Thank you.

Epson fonts

Posted: Mon Mar 14, 2011 11:10 am
by flo78
I understand. So I'm going to contact the Epson support.

But sure you can help me with another problem:

When I use Stimulsoft on a client's computer without installing it, I only put the necessary Stimulsoft DLL's and the Designer.exe in the working directory of my program.
How can I make the system recognize the .mrt-files when I want to open them with a doubleclick?
I tried 'open with' and selected Designer.exe but this is not accepted.

Thank you very much.

Epson fonts

Posted: Tue Mar 15, 2011 8:51 am
by Alex K.
Hello,

As a way you may add it into the register using the following code:

Code: Select all

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.mrt]
@="Stimulsoft.Report.Document"
[HKEY_CLASSES_ROOT\Stimulsoft.Report.Document\shell\open\command]
@="\"c:\\Programm\\Designer.exe\" \"%1\""
Thank you.

Epson fonts

Posted: Tue Mar 15, 2011 10:07 am
by flo78
Allright. Thanks a lot!

Epson fonts

Posted: Tue Mar 15, 2011 10:45 am
by Andrew
Have a nice day!