Printer.ScaleMode = vbInches Printer.PrintQuality = vbPRPQDraft Printer.ScaleWidth = 6 Printer.ScaleHeight = 4 Printer.ScaleLeft = 0 Printer.ScaleTop = 0 Printer.DrawWidth = 8 Printer.FontSize = 8 Printer.CurrentX =0.6 Printer.CurrentY = 1.3 'Memo Printer.Print "Cash" Printer.CurrentX =1.5 Printer.CurrentY = 1.3 'Bill No Printer.Print "123" printer.enddoc
Quote:By knowing the number of characters that can fit on one line, we can plan the format of the data to be presented. By knowing the number of lines that will fit on one page, we can use logic to perform page breaks and print headings when a page fills up with data. Assuming a standard page size of 8 ½ by 11, we can fit approximately 80 characters per line (with extra characters for a left margin), and 60 lines per page (with extra lines for a top margin).
FontSize
FontName
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)