Page 1 of 2

Report for thermal printer

Posted: Wed Dec 01, 2010 7:12 am
by mrapi
Hi !
There must be some particular settings for printing to thermal printer like Datecs ESC/POS Printer EP-50 ?
I have:
Unlimited Height=True
Page Height=3
Page Width=4
Paper size=Custom
Margins=0.1,0.1,0,0.1

I know nothing about Font.

Setting Unlimited Height=True seems to activate some watermark for page delimitation,as in image,it is possible to deactivate this ?

Image

My StimulReport version :2010.3.810 (16 Nov 2010)


Thanks for any clue.

Report for thermal printer

Posted: Wed Dec 01, 2010 9:41 am
by Mike Simpkins
I use the Report Designer. I believe you can disable the watermark in the report settings. Check the properties pane for the page and then set the watermark to false. Also check the page tab. I posted some images from the report designer that might help you.


Report for thermal printer

Posted: Wed Dec 01, 2010 9:51 am
by mrapi
Thanks Mike but it doesn't work,it seems to be auto watermark,also there is page separator,look in the image the blue line and dots.

Report for thermal printer

Posted: Wed Dec 01, 2010 9:55 am
by Andrew
Hello, Mike.
There must be some particular settings for printing to thermal printer like Datecs ESC/POS Printer EP-50 ?
The inscription is output only in preview and it will not be output on the paper.

Thank you.

Report for thermal printer

Posted: Wed Dec 01, 2010 10:34 am
by mrapi
Thanks Andrew,am I missing something but this watermark is covering preview data,can be deactivated?

Image

Thanks.

Report for thermal printer

Posted: Thu Dec 02, 2010 12:08 am
by mrapi
Hi.
I need help with the post above and I have another big problem printing to this type of printer:
printer : Datecs ESC/POS Printer EP-50 ,XP Sp3
Printing normal with this code :
StiViewerControl1.Report.Print()
gives a strange printing,data seems to be italic or something,this is a scan image of printed paper :
Image
I also tested with PrintDocument and the text is printed fine,so the driver is ok:
e.Graphics.DrawString("--------------------------------------------------------------------", New Font(Me.Font.FontFamily, 8, FontStyle.Regular), Brushes.Black, 10, 90)
e.Graphics.DrawString("TelNo: ", New Font(Me.Font.FontFamily, 8, FontStyle.Regular), Brushes.Black, 10, 100)
e.Graphics.DrawString("Name: ", New Font(Me.Font.FontFamily, 8, FontStyle.Regular), Brushes.Black, 10, 110)
e.Graphics.DrawString("Area: ", New Font(Me.Font.FontFamily, 8, FontStyle.Regular), Brushes.Black, 10, 120)

Printing this way
StiViewerControl1.Report.PrintToDotMatrixPrinter()
Text location is ok but I can see lots of "???????" a vertica line is something like this "???????????????????????"
Text "Cantitate" is printed on 2 lines : "? Canti ?" (first line) and "? tate ?" (second ),text "Nota" is printed "No2a"

:dumb:

I've sent a sample report to support.
Thanks and please help me with this !!!!!

Report for thermal printer

Posted: Thu Dec 02, 2010 6:07 am
by Alex K.
Ok! Thank you.

Report for thermal printer

Posted: Thu Dec 02, 2010 6:41 am
by mrapi
Thanks you too,
Also data sample sent,I need urgent answer,if I can't do this with Stimul report I'll do it with PrintDocument

I want something simple like in this image :
Image

Thanks
Aleksey wrote:Ok! Thank you.

Report for thermal printer

Posted: Thu Dec 02, 2010 9:29 am
by Ivan
Hello,
mrapi wrote:Printing normal with this code : ..... gives a strange printing,data seems to be italic or something,this is a scan image of printed paper :
For printing we use standard facilities of .NET Framework.
Does this problem occur on all reports or only on some of them?
mrapi wrote:Printing this way ..... Text location is ok but I can see lots of "???????" a vertica line is something like this "???????????????????????"
Text "Cantitate" is printed on 2 lines : "? Canti ?" (first line) and "? tate ?" (second ),text "Nota" is printed "No2a"
Please try to set the BorderType to Simple.

P.S. Also please delete the following components: Text12, Text31, Text45. This components is outside the page and add unnecessary segments to the report.

Thank you.

Report for thermal printer

Posted: Thu Dec 02, 2010 9:53 am
by mrapi
Hi Ivan
I have 2 reports,the same problem for all.
Where is that BorderType property ???
What king of font should I use to get text like this :
Image ?
Please also give me an advice with the problem in this picture :
Image
I found documentation for that printer,there are some example using escape sequence,
I saw this : http://stimulsoft.helpserve.com/index.p ... icleid=349

Could I use escape sequenc like documentation ?
LPRINT CHR$(&H1B) + “!” + CHR$(&H00) + “H” ;
LPRINT CHR$(&H1B) + “!” + CHR$(&H01) + “H” ;
LPRINT CHR$(&H1B) + “!” + CHR$(&H08) + “H” ;
LPRINT CHR$(&H1B) + “!” + CHR$(&H10) + “H” ;
LPRINT CHR$(&H1B) + “!” + CHR$(&H20) + “H” ;
LPRINT CHR$(&H1B) + “!” + CHR$(&HB9) + “H” ;
LPRINT CHR$(&HA) ;
http://www.datecs.bg/get_file.php?lang= ... AABA8F1EF7
Thanks