Register  Login       Search  
Forum  
 
  
 
Forum  Forum     
 
SearchForum Home
  XML Lab Products  Word XML Viewer Control  Style sheets cl...
 Style sheets clash!
 
cathal_mchale
3 posts
Joined
6/26/2007

Style sheets clash!
Posted: 09 Aug 07 1:46 PM (N/A)
I hate to be the bearer of bad news with regard this product(!), but I have found a serious bug.
If you have a nicely designed web site and then you add a WordML control to a place holder - when the document renders the entire page is screwed up! I assume this is because its altered the .css of the entire page.

I find this product unusable. The idea of it is exactly what I am looking for, but does anyone know of another product that is bug free?
cathal_mchale
3 posts
Joined
6/26/2007

Re: Style sheets clash!
Posted: 13 Aug 07 1:00 PM (N/A)
Interestingly I have discovered it is not simply the control that is causing this clash. I used a html span element and set the inner html property to the same content I was using for this control - the results were exactly the same!
rgeorge
1 posts
Joined
10/24/2007

Re: Style sheets clash!
Posted: 24 Oct 07 12:01 PM (United States) Modified By rgeorge  on 10/24/2007 12:03:55 PM)

It is the control that causes the clash.  There is an xsl file named "word2html.xsl" within the WordXMLViewerControl project within the included solution.  Near the end of the xsl file are two "style" tags that are thrown into the generated html files; once they are removed, the origional css formatting will no longer be overwritten.  I had to remove the style sections and then rebuild the dll in visual studio.  I then followed the directions for adding it to my toolbox, readded the control to my webpage, and everything seemed to work fine.

  XML Lab Products  Word XML Viewer Control  Style sheets cl...
Forum Home  Search