Print to POS printers

Stimulsoft Reports.NET discussion
Post Reply
isoft
Posts: 55
Joined: Fri Sep 08, 2006 9:33 am
Location: Croatia

Print to POS printers

Post by isoft »

Hi.

I was wondering, is it possible to make a report and to print it to POS printer. For example, I need to print to Samsung SRP-270 printer that is attached to COM or LPT port.
Is it required to have a driver for that printer installed, or is it possible to print directly to COM or LPT port?
How do I set up the page width and height of the report, since the width of the printer paper roll is 76 mm and the height is continuous?

Thanks!

Ivan
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Print to POS printers

Post by Edward »

isoft wrote:I was wondering, is it possible to make a report and to print it to POS printer. For example, I need to print to Samsung SRP-270 printer that is attached to COM or LPT port.
Is it required to have a driver for that printer installed, or is it possible to print directly to COM or LPT port?
We do not have special supporting of POS printing, Gdi+ is using.
If you need printing in the character mode, then the report may be represented as the text file. Later this file you may send directly to the LPT or COM port.
But the best way is using the printer driver installed in the system.
Please describe your task with more detail.
isoft wrote: How do I set up the page width and height of the report, since the width of the printer paper roll is 76 mm and the height is continuous?
In the latest version of the StimulReport.Net you need to specify the following parameters:
PaperSize - Custom
UnlimitedHeight - true
PageWidth - 76 mm

Thank you.
isoft
Posts: 55
Joined: Fri Sep 08, 2006 9:33 am
Location: Croatia

Print to POS printers

Post by isoft »

Thanks for the reply!

The thing is that I made a POS application in VB .NET 2005 and I need to print the receipts to the POS printer that is connected to computer through LPT port. Before, in VB6 there was no problem printing to the lpt or com ports. You just used the following code:

Code: Select all

Open "lpt1" For Output As #1
Print #1, "Bla"
But, in VB .NET there is a class for communicating through com port, but there's no class for the parallel port (i don't understand why Microsoft didn't include it). So, I was hoping that there is a way to do this with StimulReports.

P.S. The renewal for Your product is coming soon and we will definitely be prolonging it thanks to Your amazing and prompt support.

Thanks!
Post Reply