We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Insert own path to html doc

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

XYZ

Date

NAME

Author

Age

Contact person

28-01-2017

If you're going to spend money, you might as well get some free airline perks while you're at it.We consulted NerdWallet , a personal finance website, about which credit cards were the best for getting free air miles and other rewards. As it turns out, it's not easy to get a straightforward answer because it largely depends on

Johnson

22

Kumar




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);