Report for thermal printer

Stimulsoft Reports.NET discussion
mrapi
Posts: 282
Joined: Sat Dec 20, 2008 1:08 am

Report for thermal printer

Post 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.
Mike Simpkins
Posts: 21
Joined: Tue Nov 30, 2010 1:06 pm
Location: South Dakota

Report for thermal printer

Post 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.

Attachments
719.Page Tab.png
719.Page Tab.png (37.77 KiB) Viewed 5078 times
718.Page Properties.png
718.Page Properties.png (35.91 KiB) Viewed 5078 times


Mike Simpkins

Clueless in South Dakota
mrapi
Posts: 282
Joined: Sat Dec 20, 2008 1:08 am

Report for thermal printer

Post 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.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Report for thermal printer

Post 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.
mrapi
Posts: 282
Joined: Sat Dec 20, 2008 1:08 am

Report for thermal printer

Post by mrapi »

Thanks Andrew,am I missing something but this watermark is covering preview data,can be deactivated?

Image

Thanks.
mrapi
Posts: 282
Joined: Sat Dec 20, 2008 1:08 am

Report for thermal printer

Post 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 !!!!!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Report for thermal printer

Post by Alex K. »

Ok! Thank you.
mrapi
Posts: 282
Joined: Sat Dec 20, 2008 1:08 am

Report for thermal printer

Post 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.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Report for thermal printer

Post 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.
mrapi
Posts: 282
Joined: Sat Dec 20, 2008 1:08 am

Report for thermal printer

Post 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
Post Reply