TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
jasmin george
NA
1
0
How to append a text line in stringbuilder and save to MS Office RTF file.
Jul 4 2010 9:44 PM
Hi there, I have been trying for a many hours how I can append a line to a rtf file.
My program reads from a template and then replaces some values in the template with values from a dataset then save it into another Microsoft Office rtf file. The trouble is, I can replace the values however I cannot put a line break in there.
I have tried System.Environment.NewLine, vbCrlf, "L\n" (ithink this is what i used) and also stringbuilder.AppendLine(string) and stringbuilder.AppendLine
The above works if I was to save the string into a ".txt" extension but it will not work if I save string into ".rtf" or ".doc" extension.
I am hoping someone can help me out.
Thanks
Reply
Answers (
2
)
Error message regarding exception unhandled Help
permission for administrative token