How can I make a part of text bold in an MS Word table cell?


I have a C# application which uses an MS Word document. I have tables where some of the text in a cell needs to be <strong>bold</strong>. Is there a way to do it?


I assume you are using Microsoft Office Interop.

The example which I found on: <a href="http://www.c-sharpcorner.com/Forums/ShowMessages.aspx?ThreadID=48632" rel="nofollow">http://www.c-sharpcorner.com/Forums/ShowMessages.aspx?ThreadID=48632</a> says:

using Microsoft.Office.Interop.Word; using Microsoft.Office.Core; Document varDoc = varWord.Documents.Add(ref varMissing, ref varMissing, ref varMissing, ref varTrueValue); varDoc.Activate(); varDoc.ActiveWindow.ActivePane.View.SeekView = WdSeekView.wdSeekCurrentPageHeader; varDoc.ActiveWindow.Selection.Font.Bold = 1;

Similarly use it in your App.

Else if you are using HTML Tables, then a dirty way is to use

html tags.


  • LINQ Query to get Column Headers in Silverlight
  • advanced filter excel with c#
  • convert .net 4.0 syntax OfType to .net 3.5
  • Saving file from JavaScript string without hitting server
  • C# Equivalent to this code
  • How can I determine the author of a block of code programmatically in TFS?
  • Why do the numeric format strings in C# round the number when not using decimals (F0)?
  • What is the advantage of the ASP.NET precompilation?
  • Shall the DB ConnectionString within Web.config be encrypted when using Azure Cloud?
  • How to sort a DateTime-column in DataView?
  • Server.Transfer from ASP to ASP.Net
  • Filter android ListView with predefined filters
  • Hibernate manyToOne filter on base entity
  • Dump all Raima db_VISTA Version 3.20 data to text
  • How do I add “&Source” to DataNavigateUrlFormatString?
  • Get URL Query String Parameters when there are multiple parameters with the same name using Jquery o
  • how to make popup windows always on top?
  • How do I redirect with a Drop Down List, and not a Button?
  • ASP.NET 2.0 Session Timeout
  • Alternative to XInclude
  • How do I know what reference to include to import a specific .NET namespace?
  • Error Installing Windows 10 development tools for Visual Studio 2015 RC on Windows 8.1
  • How do i find all references to a user control
  • Regex for URL rewrite with optional query string parameters
  • What is corresponding c++ data type to SQL numeric(18,0) data type?
  • Other than Linq to SQL does anything else consume INotifyPropertyChanging?
  • Switch to popup in python using selenium
  • JQuery Internet Explorer and ajaxstop
  • JSON response opens as a file, but I can't access it with JavaScript
  • Optimizing database types to compact database (SQLite)
  • Cross-Platform Protobuf Serialization
  • Change an a tag attribute in JavaScript based on screen width
  • Do I've to free mysql result after storing it?
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • bootstrap to use multiple ng-app
  • SetUp method failed while running tests from teamcity
  • How to get icons for entities from eclipse?
  • Understanding cpu registers
  • Turn off referential integrity in Derby? is it possible?
  • JaxB to read class hierarchy