I am working on c# .net application, and using crystal reports. I need to print crystal reports on dot matrix printer, but speed of printing is very slow as crystal reports prints in graphical mode. So i moves to dos based printing and use RawPrinter helper class to print it. That works completly fine.
But writing a dataset to a text file(in invoice report format), uses lots of string manipulation for positioning the characters, spacing etc. I use string builder class and padding and lots of if, else to print page totals, grand totals, taxes etc.
Writing a text file in this way is such a pain.
Please suggest me some other feasible and effective approach.
Thanks