G
Guest
I am trying to paste some unicode text into a Frontpage document. When I
copy and paste the Unicode characters from a Word document, they render
correctly on the design page, and on the html page I see the following:
<span style="font-size: 12.0pt; font-family: Code2000">Ø</span>
The characters that I want to paste into Frontpage are being copied from a
custom TextBox I have created as part of a .NET application. I have used
various strategies including methods belonging to the Clipboard class and the
inherited Copy method of the TextBox class. I can get the TextBox text and
prepend the span style stuff in front of the text and append the </span>, but
when I paste into the design page of a Frontpage document, instead of seeing
just the Unicode characters, I also see the <span style= string which is not
how Word does it. I could always switch over to the html page and paste in
the html string, but the people who will be using this application don’t want
to do that. They want to paste directly into the design page. Does anyone
know how to do this? Is there some way to communicate to Frontpage (when
doing the paste) that the string is html and should be copied to the html
page, but rendered correctly on the design page? Any help would be greatly
appreciated.
copy and paste the Unicode characters from a Word document, they render
correctly on the design page, and on the html page I see the following:
<span style="font-size: 12.0pt; font-family: Code2000">Ø</span>
The characters that I want to paste into Frontpage are being copied from a
custom TextBox I have created as part of a .NET application. I have used
various strategies including methods belonging to the Clipboard class and the
inherited Copy method of the TextBox class. I can get the TextBox text and
prepend the span style stuff in front of the text and append the </span>, but
when I paste into the design page of a Frontpage document, instead of seeing
just the Unicode characters, I also see the <span style= string which is not
how Word does it. I could always switch over to the html page and paste in
the html string, but the people who will be using this application don’t want
to do that. They want to paste directly into the design page. Does anyone
know how to do this? Is there some way to communicate to Frontpage (when
doing the paste) that the string is html and should be copied to the html
page, but rendered correctly on the design page? Any help would be greatly
appreciated.