This article explains how to configure DOS file printing in eCount ERP for fast bulk output.
đź“‹ Overview
DOS printers are used because they print plain text much faster than laser printers. They only accept Notepad (.txt) files, not images or PDFs.
đź”§ Steps / How-to
Basic rules for designing print files
- Set page size with the code format ^27^^67^^24^. Example: ^27^^67^^24^ for an 8‑inch page.
- Write a column name between @# and $#. Example: @#ColumnName$#.
- Define column character width using {}n. Example: @#ColumnName{}06$#.
- Insert leading spaces with N<- syntax. Example: @#23<-ColumnName{}16$# starts after 23 spaces.
- Increase font size by wrapping the text with ^14^ … ^20^. Example: ^14^@#ColumnName{}06$#^20^.
- Decrease font size with ^27^^77^ … ^27^^80^. Example: ^27^^77^@#ColumnName{}06$#^27^^80^.
- Apply bold effect using ^27^^71^ … ^27^^72^. Example: ^27^^71^@#ColumnName{}06$#^27^^72^.
- Bold and increase size together: start with ^14^ ^27^^71^ and end with ^27^^72^^20^. Example: ^14^^27^^71^@#ColumnName{}06$#^27^^72^^20^.
- Further reduce size using ^15^ … ^18^. Example: ^15^@#ColumnName{}06$#^18^.
- Print the current date using the ~date token. Example: @#ColumnName{}06~date$#.
- Print numbers in decimal format with ~decimal. Example: @#ColumnName{}07~decimal$#.
- Right‑align a column using ~right. Example: @#ColumnName{}07~right$#.
- Skip a line when the value is zero with ~decimalnonzero. Example: @#ColumnName{}07~decimalnonzero$#.
- Report a specific line using ~reportsetup. Example: @#2<-Line1~reportsetup$#.
- Print data from a data‑grid column using ~dg and the column index (starting at 0). Example: @#ColumnName0{}25~dg$#.
- Print a date in words with ~words. Example: @#FreightBy{}43~words$#.
- Print the current time using ~time. Example: @#CurrentDate{}12~time$#.
- Insert a page break with ^12^. Example: ^12^.
- Show total page count with @#PageCount$#. Example: @#PageCount$#.
⚙️ Settings / configuration
All codes must be placed in a plain Notepad (.txt) file saved with ANSI encoding. DOS printers ignore any image or PDF files.
đź’ˇ Tip: Keep a master template file and duplicate it for each report to avoid missing codes.
⚠️ Common issues / warnings
- Incorrect code syntax causes the line to be ignored by the printer.
- Changing the computer name without updating the printer configuration can prevent the DOS printer from being recognized.
⚠️ Note: If you rename the PC, edit the DOS printer setup file or reinstall the printer driver so the new name is reflected.
âś… Summary
- Create a plain‑text file and follow the exact code syntax.
- Set page size, column names, character width, spacing, and formatting using the provided codes.
- Use special tokens (~date, ~time, ~right, etc.) for dynamic data.
- Save the file and send it to the DOS printer; no images or PDFs are supported.