This is the file, that was generated from telerik, where you can see such behavior.
What is the right way to solve this problem? It's nesessary to generate table of content in document in my task.
7 Answers, 1 is accepted
We downloaded the file from your link, opened it with MS Word 2010, selected everything with Ctrl+A and used F9 but nothing really happened changed. What is your OS and Office version? Have you tried doing the same on another document which has embedded images and was not produced with Telerik Reporting?
Greetings,
Steve
the Telerik team
1. download the file on the link
2. open it
3. select all with Ctrl+A
4. refresh everything with press F9
5. close document (agree to save changes)
6. open document
You'll see broken images with small red crosses and a message that Word can't load image.
We tried it using office 2010 professional plus version 14.0.6023.1000. and several other builds/versions of Office 2010 too with the same result.
Thank you for the instructions, indeed we were able to verify the behavior you observe, however we're not sure this is a problem on our end, rather than a problem with MS Office. You see we link images instead of embedding them into the word document, so that when an image repeats on all pages (e.g. company logo in page header) the image is linked on each page instead of embedding the same image numerous times. This is done for performance and size optimization. After selecting all elements and pressing F9 (which according to this MS KB update fields) the links to the images are broken as there are no originals i.e. the linked images are kept in the .docx file (which is an archive) in a folder media. Word tries to update the images in the media folder, but it does not know where to look for the images. This is expected as the reports are generated on the server, while the docx is edited on the client computer.
So in short, this behavior is expected when you have linked images that have no available sources.
Greetings,
Steve
the Telerik team
BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >
Moreover I created a workaround for this
using the following construction instead of you using for images:
<
w:drawing
>
<
wp:inline
distT
=
"0"
distB
=
"0"
distL
=
"0"
distR
=
"0"
>
<
wp:extent
cx
=
"1079500"
cy
=
"177800"
/>
<
wp:effectExtent
l
=
"0"
t
=
"0"
r
=
"0"
b
=
"0"
/>
<
wp:docPr
id
=
"1"
name
=
"picture0"
/>
<
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
=
"4294967295"
name
=
"docPicture0"
/>
<
pic:cNvPicPr
/>
</
pic:nvPicPr
>
<
pic:blipFill
>
<
a:blip
r:embed
=
"rId7"
cstate
=
"print"
>
<
a:extLst
/>
</
a:blip
>
<
a:stretch
>
<
a:fillRect
/>
</
a:stretch
>
</
pic:blipFill
>
<
pic:spPr
>
<
a:xfrm
>
<
a:off
x
=
"0"
y
=
"0"
/>
<
a:ext
cx
=
"1079500"
cy
=
"177800"
/>
</
a:xfrm
>
<
a:prstGeom
prst
=
"rect"
>
<
a:avLst
/>
</
a:prstGeom
>
</
pic:spPr
>
</
pic:pic
>
</
a:graphicData
>
</
a:graphic
>
</
wp:inline
>
</
w:drawing
>
It works with the same image references.
Your users would not be able to update the images either way as they do not know the names of the image files. When you use F9, Word tries to find the sources for the linked images in the report, since it cannot find any of the image sources, Word assumes that the user has deleted them as they are no longer needed and that is why it breaks the linked images instead of keeping their last source.
Greetings,
Steve
the Telerik team
BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >
We've already explained why we use linked images instead of embedding them and also explained that your users would not be able to update images with simple F9, as they do not know where MS Word looks for those images and do not have their file names. You can easily reproduce this behavior without Telerik Reporting. Create a blank document, insert a Picture in it, but instead of "Insert", select "Insert and Link" and save the document. Now give this file to a colleague and try the same steps you've given us, you would see that the image would break as your colleague does not have the original image on his computer.
Greetings,
Steve
the Telerik team
BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >