I tried printing a file in dot matrix printer (Wipro (wep) EX 330+dx) using doc, rtf, pdf, xlsx formats exported from crystal reports but the process printing is very slow.
I was trying to print a bill but bill takes time of approx 50-60 sec.
I even tried transferring file to text via crystal reports but it didn't help.
So, one of my colleague shows me a method of printing it through a text file and he is using commands such as chr(14) & "TITLE NAME HERE" & chr(27) & chr(18) . It writes in the text file like TITLE NAME HERE with some special characters in the text file but when we print it using a bat file the characters TITLE NAME HERE gets big and bold print in dot matrix printer and the special character vanishes in printing. Moreover, the print is speedy. I guess the special characters works like tags in HTML for text file.
So, my question is that is there any guide of these characters and how do they work?
What character gives which effect on print and all stuff?
The conclusion of the discussion of this question, for now, is crystal report printing is slower than a text file in a dot matrix printer.
So if we talk for generating a report in a text file,
Following are some variables given by my colleague which eases to generate reports in a text file.
Direct printing a text file to dot matrix printer might won't work.
Note: Run the text file using bat file to work.
This is how I created a report in a text file. Some of the variable declarations not shown here.
I generated a bat file say Print.bat. The code inside bat file is
fileaddresshere includes whole address along with the extension. Example: D:\TextPrint.txt
I am not aware of the last special character in the code above but will update the answer as soon as I get it.
Please feel free to give suggestion for this answer. Even I am trying these codes and watching its effect in print for now so all is trial and error for me.