Giter Site home page Giter Site logo

Comments (9)

shestakov avatar shestakov commented on May 23, 2024

Hi @m9studio!

Could you please attach a sample file after this operation? Looking into the XML could help with the inquiry.

from wordroller.

shestakov avatar shestakov commented on May 23, 2024

@m9studio,

Also please try KnownImageContentTypes.Jpeg instead of KnownImageContentTypes.Jpg.

from wordroller.

m9studio avatar m9studio commented on May 23, 2024

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.

shestakov avatar shestakov commented on May 23, 2024

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.

image

from wordroller.

m9studio avatar m9studio commented on May 23, 2024

при использовании WPS, совершенно другой результат:
image
image

from wordroller.

shestakov avatar shestakov commented on May 23, 2024

@m9studio,

what is WPS? Microsoft Office is supported as a reference software, and the library is also usually tested for compatibility with LibreOffice.

from wordroller.

m9studio avatar m9studio commented on May 23, 2024

Оу, тогда прошу прощения за отнятое время. Я думал что и в WPS Office будет поддерживаться разметка.

from wordroller.

shestakov avatar shestakov commented on May 23, 2024

@m9studio,

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.

m9studio avatar m9studio commented on May 23, 2024

Спасибо за помощь

from wordroller.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.