dot-matrix

How to send raw string to a dotmatrix printer using python in ubuntu?

流过昼夜 提交于 2020-06-27 08:42:46
问题 I have a dot-matrix printer LX-300 connected to my computer through the network. How do I send a raw string with ESCP characters directly to my printer in Python? The computer is connected to the printer through another computer. I need to send a raw string because LX-300 image printing result is blurry. 回答1: The Problem To send data down this route: Client computer ---> Server (Windows machine) ---> printer (dot-matrix) ...and to not let Windows mess with the data; instead to send the raw

ASCII CODE for Dot Matrix Printer for changing Ribbon in C# using Raw Printing

和自甴很熟 提交于 2019-12-24 06:04:41
问题 I am printing receipts using Dot Matrix Printer in C#. The printer works perfectly, prints characters in bold, large size etc. The problem is dot matrix have ribbons in it (Black color, Red Color) How can i specify which text is to be printed in black or red. I am using BinaryWriter to pass string and ascii code to get desired output. Example: bw.Write((byte)0); byte[] bytes = Encoding.ASCII.GetBytes(text); foreach (var by in bytes) { bw.Write((byte)by); } Some Sample Code Reference: Sample

Java printing quality in Linux on dot-matrix printer

不羁岁月 提交于 2019-12-21 02:41:39
问题 I need to print the report from a Java desktop application to a dot-matrix printer (Epson LX-300 II). Report consists of text ang some graphics. Printer is connected via USB and I'm using CUPS to print. I'm printing using the Printable interface (pretty standard in Java). My problem: Text printing quality is very low on every printer resolution (60x60, 120x60, 120x72). It seems like there's no font hinting at all in some printer driver. Letters is looking very ugly. I can't use direct text

Printing custom paper size to an impact printer in WPF

点点圈 提交于 2019-12-12 11:07:18
问题 I'm printing to an impact printer, loaded with 8.5 x 8.5 inch paper. When I print, the printer ejects 11 inches instead of 8.5. PageMediaSize pageSize = new PageMediaSize(PageMediaSizeName.Unknown, element.Width, element.Height); PrintDialog dialog = new PrintDialog(); dialog.PrintTicket.PageMediaSize = pageSize; Console.WriteLine(dialog.PrintableAreaHeight); // 816, good! dialog.PrintQueue = myQueue; // selected from a combobox Console.WriteLine(dialog.PrintableAreaHeight); // 1056 :( dialog

Sending raw data/printer commands to Printer

女生的网名这么多〃 提交于 2019-12-12 02:26:52
问题 I understand that is possibly/slightly off topic here, but it is to do with programming a dot matrix printer. I am trying to generate a new character for on OKI Microline 5520, and am trying to use the command line for this. The command I am trying to send to the printer is: CHR$(27);%a;@;CHR$(28);CHR$(34);CHR$(65);CHR$(0);CHR$(65);CHR$(0);CHR$(28); CHR$(34);CHR$(73);CHR$(0);CHR$(73); which should create a CE symbol instead of an @ character. +-+-+-+-+-+-+-+-+-+-+-+ X X X X +-+-+-+-+-+-+-+-+-

Java printing quality in Linux on dot-matrix printer

拈花ヽ惹草 提交于 2019-12-03 08:34:44
I need to print the report from a Java desktop application to a dot-matrix printer (Epson LX-300 II). Report consists of text ang some graphics. Printer is connected via USB and I'm using CUPS to print. I'm printing using the Printable interface (pretty standard in Java). My problem: Text printing quality is very low on every printer resolution (60x60, 120x60, 120x72). It seems like there's no font hinting at all in some printer driver. Letters is looking very ugly. I can't use direct text-out to port (it looks great), 'cause I need also to print graphics on the same page. It seems that

ESC/P Set Absolute Horizontal Print Position

跟風遠走 提交于 2019-12-01 12:46:05
I am having trouble with setting the horizontal print position in an Epson LX-300 II dot matrix printer. The command to set the horizontal print position does not work sometimes. I need this to align the printable data to the appropriate column in the pre-printed paper form. Given the following code: // row 1 escp.setAbsoluteHorizontalPosition(1); escp.print("Equipment"); escp.setAbsoluteHorizontalPosition(10); escp.print("Serial"); escp.setAbsoluteHorizontalPosition(13); escp.print("Remarks"); // row 2 escp.lineFeed(); escp.setAbsoluteHorizontalPosition(1); escp.print("Equipment"); escp

ESC/P Set Absolute Horizontal Print Position

我的未来我决定 提交于 2019-12-01 11:54:21
问题 I am having trouble with setting the horizontal print position in an Epson LX-300 II dot matrix printer. The command to set the horizontal print position does not work sometimes. I need this to align the printable data to the appropriate column in the pre-printed paper form. Given the following code: // row 1 escp.setAbsoluteHorizontalPosition(1); escp.print("Equipment"); escp.setAbsoluteHorizontalPosition(10); escp.print("Serial"); escp.setAbsoluteHorizontalPosition(13); escp.print("Remarks"

Printing in (Parallel Port) Dot Matrix over C#

[亡魂溺海] 提交于 2019-11-26 16:38:29
问题 For the needs of a project, i want to print over the LPT1 in specific locations, this will print a document in a dot matrix printer where i should print values in the places they should go. I really hate going back, and i don't have any idea where to start. Internet has no specific information about printing in LPT port with C# and especially how to send the values in specific locations while printing. Is there any good example? tutorial for this? would be a life savior. 回答1: I could suggest