Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Tue Mar 25, 2014 11:36 am

Hi,

I'm trying to load a RTF file from Stream but the code don't work well.

Can I load a RTF file from Stream or MemoryStream? Or I can load only from FileStream?

ste2424
 
Posts: 1
Joined: Thu Mar 20, 2014 10:05 am

Wed Mar 26, 2014 7:23 am

Hi,

Thanks for your inquiry.
Our Spire.Doc library can support loading a RTF file from Stream, MemoryStream or FileStream as you mention above. And there are two methods as below you could try. If the issue still exists, please provide your document and codes to us,which can help us reproduce and solve your problem.
document.LoadFromStream(stream, FileFormat.Rtf);
document.LoadRtf(stream);

Best regards,
Lisa
E-iceblue support team
User avatar

lisa.chen
 
Posts: 21
Joined: Thu Mar 20, 2014 2:31 am

Mon Mar 31, 2014 9:46 am

Hello,

Have your issues been resolved?
Thanks for your feedback.
Please feel free to contact us if you have any problems.

Best wishes,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc