I am trying to load a .txt file onto a flow document reader, but the columns are not correctly aligned, i.e. there is no uniform spacing between the columns. How can I get the same alignment in the flow document, as it is present in the notepad file. I mean I would like to retain the spacing between consecutive words in a given line, as it is present in the original .txt file. Any suggestions?
Asked
Active
Viewed 86 times
1 Answers
1
You must use a Monospaced font to achieve that.
<FlowDocument FontFamily="Courier"/>

Benlitz
- 1,952
- 1
- 17
- 30
-
"Courier" didn't work, but I tried "Lucida Console", now the alignment is proper. Thanks a lot! :-) – Pallavi May 18 '15 at 13:41