Quantcast
Channel: html2openxml Discussions Rss Feed
Viewing all articles
Browse latest Browse all 228

New Post: Error when there is image in html

$
0
0
  1. I tried using BaseImageUrl but it is not saving the images in word.
  2. Web services are not failing, tested that.
  3. Images are also getting saved in word. But generated word file gives those popups and when user recovers the doc after clicking on "Yes" it creates an entirely new doc which he is required to save again.
  4. Using converter.ImageProcessing = ImageProcessing.AutomaticDownloaded and giving path of image from local machine is also giving having same issue.
I created a test project and tried to convert HTML to WordML and save it in doc. It is working fine for the same HTML input but the same code fails when used in the main project.

I used the OpenXmlValidator and get the following validation error among the many others

"The 'urn:schemas-microsoft-com:office:office:gfxdata' attribute is not declared."

Copying the outerXml for the rect where the validation is failing
<v:rect id="Rectangle 2" style="position:absolute;margin-left:100.3pt;margin-top:-23.25pt;width:151.5pt;height:48.75pt;z-index:251659264;visibility:visible;mso-wrap-style:square;mso-width-percent:0;mso-height-percent:0;mso-wrap-distance-left:9pt;mso-wrap-distance-top:0;mso-wrap-distance-right:9pt;mso-wrap-distance-bottom:0;mso-position-horizontal:right;mso-position-horizontal-relative:page;mso-position-vertical:absolute;mso-position-vertical-relative:text;mso-width-percent:0;mso-height-percent:0;mso-width-relative:margin;mso-height-relative:margin;v-text-anchor:middle" o:spid="_x0000_s1026" filled="f" stroked="f" strokeweight="1pt" o:gfxdata="UEsDBBQABgAIAAAAIQC2gziS/gAAAOEBAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbJSRQU7DMBBF 90jcwfIWJU67QAgl6YK0S0CoHGBkTxKLZGx5TGhvj5O2G0SRWNoz/78nu9wcxkFMGNg6quQqL6RA 0s5Y6ir5vt9lD1JwBDIwOMJKHpHlpr69KfdHjyxSmriSfYz+USnWPY7AufNIadK6MEJMx9ApD/oD OlTrorhX2lFEilmcO2RdNtjC5xDF9pCuTyYBB5bi6bQ4syoJ3g9WQ0ymaiLzg5KdCXlKLjvcW893 SUOqXwnz5DrgnHtJTxOsQfEKIT7DmDSUCaxw7Rqn8787ZsmRM9e2Vm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DL3DDn75jF4cCPiQPv v+MhFQw1hUmipAX76733YI89i1pKBhy2mrqfO2YFJeqbxm4+KxaLMJ3xslh+LvFiX2o2LzV6118C frECV4vhUQz2Xh1FaaF/wr2wDlFRxTTH2DXl3h4vlz4tAdwsXKzX0Qwn0jB/ox8MD+CB4NB5j+MT s2ZqT4+NfQvHwWTVqy5NtsFTw3rnQXaxhZ95najHaY49NG2esC5e3qPV835c/QYAAP//AwBQSwME FAAGAAgAAAAhACd2983cAAAABwEAAA8AAABkcnMvZG93bnJldi54bWxMj81OwzAQhO9IvIO1SNxa u5RWVcimAiSEUA+IAnfHdpOIeB3Fzk/fnuVEjzszmvk238++FaPrYxMIYbVUIByZYBuqEL4+XxY7 EDFpsroN5BDOLsK+uL7KdWbDRB9uPKZKcAnFTCPUKXWZlNHUzuu4DJ0j9k6h9zrx2VfS9nrict/K O6W20uuGeKHWnXuunfk5Dh7hO5yeJm9KehvP783weuiN2R0Qb2/mxwcQyc3pPwx/+IwOBTOVYSAb RYvAjySExf12A4LttVqzUiJsVgpkkctL/uIXAAD//wMAUEsBAi0AFAAGAAgAAAAhALaDOJL+AAAA 4QEAABMAAAAAAAAAAAAAAAAAAAAAAFtDb250ZW50X1R5cGVzXS54bWxQSwECLQAUAAYACAAAACEA OP0h/9YAAACUAQAACwAAAAAAAAAAAAAAAAAvAQAAX3JlbHMvLnJlbHNQSwECLQAUAAYACAAAACEA ljYh8ogCAABnBQAADgAAAAAAAAAAAAAAAAAuAgAAZHJzL2Uyb0RvYy54bWxQSwECLQAUAAYACAAA ACEAJ3b3zdwAAAAHAQAADwAAAAAAAAAAAAAAAADiBAAAZHJzL2Rvd25yZXYueG1sUEsFBgAAAAAE AAQA8wAAAOsFAAAAAA== " xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml"><v:textbox><w:txbxContent xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"> w:rsidR="00CB53C3" w:rsidP="00CB53C3" w:rsidRDefault="00CB53C3"><w:pPr><w:jc w:val="center" /></w:pPr><w:r><w:rPr><w:noProof /></w:rPr><w:drawing><wp:inline distT="0" distB="0" distL="0" distR="0" wp14:anchorId="5AE85E55" wp14:editId="1F77B7ED" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"> cx="1728470" cy="635000" /><wp:effectExtent l="0" t="0" r="0" b="0" /><wp:docPr id="1" name="Picture 1" /><wp:cNvGraphicFramePr><a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1" /></wp:cNvGraphicFramePr><a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"> uri="http://schemas.openxmlformats.org/drawingml/2006/picture"> xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"> id="3" name="MSFT_logo_rgb_C-Gray_D.png" /><pic:cNvPicPr /></pic:nvPicPr><pic:blipFill><a:blip r:embed="rId1" cstate="print" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"> uri="{28A0092B-C50C-407E-A947-70E740481C1C}"><a14:useLocalDpi xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" val="0" /></a:ext></a:extLst></a:blip><a:stretch><a:fillRect /></a:stretch></pic:blipFill><pic:spPr><a:xfrm><a:off x="0" y="0" /><a:ext cx="1728470" cy="635000" /></a:xfrm><a:prstGeom prst="rect"><a:avLst /></a:prstGeom></pic:spPr></pic:pic></a:graphicData></a:graphic></wp:inline></w:drawing></w:r></w:p></w:txbxContent></v:textbox><w10:wrap anchorx="page" xmlns:w10="urn:schemas-microsoft-com:office:word" /></v:rect>

Viewing all articles
Browse latest Browse all 228

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>