I have this solution that I have to move from AX2012 to D365FO.
Not in AX2012, some of the document attachments are XML files, that using code is styled into html. ( Its complicated, but that thing is not the problem )
And then the html file is shown in a form using the HtmlView AxtiveX, by setting the url of the AxtiveX = a file on the local disk system.
Simplified code would look like this.
url = this.getPublicUrl(DocuRef); // Gets an url looking like this file:///C:\Temp\tmp00001.htm
htmlView.navigate(url);
Now I have tried using the WebSiteHostControl in D365FO, but it does not seem to work on files. ( If i put the file on a webserver it shows is fine no problem)
So does anyone have a way for me to do this in D365FO?