How to work on Bixolon POS Printer using C# - c#

I've been programming an application that deals with a POS printer. The printer is BIXOLON branded, and I haven't found any SDKs for using this type of printers as well as no example on how to deal with it.
Since I'm new to this type of printer, I don't know how should I design my report as well as which report engine should I use.
Any advice will be helpful.

I have worked on POS printers before to issue receipts etc.
What I did is to read in a template from a rtf file, set some variables that is to be replaced.
For example for the receipt I want to have the name of the person, so in the rtf file template, I would put something like <NAME>. When I read in the content of the rtf file, i just do a string.replace to replace <NAME> with the actual text in my program. Once I have replaced all the variables, using the class found in this link.
http://msdn.microsoft.com/en-us/library/ms996492.aspx#wnf_richtextbox_topic06 , I have a well formatted rtf and ready to be printed.
Printing wise works just like other printer. This means that as long as your coding targeted the correct printer and using the correct setup, it should be printed correctly. The only difference is that printing on a office printer would give u a A4 size, whereas printing on a POS printer will give you the size allowed by the POS printer. Just remember to format your rtf well.

Most report engines (I'm thinking of Reporting Services in particular) won't need this level of programming to print reports. You will get that functionality out of the box as long as the printer drivers are installed on the machine you wish to print reports from.

It was so simple, I used crystal report to design my report and then easily show.

Related

C# Printing inconsistent from same application to same printer on different workstations

It seems like there should be more information on this, but I can't seem to find the right words to search by.
Basically, I have a C# application that prints off a filled out form. I take user input and draw them over a image of the form then print it off. This application works perfectly for all but one of the workstations that use it.
The text on the form doesn't print in the correct location, rather it seems to be offset by and additional .25" on the x and y axis while the image of the form prints of perfectly. All workstations print to the same shared printer and use the same application.
I'm not sure what settings would cause the printer to print the text in a different location.
Is there a way to configure my application or the users workstation so I won't need to created a "personalized" version of the application for that workstation?
Thank you for help.
If you can't find the reason in different drivers or resolutions, an alternative might be to generate a PDF and then send that to the printer. That way you have control of the output page and can preview it as well. There are many libraries for generating PDF files. If you're generating HTML, you can use the free wkhtmltopdf to convert from HTML to PDF. I'm sure there are many others as well. Good luck!

How to fix the braille printing?

My project is a Tamil to Braille translation system. I want to make an print-out of a Braille document, and used the normal printer code in c# (printer dialog), but my embosser printer is just printing garbage instead of my document.
Is there any special way to print with an embosser printer from C#? Can you help me to fix this problem? My printer is index braille Basic D version 3, and my document is a braille document.
You need to send raw data to the printer. I have done this with version 4 printer, but I think it will work with version 3 too.
Check this class from Microsoft http://support.microsoft.com/kb/322091

How to create barcodes using ReportViewer Local Report VS 2008?

I'm trying to figure out how to create barcodes using ReportViewer Local Report VS 2008.
I find a component at:
www.neodynamic.com/barcodes/Interleaved_2_of_5_Barcode_asp_net.aspx
It seems there is no other solution native... Is there another alternative way?
Depends on what kind of barcode you need. For basic barcodes you could just use free barcode font
I've always implemented barcodes using a font. Barcodes are nothing more than data presented in a different way. Instead of human-readable they are "barcode scanner readable", so to speak.
You'll need to find fonts (Google search - there's lots available for free) that suit the symbology (or symbologies) supported by the scanner being used. Some readers need start and stop characters as well. So, for example, if you had an ID value of 123456 you might put that in a textbox on your report surrounded by start and stop character * - *123456*, and then apply your barcode font to the textbox.

Barcode Printing

My client is using SATO CG 408 TT barcode printer. I want to make my C# application able to print barcodes using this printer. Label sizes are 50mm x 25mm
I tried to search documentation of SATO website and also googled some links, but dint find any satisfactory solutions. Zebra printer have their own languages, so that we dont need to integrate any fonts in reports.
The questions might be silly :P.. but its important to know before I start coding.
Sato does offer SBPL, much like Zebra's ZPL or EPL2 language.
You can desing a RPT for ZEBA, using Printer Fonts. But you need print using some special code. You can find it at: https://stackoverflow.com/a/19312690/192389

Dos based printing using C#.net

i m using Dotmatrix printer EPSON for printing the reports, and i need the of how to print the reports without using crystalReport and print dialog, i.e. i want the code for DOS based printing in C#.net.........
I know a very old and dirty way. Just open LPT1 (or the printer port you are using) as a stream and output the characters.
Maybe this will help? http://support.microsoft.com/kb/322091/EN-US
Does your printer appear in windows? In other words, can your print to it from notepad? Then you can still use the System.Drawing.Printing namespace and send data to your printer that way.
This is if you need to print anything other than character data - otherwise, do like tekBlues said.

Categories

Resources