Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Jan 10, 2019 5:18 am

download.rar
Hi,

1- I have this image src (Html tag) in headers (two sections) "http://dms-testwas:9080/DPPScanning/GenBarCode?code=81|550|2015|3|32|DPP$DXBPP\M.Mhammed|0|0" this image is coming as damage image (check attachment)

2- The damaged image in the headers for each page but I want to change the link for the image depending on the index of the page.
for example : page 1 "http://dms-:9080/DPPScanning/GenBarCode?code=81|550|2015|3|32|DPP$DXBPP\M.Mhammed|0|1"
page 2 "http://dms-:9080/DPPScanning/GenBarCode?code=81|550|2015|3|32|DPP$DXBPP\M.Mhammed|0|2"
The last character in the link is the page index.

Regards,

mkm090
 
Posts: 7
Joined: Tue Dec 01, 2015 10:25 am

Thu Jan 10, 2019 9:26 am

Hi,

Below are my answers to your questions.
1. I can’t access the image file by opening the link you provided. It seems that the damage image issue was caused by your image src itself. Please directly add the img tag with the src in a html file, and then check if the image shows correct after opening the html in browser. And I tested the image url like https://www.e-iceblue.com/images/index/doc.png , there was no problem.
2. Our Spire.Doc is based on the MS Word, which is flow document, in fact there is no page concept, hence changing the image link by page index is not available. You could add different image link in your html string in terms of different sections. If there is any question, please provide more information like your expected Word for our reference.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1187
Joined: Tue Sep 27, 2016 1:06 am

Return to Spire.Doc