How to implement paste with destination formatting using Office JS API

Rahul Kumar 0 Reputation points
2025-03-11T07:12:05.8066667+00:00

Hi,

I am trying to implement a cross application AddIns functionality where user can select some Excel data and paste in Word.

I want to preserve all the source formatting as how the Word allows to do using Paste with keep source formatting option.

How we can achieve the similar functionality using Office JS APIs ? Any leads would be much appreciated.

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,050 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.