I have a requirement to display attachment image in the word document, word document is generating from visual force page.
When i have created a visual force page with tag "apex:image url="/servlet/servlet.FileDownload?file={!attSigRec.Id}"/>" attachment i am querying in the constructor. Which is working as expected as i am able to see attachment image in the visual force page.
When i converted that page into word with "contentType="application/msword#GenerateProposal.doc"" the downlaoded document doesn't showing the image.
How can solve this?
Please help me on this thanks in advance.
contentType="application/msword#GenerateProposal.doc
does not convert the page into Microsoft Word. It renders HTML and saves it with a.doc
extension. You should be able to open the downloaded file and inspect its contents. What do you see? Are the image links accessible without an active Salesforce sessions? Are they correct?