Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4123366
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:36:08+00:00 2026-05-20T23:36:08+00:00

my objective is to generate HTML markup to target ms word. So far my

  • 0

my objective is to generate HTML markup to target ms word. So far my findings are, if you have all the styles inline to an element, the document, when opened in word renders properly. However it is lengthy task.

<h1 style="font-family:Arial">Inventory</h1>

This is how I try to achieve formatting. If i want to maintain a constant font across the document, in my HTML, I’d have to add font-family to all the elements like I’ve done above.

Later, I came across a codeproject article. http://www.codeproject.com/KB/office/Wordyna.aspx Now I am sort of convinced that you can declare the styles globally, but the styling language used and the formatting is not like CSS, and, I think its proprietary to ms word document formatting. I am looking for any tutorials/articles for this styling being used.

ps: I am aware about OpenXML etc, etc. I feel its too complex for me to implement at this point.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T23:36:09+00:00Added an answer on May 20, 2026 at 11:36 pm

    Word –should– open valid (read: not Microsoft’s proprietary html-ish mess) without fail as it’s the rendering engine for Outlook when you open an HTML email. You could go to the effort to build a document entirely in-line (read: only best practice for Microsoft) as we do for HTML emails, but I suspect there are several different ways to skin this cat.

    Personally, if I was trying to get a rich text formatted document from html to Word I’d use a tool such as PHPDocX to build a proper word document natively, then if I really wanted Word HTML I could simply hit save on Word. I’ve had to do similarly with Excel, where it will accept CSV, but the outcome is always better with XLSX, and there’s a similar plugin to easily author a proper XLSX document.

    If that’s too difficult a route (and it’s not that bad, trust me) then I’d stick to formatting following HTML Email rules. Simple guides are all over the web, such as here. And, since Outlook 07-current uses Word’s html rendering engine, one could deduce that it has the same limitations listed here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Objective-C assembly, SomeThing.a Is there a way to automatically generate the
I use Doxygen to generate docs for my objective c code. Up to now
Objective: In support of a Windows Service that may have multiple instances on a
Objective : Generate dates based on Week Numbers Input: StartDate, WeekNumber Output: List of
I am trying to find a good tool for iphone/objective-C to generate class diagram
How do I generate a random color hexadecimal in Objective-C ? I need a
How does one generate and read PDF files in Objective-C?
I need to generate test data and would like to do it with Objective-C
I have just started learning Objective-C, I am reading Programming in Objective-C 3rd Edition
I've started using Doxygen to document my team's project source code (we have C#,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.