Report SharpShooter and Receipt Printers....


Author
Message
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi guys,



I have the need to generate 40 columns receipts using standard Receipt Printers like the Star SP200 or the Epson series. Have you guys used Report SharpShooter (RSS) with these kind of printer? if so how would you control the receipt's length so when the receipt finish printing it will only eject a couple of line to cut the paper?



In my case, I use the "Generic Text" print driver since I don't have any special needs for using a custom driver yet.



Thanks!

Edhy Rijo

Replies
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Thanks a lot Paul.

Edhy Rijo

Paul Chase
Paul Chase
Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
Edhy here is a stripped down version of what I am using hope it helps.

'--Local variables

Dim hPrinter As New System.IntPtr() 'Printer Handle

Dim DocInfo As New Base.Printing.Strucs.DOC_INFO

Dim lnWritten As Integer = 0

Dim LoString As New StringBuilder

'--Open Printer

If ActionLabor.Payroll.Base.Printing.PrintAPI.OpenPrinter("receipt", hPrinter, 0) = False Then

Return False

End If

'hPrinter contains the handle for the printer opened

'If hPrinter is 0 then an error has occured

If hPrinter = 0 Then

Return False

End If

Try

DocInfo.DocumentName = "Rcpt# " & Me.RctNbr

DocInfo.DataType = "RAW"

PrintAPI.StartDocPrinter(hPrinter, 1, DocInfo)

PrintAPI.StartPagePrinter(hPrinter)

'set output to printer

LoString.AppendLine(String.Format("----{0}----", "Header"))

LoString.AppendLine("Line2")

If Not PrintAPI.WritePrinter(hPrinter, LoString.ToString, LoString.Length, lnWritten) Then

Return False

End If

Catch e As Exception

'ToDo:--Add Here

Base.Common.ErrorHandling.LogError(e)

' Console.WriteLine(e.Message)

Return False

Finally

'Close

PrintAPI.EndPagePrinter(hPrinter)

PrintAPI.EndDocPrinter(hPrinter)

PrintAPI.ClosePrinter(hPrinter)

End Try

Return True


Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
That's great Paul, thanks again, I will implement this now.

Edhy Rijo

Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)
Group: Forum Members
Posts: 144, Visits: 227
Hi Edhy

You can take a look to this resources:

http://social.msdn.microsoft.com/Forums/en-US/posfordotnet/

http://www.microsoft.com/windowsembedded/en-us/products/readyproducts/posready/default.mspx

This a POS implementation for NET. Could be usefull, I found an aplications (AEVI POS) that use this libraries.

Regards

Smile Everything is possible, just keep trying...

Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hola Juan Carlos,



I am sorry I skip this post. Thanks a lot for this information, I will review it and let you know if I can use it.

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Edhy Rijo - 17 Years Ago
Paul Chase - 17 Years Ago
Edhy Rijo - 17 Years Ago
Paul Chase - 17 Years Ago
                     Thanks a lot Paul.
Edhy Rijo - 17 Years Ago
                         Edhy here is a stripped down version of what I am usinghope it helps....
Paul Chase - 17 Years Ago
                             That's great Paul, thanks again, I will implement this now.
Edhy Rijo - 17 Years Ago
                                 Hi Edhy You can take a look to this resources:...
Juan Carlos Pazos - 17 Years Ago
                                     Hola Juan Carlos,

I am sorry I skip this post. Thanks a...
Edhy Rijo - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search