I just create html document… But i want to insert by own path in this document
Ex:
html doc automatically takes this path
So How can insert my own url ex: “\192.168.1.100\Sharing\01\Release.png”
Because I want send email only content to body of the mail…
Please Help…
Hi there,
Thanks for your inquiry. Please use HtmlSaveOptions.ResourceFolder as shown below to get the desired output. Please make sure that you have rights to network path. Hope this helps you.
Document doc = new Document(MyDir + "in.docx");
HtmlSaveOptions options = new HtmlSaveOptions();
options.ResourceFolder = @"\\192.168.1.100\Sharing\01\";
doc.Save(MyDir + "Out.html",options);
Thanks for this reply…
object “options” did not contain ResourceFolder
The above table contains two images…
urls are
D:\Created_Reports\tier.jpg
D:\Created_Reports\mak.jpg
I take this url from database through store procedure and print in word document…
after , i just convert html document and saved in particular folder
Now i need above url in html when i save it… but i cant achive this
So i request you to please reply the solution for taking database url for html document
Hi there,
Thanks for your inquiry. Please upgrade to the latest version of Aspose.Words for .NET 17.2.0. and use use HtmlSaveOptions.ResourceFolder as shown below to fix this issue.
You may use HtmlSaveOptions.ImagesFolder property to specify the physical folder where images are saved.
If you use HtmlSaveOptions.ResourceFolder, all resources like images, fonts, and external CSS are saved to your desired location (physical folder).
Document doc = new Document(MyDir + "in.docx");
HtmlSaveOptions options = new HtmlSaveOptions();
options.ResourceFolder = @"\\192.168.1.100\Sharing\01\";
doc.Save(MyDir + "Out.html",options);