Comments (3)
@asafgo switching code pages is not yet implemented, but it's pretty straightforward to make changes to the library. Why don't you fork and give it a try, and send us a PR if you add it in? Would be a great feature to have!
from esc-pos-.net.
Hi,
In what class code page is so I will happy to give it a try as I am not professional programmer?
from esc-pos-.net.
Hi,
I have succeeded to print in Hebrew, thanks @lukevp
public static partial class Tests
{
public static byte[] Printing(ICommandEmitter e) =>
ByteSplicer.Combine(
e.Print("Multiline Test: Windows...\r\nOSX...\rUnix...\n"),
e.FeedLines(1),
e.RightAlign(),
System.Text.CodePagesEncodingProvider.Instance.GetEncoding(1255).GetBytes(Reverse("הדפסה בעברית.")), //Needs to install "System.Text.Encoding.CodePages" https://www.nuget.org/packages/System.Text.Encoding.CodePages/
e.FeedLines(2),
e.LeftAlign(),
// TODO: sanitize test.
e.PrintLine("Feeding 250 dots."),
e.FeedDots(250),
e.PrintLine("Feeding 3 lines."),
e.FeedLines(3),
e.PrintLine("Done Feeding."),
e.PrintLine("Reverse Feeding 6 lines."),
e.FeedLinesReverse(6),
e.PrintLine("Done Reverse Feeding.")
);
public static string Reverse(string s)
{
char[] charArray = s.ToCharArray();
Array.Reverse(charArray);
return new string(charArray);
}
}
from esc-pos-.net.
Related Issues (20)
- Landscape Mode HOT 2
- Port get jammed after long use HOT 1
- Not getting status from SerialPrinter HOT 1
- Can't Print Greek characters HOT 2
- Windows and Linux support HOT 1
- HELP! My thermal printer printed out Chinese chars in some of ConsoleTest test HOT 3
- Error "Device or resourse busy" When I impress more the one time. HOT 5
- ESC-POS-.NET want work on MAUI Android - issue libSystem.IO.Ports.Native not loaded HOT 2
- Epson USB printer - getting "System.IO.IOException: The handle is invalid" HOT 2
- Is it possible to print in Page Mode ? (tickets with the exact same size) HOT 1
- 2 Worker Services to one thermical printer HOT 2
- is there Indian rupee sign ⟨₹⟩ in codepage? HOT 1
- PDF417 max 255 characters HOT 8
- Printer Stop before execution of cut command. HOT 2
- Other languages HOT 7
- Getting rid of the constant beeping when there is no paper in the paper feeder
- Problem with appPOS80AM3
- Problem with image and printer appPOSAM3 HOT 1
- Printer stopped sending status update events HOT 1
- Interest to support CUSTOM printers? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esc-pos-.net.