DocX icon indicating copy to clipboard operation
DocX copied to clipboard

Questions about InsertDocument

Open cyyen opened this issue 3 years ago • 9 comments

Hi, I have two questions about InsertDocument

  1. I can't open the merge docx if the docx has charts.
  2. The picture in the merge docx will be cut.

cyyen avatar Jan 14 '22 03:01 cyyen

Hello, you are right, I've just tested the insertion of a document into another where 1 of them contains a chart and the output docx can't be opened with MS Word. We will look into this. Thank you for reporting this.

XceedBoucherS avatar Feb 07 '22 12:02 XceedBoucherS

Ok, this issue should be fixed in v2.3. Thank you

XceedBoucherS avatar Feb 07 '22 14:02 XceedBoucherS

Hi, about this question,does this Issue fixed? I try in ver 2.4,but doesnt work. hope for your reply. thanks

c2056love avatar May 29 '23 09:05 c2056love

Hello @c2056love , Could you attached a simple document to this thread so we could test ? Also could you pase the code you are using to insert the document ? Thank you

XceedBoucherS avatar May 29 '23 14:05 XceedBoucherS

@XceedBoucherS https://github.com/c2056love/Test This demo project was code by c#,hope you can run it I want to merge 1.docx and 2.docx into a new file(result.docx).

c2056love avatar May 30 '23 06:05 c2056love

@c2056love, When I open your link, it shows me the xceedsoftware/docx issues tab with no result matching the search. I can't see the sample.

XceedBoucherS avatar May 30 '23 11:05 XceedBoucherS

@XceedBoucherS Sorry About that. trying this url https://github.com/c2056love/Test Or you can paste url into new tab.

c2056love avatar May 31 '23 02:05 c2056love

Thank you for the sample, I was able to test it. My first impression is that Chart object do not merge smoothly with another document. I'll try to have a deeper look. Thank you for reporting this.

XceedBoucherS avatar May 31 '23 11:05 XceedBoucherS

One of the problem comes from the fact that the chart contains a relation to an externalData (embeddings/Microsoft_Excel_Worksheet.xlsx). Without this external Data it should work.

This fix should be included in v2.6. Thank you.

XceedBoucherS avatar May 31 '23 15:05 XceedBoucherS