Hi All,
I solved my problem... I was missing the Encoding stuff..
Simply used the Encoding parameter one StreamReader character with
StreamReader Sr=new StreamReader(FileName, System.Text.Encoding.Default);
and the formatting that was missing was restored back again.
Asheesh
"Asheesh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> More on this problem.
> The HTML file I'm displaying in the Custom control is an embedded resource
> for my application exe.
> So, I'm reading the HTML content from the embedded resource in the
following
> fashion..
> Sr=new
>
StreamReader(System.Reflection.Assembly.GetExecutingAssembly().GetManifestRe
> sourceStream("MyApp.Help.htm"));
>
> sText=Sr.ReadToEnd();
>
> HtmlCtrl.SetText(sText,true);
>
> Sr.Close();
>
> Does reading the embedded resource in the Stream format, and then passing
> the string converted to Stream leads to an erroenous display? Could this
be
> the problem.
> Please help
>
> Regards,
> Asheesh
> "Asheesh" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hello All,
> >
> > I'm stuck in a strange situation. Please help me in this.
> > I ported the HTML Viewer control written in eVB to C#.
> > Now, the HTML pages I was displaying in my eVB created custom HTML
control
> > don't possess the same formatting when displayed using the same HTML
> control
> > though created in C#.
> >
> > Strangely though the same HTML document displays fine, when displayed in
> the
> > eVB created HTML control.
> > E.g. espaņol is displayed without the ~ and the n character. It is
> displayed
> > as espaol.
> >
> > Also some bulleted items are displayed without bullets, but the sane get
> > displayed properly in the eVB custom created control.
> > I wonder why is this so, since all I've done is to simply migrate the
same
> > piece of code to C#.
> >
> > Please help me as to what is the reason behind this strange behavior?
> >
> > Thanks in anticipation,
> > Regards,
> > Asheesh
> >
> >
>
>
|