(Using FreeSpire version 12.2)
Problem is that the saved file out
is long string line with no breaks (\n)
------Original Text-----------
Dashing through the snow
In a one-horse open sleigh
O'er the fields we go
Laughing all the way
Bells on bobtails ring
Making spirits bright
What fun it is to ride and sing
A sleighing song tonight, oh!
------------------------------
- Code: Select all
// Create a new document object
Document document = new Document();
// Add a section and a paragraph
Section section = document.AddSection();
Paragraph paragraph = section.AddParagraph();
// Save File
document.SaveToFile(filePath, FileFormat.Odt);
----Save file Text---------
Dashing through the snow In a one-horse open sleigh O'er the fields we go Laughing all the way Bells on bobtails ring Making spirits bright What fun it is to ride and sing A sleighing song tonight, oh!
-----------------
Please help how to get the file formated as original in in Richtextbox?
Thanks