Web page export as Microsoft word css missing - html

when Export a webpage in Microsoft word in table format the table layout not showing properly missing css styling please help me.

A doc or docx and an html file are very different from each other. If you want to save an offline version of the website, use a scraper or take a screenshot of the webpage you are interested in.
CSS does not work in word and so it is not recognized. There are workarounds but I don't really see the point. Just save the document as an html and work with that! Have a nice day!

Try this:
Goto your Microsoft Word Document.
Then goto Insert >> Object >> Text from File
Select the required .html file from the Insert File Dialog box.
Save your document in Word Document (.docx) format.
Or try this one:
Save your document as .html or .htm format.
This will create a folder with your documents.
Add your CSS stylesheet to the created folder. To add stylesheet, Goto Developer Tab >> Document Template >> Linked CSS >> Add.
Hopefully this will work!

Related

How to convert/Format HTML Markup to text inside a word document

I have a word document, and in this document I have some HTML markup. So How can I convert/format these html markup to text.I tried with Macro but .docx file cannot save macro, so need to change the file type but I can not change the file type because I have to provide the docx file as a template(.docm & .dotm not supported in Dynamics 365). Please see below example.
Example:
In my word document I have below markup
<ul>
<li><strong> Computer </strong></li>
<li><strong> Laptop</strong></li>
<li><strong> PC</strong></li>
</ul>
I want to convert/format like this
Computer
Laptop
PC
Is there any way to do this with Word Add-In or any other way?
Docx files are actually .cabs behind the hood.
You can change your docx file extension to .cab, extract it, and try and make your way through the xmls there to add custom formatting.

Exporting Markdown to HTML While Updating Links

I have two markdown documents; A.md and B.md. The A document includes a link to B using the tag (B)[B.md]. That link works great when navigating markdown documents.
Now I want to export all my markdown files to HTML as part of a release documentation package. The issue is that in the exported HTML the link points to B.md when what I really want it to point to is the newly exported B.html.
Anyone have any ideas on how to automatically update links?
I am currently using pandoc to export to html because it has a command line interface and therefore I can script its execution.
Right now my workaround is to update A so that it links to the html version of B, [B](b.html). This allows my html exported documents to work but breaks navigation within the original markdown files. Alternatively I could replace the links myself as part of the script but that sounds painful.
What I am really looking for is a way to export a collection of markdown files as a standalone documentation package.
You can use a simple Lua filter to change the link from .md to .html:
-- file: change-links.lua
function Link (link)
link.target = link.target:gsub('.md$', '.html')
return link
end
Adding the parameter --lua-filter=change-links.lua to your call to pandoc should be all that is needed.
See also this related question.

How to write html file with a text editor

I am trying to write my first html document.
Here is the link to the reference.
I am using TextEdit on Max OSX 10.6 and after I save it (as an html file) it is opened by the browser by double clicking on it. However the source script text is shown instead of the html structure.
What I am getting wrong?
You need to convert it to a plaintext document
Click Format and then 'Make Plain Text', then make sure to save as .html
Does the icon of the file has an "e". Usually these kind of files should have an icon as an e. Also make sure you are saving it as .html file. I think the actual extension of the file is hidden.

Quickly converting Word Doc into HTML

I am trying to convert a word document into html. I used an online converter http://word2cleanhtml.com/ but it does not keep the pictures I have in my file. From the html I will be making a nook and kindle ebook. Does anyone have a tool or suggestion for this project?
Using save as html in word doesn't keep images either.
Download the KindlePreviewer: http://www.amazon.com/gp/feature.html/?docId=1000765261
Then, save your file as HTML. Images will not be part of the html file, instead they are stored in a separate folder.
Open the resulting html file into the KindlePreviewer, it will find the images in the images folder and add them to your book.

Strange problem while compiling CHM file

I had to write some documentation. I wrote each page in MS Word and then save each *.docx as htm file. I'm using "HTML Help Workshop" (from microsoft) to compile a chm file.
I was able to sucessfully create a chm file but the problem is that not all images in chm file are displayed. I tried decompiling the *.chm file into another folder and opened each .htm file in web browser. All images are correctly displayed.
Then why aren't they displayed in chm file. Strangely, only some of them aren't displayed. I checked if image format is causing problem, but all images are of same format. I checked if file naming is a problem, but all images are named like image[001-100].jpg in their corresponding folders.
Any idea about whats going wrong?
HTML Help Workshop (HHW) is known to have problems with the HTML generated by Word (or better put: Word generates terrible HTML). Some versions put VML coding around the IMG tags that HHW cannot handle.
Possible solutions:
In Word: Deselect the option 'Rely on VML for displaying graphics in browsers' (Tools > Options > General > Web Options)
In Word: Save as 'filtered HTML'.
In HHW: Manually add the images to the project's [FILES] section.
Let me know if any of this helps.
More information can be found in the HTML Help 1.X FAQ