Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2005

Tip: Looking for answers? Try searching our database.

RTF parsing class library

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
casey chesnut - 12 Jan 2005 05:37 GMT
I have small snippets of RTF that i need to render in a new file format.
So from the RTF, i need Font (size, color, family) info,
and the text / hyperlink that needs to be displayed.

Is there an API that I can call to get this info?
Maybe some Managed library into Word or something else?
Maybe some call to convert it to the Word XML format?
And the last ditch effort would be to parse it myself ...

Thanks,
casey
http://www.brains-N-brawn.com
Niki Estner - 12 Jan 2005 14:01 GMT
>I have small snippets of RTF that i need to render in a new file format.
> So from the RTF, i need Font (size, color, family) info,
[quoted text clipped - 3 lines]
> Maybe some Managed library into Word or something else?
> Maybe some call to convert it to the Word XML format?

Why don't you put the text into a RichTextBox, and use its methods to get
the information you need?

> And the last ditch effort would be to parse it myself ...

Fortunately it's well documented:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnrtfspec/html/
rtfspec.asp


Niki
casey chesnut - 12 Jan 2005 14:11 GMT
cool idea, i'll try the RichTextBox.

but i think the latest spec is 1.8
http://www.microsoft.com/downloads/details.aspx?FamilyID=ac57de32-17f0-4b46-9e4e
-467ef9bc5540&displaylang=en


Thanks
casey

>>I have small snippets of RTF that i need to render in a new file format.
>> So from the RTF, i need Font (size, color, family) info,
[quoted text clipped - 14 lines]
>
> Niki
Niki Estner - 12 Jan 2005 14:15 GMT
> cool idea, i'll try the RichTextBox.
>
> but i think the latest spec is 1.8
> http://www.microsoft.com/downloads/details.aspx?FamilyID=ac57de32-17f0-4b46-9e4e
-467ef9bc5540&displaylang=en

thanks! I'll update my links.

Niki
howard39@nospam.nospam - 31 Jan 2005 16:51 GMT
We use the RichTextBox to render RTF to graphics. It works fine for simple
cases but it won't render complicated RTF genreated by MS Word, for example
tables.

> > cool idea, i'll try the RichTextBox.
> >
[quoted text clipped - 4 lines]
>
> Niki

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.