R
ruggero.vecchio
Hello all,
I'm dealing with a very serious problem and I have not found a solution
so far, hence any help is very appreciated.
I have an application that produces active documents. I mean documents
that have placeholders that are set by the application.
The main prerequisites were that the documents must be html and can be
edited either with Word or with our own editor (which is based on the
AxWebBrower Activex).
Now the problem: in order to recognise the placeholders and their
values and in order to correctly set or replace them, I tried many
solutions but the problem is always the same. Word is messing up the
contents of the html document, reorganizing it (and this is acceptable)
but losing some of the most standard html attributes!
More precisely: one of the ways I tried is to use span tags with an
attribute name or id, set with the code of the placeholder, but
everytime a document is opened with Word these attributes are lost.
Take the very simple example below: if you save it as html and then
open it with Word and just save it again, you will see that the ID
attribute is gone (ID="VAR-001").
Can anybody explain the reason of this behavior and if there is some
possible solution to this problem?
Is there any documentation about this kind of topics?
Does it exists some html attribute that Word would respect?
Many thanks in advance
Roger
--- html code ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252">
<BODY>
<P style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left>
<SPAN ID="VAR-001"
style='font-size:10.0pt'>@VARIABLE</SPAN></P></BODY></HTML>
I'm dealing with a very serious problem and I have not found a solution
so far, hence any help is very appreciated.
I have an application that produces active documents. I mean documents
that have placeholders that are set by the application.
The main prerequisites were that the documents must be html and can be
edited either with Word or with our own editor (which is based on the
AxWebBrower Activex).
Now the problem: in order to recognise the placeholders and their
values and in order to correctly set or replace them, I tried many
solutions but the problem is always the same. Word is messing up the
contents of the html document, reorganizing it (and this is acceptable)
but losing some of the most standard html attributes!
More precisely: one of the ways I tried is to use span tags with an
attribute name or id, set with the code of the placeholder, but
everytime a document is opened with Word these attributes are lost.
Take the very simple example below: if you save it as html and then
open it with Word and just save it again, you will see that the ID
attribute is gone (ID="VAR-001").
Can anybody explain the reason of this behavior and if there is some
possible solution to this problem?
Is there any documentation about this kind of topics?
Does it exists some html attribute that Word would respect?
Many thanks in advance
Roger
--- html code ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252">
<BODY>
<P style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left>
<SPAN ID="VAR-001"
style='font-size:10.0pt'>@VARIABLE</SPAN></P></BODY></HTML>