Open GoogleCodeExporter opened 9 years ago
At first I suggest you to use Mergefield to set field otherwise (and not set it
directly in the docx) otherwise you will have some troubles.
I suggest you to read
https://code.google.com/p/xdocreport/wiki/DocxReportingQuickStart
As I had said you, docx->pdf converter has some limitation (please read that at
https://code.google.com/p/xdocreport/wiki/XWPFConverterPDFViaIText secition
"Limitations").
Your image is a shape, so PDF cannot convert the shape. If you wish to use
logo, you must insert an image and not a shape.
If you wish to manage dynamic image (replace an image with a logo, please read
at https://code.google.com/p/xdocreport/wiki/DocxReportingJavaMainDynamicImage)
Original comment by angelo.z...@gmail.com
on 17 Sep 2013 at 8:17
Hi Angelo,
thanks again for comming back to the topic so quickly. Right, know everything
works perfect - except the image. When opening the Rechnung.docx and clicking
on the Shape, i get the "Grafik Bearbeiten" menn (in englich: "edit graphics"
menu). I also inserted the image via "insert image" command.
Is it a problem the i use word 2003?
Dan
Original comment by daniel.s...@modellwerkstatt.org
on 17 Sep 2013 at 8:29
As I said you, you must NOT use shape.
In my case to insert image, I go at
https://code.google.com/p/xdocreport/wiki/DocxReportingJavaMainDynamicImage, I
copy the image "template" in the clipboard and paste it in my docx and that's
all.
Original comment by angelo.z...@gmail.com
on 17 Sep 2013 at 8:37
Hi Angelo,
sorry this was a missunderstanding. I did not use any shape.
Right now, i created a docx File with word 2010 and not with word 2003 +
converter. This leads to the attached file with the image. This one is working.
Can you spot any differences between this rechnung.docx and the older one?
I will test xdocreport for a customer. You respond really fast. However, do you
also offer kind of professional support or support licenses in case we
encounter problems?
Best,
Dan
Original comment by daniel.s...@modellwerkstatt.org
on 18 Sep 2013 at 8:02
Attachments:
hello i got the same issue with word 2003
i have downloaded some word sample on the wiki who seem to be word 2010 and use
the convert code sample to convert in PDF it's work well.
If i open the word sample with my word 2003 and add a new images on the sample
doc and save it, all the images are not dislayed in pdf including original one.
If i open again the sample doc remove my image and save it again and convert to
pdf original images are not displayed any more one PDF but well present on
docx...
Conclusion for me if you save a docx with 2003 the convert is not able to deal
with image anymore
Original comment by ycelle...@gmail.com
on 21 Nov 2013 at 9:51
Hi,
If you don't convert the generated report to pdf, do you see your images in the
generated docx? If it that, it's a problem with PDF converter.
Original comment by angelo.z...@gmail.com
on 21 Nov 2013 at 10:12
hi angelo
Sorry i didn't see you message before i can't answer to you because since we
have this very boring issue my boss offer me a new office 2010 Licence.
So i can't reproduce now your test case to confirm the PDF convert issue.
Image on docx for document created with 2010 work well ....
Original comment by ycelle...@gmail.com
on 11 Dec 2013 at 4:52
Hi,
I have compared the 2 docx (2003 and 2010) and the problem comes from that with
2003 the image uses "<w:pict". The 2010 version uses "<w:drawing".
On other words Rechnung.docx 2003 declares image like this :
----------------------------------------
<w:pict>
<v:shapetype id="_x0000_t75" coordsize="21600,21600"
o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
filled="f" stroked="f">
<v:stroke joinstyle="miter" />
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0" />
<v:f eqn="sum @0 1 0" />
<v:f eqn="sum 0 0 @1" />
<v:f eqn="prod @2 1 2" />
<v:f eqn="prod @3 21600 pixelWidth" />
<v:f eqn="prod @3 21600 pixelHeight" />
<v:f eqn="sum @0 0 1" />
<v:f eqn="prod @6 1 2" />
<v:f eqn="prod @7 21600 pixelWidth" />
<v:f eqn="sum @8 21600 0" />
<v:f eqn="prod @7 21600 pixelHeight" />
<v:f eqn="sum @10 21600 0" />
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t"
o:connecttype="rect" />
<o:lock v:ext="edit" aspectratio="t" />
</v:shapetype>
<v:shape id="_x0000_i1025" type="#_x0000_t75"
style="width:140.25pt;height:135pt">
<v:imagedata r:id="rId6" o:title="" />
</v:shape>
</w:pict>
----------------------------------------
and Rechnung.docx 2010 declares image like this :
----------------------------------------
<w:drawing>
<wp:inline distT="0" distB="0" distL="0" distR="0">
<wp:extent cx="2286000" cy="2978150" />
<wp:effectExtent l="19050" t="0" r="0" b="0" />
<wp:docPr id="1" name="Bild 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">
<a:graphicData
uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:pic
xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:nvPicPr>
<pic:cNvPr id="0" name="Picture 1" />
<pic:cNvPicPr>
<a:picLocks noChangeAspect="1" noChangeArrowheads="1" />
</pic:cNvPicPr>
</pic:nvPicPr>
<pic:blipFill>
<a:blip r:embed="rId4" />
<a:srcRect />
<a:stretch>
<a:fillRect />
</a:stretch>
</pic:blipFill>
<pic:spPr bwMode="auto">
<a:xfrm>
<a:off x="0" y="0" />
<a:ext cx="2286000" cy="2978150" />
</a:xfrm>
<a:prstGeom prst="rect">
<a:avLst />
</a:prstGeom>
<a:noFill />
<a:ln w="9525">
<a:noFill />
<a:miter lim="800000" />
<a:headEnd />
<a:tailEnd />
</a:ln>
</pic:spPr>
</pic:pic>
</a:graphicData>
</a:graphic>
</wp:inline>
</w:drawing>
----------------------------------------
XDocReport manages only "<w:drawing" for images. But I don't understand I
believe that I had 2003 when I have started to manage images (today I have
2003).
Are you really sure that you follow steps explained at
https://code.google.com/p/xdocreport/wiki/DocxDesignReport#Manage_Dynamic_Image
to insert image?
If you follow this step and yoiur docx have <w:pict", I will try to manage
w:pict when I will find time.
Regards Angelo
Original comment by angelo.z...@gmail.com
on 12 Dec 2013 at 1:54
Hi Angelo,
in September, i was evaluating XDocReport for a specific usage. Since the
evaluation is already completed, personally, i do not need a fix for that
issue. However, obviously some others also encountered problems..
thanks for your response,
Dan
Original comment by daniel.s...@modellwerkstatt.org
on 12 Dec 2013 at 2:20
Hi Dan,
If you have time it should be cool if you could explain us the result of your
evaluation (which products have you compared? which product have you choosen?
why?).
Many thank's
Regards Angelo
Original comment by angelo.z...@gmail.com
on 5 Jan 2014 at 4:18
Original issue reported on code.google.com by
daniel.s...@modellwerkstatt.org
on 17 Sep 2013 at 8:08Attachments: