Invalid RTF File!?

Technical support for Spire.Doc

Moderator: iceblue support

Invalid RTF File!?

Postby brubru » Thu Dec 09, 2010 1:47 pm

Hi,
I'm trying to open a RTF file but it always throw a NullReferenceException.. :-( The RTF opens normally with MS Word..

this is my code:

var document = new Document();
document.LoadFromFile(tempFileName, FileFormat.Rtf);

and this is the file RTF content:

"{\rtf1\ansi\deff0

{\fonttbl
{\f0 Arial;}
}

{\colortbl
;
}

\deflang1033\plain\fs20\widowctrl\hyphauto\ftnbj
\paperw11906\paperh16838
\margt1440
\margr1800
\margb1440
\margl1800


{\pard\fi0
{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\FS20wiss\fprq2\fcharset0 Arial;}{\f1\fnil\fcharset0 MS Sans Serif;}}

\viewkind4\uc1\pard\lang1046\f0\FS20 No SIM, os dados prim\'e1rios s\'e3o assim denominados porque:\lang1033\f1\FS20

\par }

\par}

}"

Thanks a lot,
Bruno
brubru
 
Posts: 3
Joined: Tue Nov 30, 2010 6:11 pm

Re: Invalid RTF File!?

Postby harry.support » Fri Dec 10, 2010 7:17 am

Hi Bruno

Sorry for any inconvenience we caused.

This problem has been fixed in Spire.Doc 3.6.1, you could get it from http://www.e-iceblue.com/Download/downl ... -v361.html.

From Spire.Doc v3.6.0, the registeration way have been changed. We deprecated the old username-key registeration method and use a new license file instead. You could get more information about the license file from http://www.e-iceblue.com/Knowledgebase/ ... nsing.html. If you purchased an old version earlier than v3.6.0, the please use the email address, to which we previously sent your register key, to send me a mail to acquire a new license file.

Thanks.
Harry
Technical Support / Developer,
e-iceblue Support Team
User avatar
harry.support
 
Posts: 180
Joined: Mon Nov 08, 2010 3:11 pm


Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 0 guests