Hi, I am new in Aspose.word component. I tried to save a word document into Html format, and the document contains some images which come from server side(I am going to put this web application on server) therefore, the address of export image folder has to be URL format.
- If ImagesFolderAlias is not an empty string, then the image URI written to HTML will be ImagesFolderAlias + .
- If ImagesFolderAlias is an empty string, then the image URI written to HTML will be ImagesFolder + .
- If ImagesFolderAlias is set to ‘.’ (dot), then the image file name will be written to HTML without path regardless of other options.
' This is the directory we want the exported images to be saved to.
Dim imagesDir As String = Path.Combine("Images")
' The folder specified needs to exist and should be empty.
If Directory.Exists(imagesDir) Then
' Set an option to specify specify alias of the folder. in our case this is part of url
Dim options As New HtmlSaveOptions(SaveFormat.Html)
options.ImagesFolder = imagesDir
options.ImagesFolderAlias = "http://localhost/test/"
doc.Save(MyDir & "Document.SaveWithOptions Out.html", options)
Thanks for your help, I had better understanding of using HtmlExportImagesFolderAlias method.