Skip to content

something wrong with the IMAGE #1

Open

Description

@lqyp0420

there is something wrong with the IMAGE, when i change the suffix docx to zip, i found that there is no pictures in the media file. so it can't import the pictures, also, if i want to put two pictures in a line, how can i do it? thank you for your package, i think it is the best one in control the office word now in python with xml.

Activity

  1. rafaels88 commented on Apr 4, 2014

    @rafaels88
    Owner

    About the problem, could you send me the type and the size of the image? I tried with some pictures here and it worked. =/ Probably I need to test a specific case. Or, could you try another picture?
    By now it is not possible to do this. What you can do is build a table with no border and put 2 cells in a row, and then the pictures. Because the element Image is inside a paragraph. To do this without the table, you should put an absolute position on the picture, and the module don't do this for now, sorry..
    Thank you for the contribution!

  2. lqyp0420 commented on Apr 7, 2014

    @lqyp0420
    Author

    I just used the sample you listed in your introduction, and changed the image in my own picture
    Image(r"C:\material-gui\post-dat\2.png", document=doc, align='center')

  3. lqyp0420 commented on Apr 7, 2014

    @lqyp0420
    Author

    I just used the sample you listed in your introduction, and changed the image in my own picture
    Image(r"C:\material-gui\post-dat\2.png", document=doc, align='center')

  4. rafaels88 commented on May 2, 2014

    @rafaels88
    Owner

    Could you try putting and relative path? Like put the image in the same folder of the script, and put the path like Image('2.png', document=doc, align='center')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions