Create comment in Excel from Html source -


So, it is possible to create an Excel file from HTML and I have found that many things are possible, such as with some CSS changes To add images, formatting etc etc

However, now I get a little red triangle comment to show what I'm trying to do.

I have created an empty excel file, but there is nothing but a comment, but this generated html is a mess. And I am convinced that it is not very much needed, has anyone done this, or know how I can do it?

It would be nice if this & lt; Td title = "comment" & gt; Text & lt; / Td> , but it's not.

Edit: I have the basic elements required, so that HTML shows a comment when it is loaded in Excel trimmed on it ... I just need it To see if I can trim the vml down to something simple

It seems that this is also a link to the associated cell: 0

Now I It should be put in the right place, initially

I think it is bare minimum, and Anne has added another comment by modifying a little html.

But, if you can help trim it down, then it will be very useful

   Cell 1 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; / TD & gt; & Lt; Td> Cell 3 & lt; / Td> & Lt; / TR & gt; & Lt; / Table & gt; & Lt; Div style = 'mso-element: comment-list' & gt; & Lt; Div style = 'mso-element: comment' & gt; & Lt ;! - [gte mso 9] & gt; & Lt; Xml & gt; & Lt; V: shape type id = "_x0000_t202" coordism = "21600,21600" o: spt = "202" path = "m, l, 21600r21600, l21600, xe" & gt; & Lt; V: stroke joinstyle = "miter" /> & Lt; V: path gradientshapeok = "t" o: connecttype = "rect" /> & Lt; / V: shapetype & gt; & Lt; V: figure id = "_ comment1" type = "#_x0000_t202" style = 'width: 96pt; Height: 55.5pt; Z-index: 1; Visibility: hidden 'fillcolor =' infoBackground [80] "O: InsetMode =" Auto "> : text box style = 'MSO direction-alt: auto' /> & lt; x: client data Object type = "note" & gt; & lt; x: line & gt; 0 & lt; / x: line & gt; & lt; x: column & gt; 0 & lt; / x: column & gt; & lt ; / X: ClientData & gt; & lt; / v: Size & gt; & lt; v: Image id = "_ comment2" type = "#_x0000_t202" style = 'width: 96pt; height: 55.5pt; Z-index: 1; visibility: hidden 'fillcolor =' infoBackground [80] "O: InsetMode =" Auto "& gt; & Lt; V: Text box style = 'MSO direction-alt: auto' /> & Lt; X: ClientData object type = "note" & gt; & Lt; X: Row & gt; 1 & lt; / X: Row & gt; & Lt; X: column & gt; 3 & lt; / X: column & gt; & Lt; / X: ClientData & gt; & Lt; / V: size & gt; & Lt; / XML & gt; & Lt; [Endif] - & gt; & Lt; Div v: size = "_ comment1" & gt; This is a comment & lt; / Div & gt; & Lt; Div v: size = "_ comment2" & gt; This is another comment & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;    

Any simple the way I was not able Determine. But this is a complex way:

  1. Take your simple HTML file and open it in Excel.
  2. Add a comment to a cell.
  3. Protect it Save the HTML format.

    The reason for this is not that what Excel actually does at that time, in which some helpful files and new versions of the original files - basically an HTML representation of the Excel file, Reopen the file with support files, then you will get your comments.

    It tells you that a potential HTML format (though it is not present in a file) that gives you a comment, and you need to reverse it to the engineer.

    So is this possible? Yes. Is it worth the trouble? Well, seeing that Microsoft never wrote anything in the 100 line code, which they could not write in thousands - almost certainly not.

    I am curious to know what you have achieved with these lines, however, I have answered this to a community wiki so that you can share it if you are interested.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -