Comments (9)
Hi @m9studio!
Could you please attach a sample file after this operation? Looking into the XML could help with the inquiry.
from wordroller.
Also please try KnownImageContentTypes.Jpeg instead of KnownImageContentTypes.Jpg.
from wordroller.
1.docx - файл исходник, с форматами
2.docx - вставка только текста в файл 1
3.docx - вставка текста и фотографии(ломается при фотографии) в файл 1
11.docx - пустой файл исходник, созданный через редакторы word
12.docx - вставка текста в файл 11
13.docx - вставка текста и фотографии(ломается при фотографии) в файл 11
23.docx - генерация файла прямиком из кода, new WordDocument(CultureInfo.CurrentCulture)
так-же, при попытке использовать KnownImageContentTypes.Jpeg
, результат не меняется
Единственное что могу заметить, если сгенерировать файл через скрипт, сохранить его, и его использовать как исходник(не пересохраняя и не редактируя его через разные редакторы word), то вставка изображений будет работать
from wordroller.
Hi, @m9studio
I checked the files and I see the picture both in files 3.docx
and 13.docx
, it just needs size adjustment. I used the Office 365 version of Word.
from wordroller.
при использовании WPS, совершенно другой результат:
from wordroller.
what is WPS? Microsoft Office is supported as a reference software, and the library is also usually tested for compatibility with LibreOffice.
from wordroller.
Оу, тогда прошу прощения за отнятое время. Я думал что и в WPS Office будет поддерживаться разметка.
from wordroller.
Sorry, it does not seem possible to support all the marginal software :(
But I checked the file in LibreOffice, and it looks the same way as in MS Word. Also implementation is as per the 2007 OOXML specification to support Word 2007, so it seems like the problem is on the WPS Office's side after all :(
from wordroller.
Спасибо за помощь
from wordroller.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordroller.