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