Hi,
I am using mail merge and document builder to insert text and images into a template. When inserting images and saviing to html, I see that aspose saves the image files locally (which makes sense for the most part). But I need to generate a file with images that are urls (i.e https://mydomain/myimgae.jpg
) so that the images will appear when the file is transfeered across a network.
I have tried inserting the html img tag manually in the IFieldMergingCallback with the following code:
string imgtag = "<img src='" + imagefile + "' />";
builder.InsertHtml(imgtag);
But when the document is saved to html, the img tags get rewritten with file paths on my local system. So the images are blank when the document gets transferred across the network. (The file of course works fine on my local machine.)
Is there anyway to insert a tag like the one below and have it remain intact when saving to html?
<img src="https://mydomain.com/myimage.jpg" />
Thanks.