Although most printers have by now 'standardized' to work with generic Epson Programming Command Language (PCL), not all have done so.
"I am using Wipro's (P-1000 Model 1000 LPM) Line Matrix Printer"
Have you contacted your printer manufacturer or looked at their website to see what PCL commands they are using?
"I want clear cut/straight forward code for printing"
I agree with Dave above, you can't get more clear & straight forward than the suggestions provided in the links that he offered.
If your specific printer does not support those specific codes, you can modify the code once you get the correct PCL commands.
Good Luck,
JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com