DOS PRINTING FILES — EXPLANATION

Why we use DOS printing machine to print the files??

  • Because it is much faster than laser printing machine, So if you are having lots of work & Bulks of pages to print in a very short time you can use “DOS Printing Machine”.


Now what was the issue with this printing method ?

  • DOS printing machine will not accept any image or pdf files, it will accept one and only Notepad/Text File.
    Now there are some rules to write in this notepad files.
    Now we will discuss on it!!

Some basic rules to design the print files:


Rule 1 : How to Setup the Page Size ??

  • To set the page size of print files is the very first step to start

Example :
  • If your page size is of 8 inches :- ^27^^67^^24^

Rule 2 : How to Write Column Name ??

  • If you want to print any line or column Name, You have to write your Column Name in between:
    Start Code : “@#” ; End Code : “$#”

Example :-

  • @#ColumnName$#

Rule 3 : How to set the size of column character ??

  • You can set the size of column character by using this function ;
    n = no. of column character.
    Size of column character : “{}n”

Example :-
  • To Set the size of column character :- @#ColumnName{}06$#

Rule 4 : To print the Column Name after some space.

  • If you want to start the printing pf column name after some space in the page then you can use this function by setting the no. of space as shown below :
    N = no of space you want to put.
    Put space between two characters : “N<-"

Example :-
  • To start the printing after 23 spaces :- @#23<-ColumnName{}16$#

Rule 5 : How to Increase the Font-Size ??

  • It is very simple to increase the font size, just write that text in between the :
    Syntax: Start-code : ^14^ ; End-Code : ^20^

Example :-
  • To Increase the font-size :- ^14^@#ColumnName{}06$#^20^

Rule 6 : How to Reduce the Font-Size ??

  • To decrease the font size, just write that text in between:
    Syntax: Start-code : ^27^^77^ ; End-Code : ^27^^80^

Example :-
  • To Decrease the font-size :- ^27^^77^@#ColumnName{}06$#^27^^80^

Rule 7 : How to give a bold effect to the fonts ??

  • Write your text between this two codes.
    Start-Code : ^27^^71^
    End-Code : ^27^^72^

Example :-
  • To give a bold effect :- ^27^^71^@#ColumnName{}06$#^27^^72^

Rule 8 : How to Increase the font-Size + Give a Bold effect to the font ?

  • If you want to Give a Bold effect to the fonts and as well as want to increase the font-size use this codes.
    Start Code : ^14^ ^27^^71^ ; End Code : ^27^^72^^20^

Example :-
  • To To give a bold effect + Increase the font-size :- ^14^^27^^71^@#ColumnName{}06$#^27^^72^^20

Rule 9 : How to Reduce the Font-Size More??

  • Now, If you want to write the column name in very small size then you can use this codes:
    Code: Start-code : ^15^ ; End-Code : ^18^

Example :-
  • To Decrease the font-size More :- ^15^@#ColumnName{}06$#^18^

Rule 10 : How to Print Current Date :

  • If you want to print the Current Date in particular format, you can use this codes:
    Code: “~date”

Example :-

  • To Set the current date :- @#ColumnName{}06~date$#

Rule 11 : How to print numbers in Decimal Format ??

  • If you want to print the Number in Decimal format, you can use this code:
    Code: “~decimal”

Example :-

  • To Print no. in decimal format :- @#ColumnName{}07~decimal$#

Rule 12 : How to set ColumnName in Right Alignment :

  • If you want to print your data or column name in right side of the page by using right-alignment, you can use this code:
    Code: “~right”

Example :-
  • To To Print ColumnName in right Alignment :- @#ColumnName{}07~right$#

Rule 13 : How to skip the line if there is zero in the answer ??

  • Now, If there is zero in characters or data and you want to skip that line you can use this function :
    Code : “~decimalnonzero”

Example :-
  • To Print the non-zero decimal no. :- @#ColumnName{}07~decimalnonzero$#

Rule 14 : How to Report any line in setup file ??

  • Now, If there is any issue in any line and you want to report that line from setup file then, you can use this code :
    Code : “~reportsetup”

Example :-
  • To Report the specific line in any setup file :- @#2<-Line1~repotsetup$#

Rule 15 : How to Print any data from Data Grid/Table ??

  • Now, if you want to start the printing from any specific column from data grid you can use this code :
    Code : “~dg”
    Now, here you have to write the specific column no. to print, you have to write the column no after the column name as shown in example below.
    Note : It will stars from 0.

Example :-
  • To print data from Data Grid :- @#ColumnName0{}25~dg$#

Rule 16 : How to Print Date in Words ??

  • Now, if you want to Print date in words you can use this code :
    Code : “~words”

Example :-
  • To print Date in Words :- @#FreightBy{}43~words$#

Rule 17 : How to Print the Current Time ??

  • Now, if you want to Print the Current time in your file, you can use this code :
    Code : “~time”

Example :-
  • To print Date in Words :- @#CurrentDate{}12~time$#

Rule 18 : How to Break The Page ??

  • So, If you want to Break the Page you have to use this code :
    Code : “^12^”

Example :-
  • To Break the Page :- ^12^

Rule 19 : How to count the No. of Pages Used in the file??

  • If you want to count the no. of pages used in one printing file you can use this code:
    To count the no. of pages : @#PageCount$#

Example :-
  • To Count the no. of Pages :- @#PageCount$#

Important topic

IF Condition :

Now, What is the use of If Condition and how it use ??
if you want to put some condition to print your data, like if you want to check that payment is done by which method you can use this function :
Now, First of all how to write this if condition :
@#IIf(#OrgFreightBy@{string}@ ^== ^To Pay{string},#ToPayAmount@,#OrgFreightBy@){}~IIF$#

Now, what actually this means : First of all “@#IIf” is mandatory to write to start the if condition, then open the brackets to check the condition; and then you have to write “#OrgFreightBy” that is compulsory to write,
Now if you want to compare the datatype of data write, “@{string}@ ^==^ ToPay{string}” here String is the datatype, and then, “^==^” use to compare the data, and “ToPay” is the mode of payment.
Now “#ToPayamount@” is use to write the amount paid by the customer.
Now again end it with “#OrgFreightBy@” and close the bracket to complete the if condition.
Then finally, close the if condition by using ” ~IIf$#”.


Thank You for visiting!

Was this article helpful?

Related Articles