I have a requirement to print a bill on a dot matrix printer in basic mode. I know that Dot matrix printer page can be divided into a matrix of characters and i just want some help on how print on X&Y co-ordinates. It is something like this,
Printer.CurrentX = 1584;
Printer.CurrentY = 3168;
Printer.Print "PARTICULARS";
Does anyone have a sample on how to do this or some a little idea would help me.
Thanks,..
The Printer.CurrentX and Printer.CurrentY are from the VB6 era, they set the coordinates in Twips of where you put your text but does not print untill you use the Printer.EndDoc Method. There is a .Net version of this in the Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 Namespace that was provided for converted VB6 programs. You could add the NameSpace to your program and use the same functions, but you would be better off using the PrintDocument’s Print Method. Since they both are going to print in page mode anyway(by that I mean you setup your data and send the entire page to the printer when you print) .