![]() |
#1
|
|||
|
|||
![]()
I made a QuickPart to Normal.dotm and now I want to place it to the document
(where the cursor is) using C# interop. The basics (create application, create document, locate cursor etc.) doesn't need to be covered, I know those, but how does the beef of that work like? Here's the same as "pseudocode" Word.Document ActiveDoc = Globals.ThisAddIn.Application.ActiveDocument; Word.Selection selected = Globals.ThisAddIn.Application.Selection; Word.Range rng = selected.Range; rng.AddQuickPart("Normal.dotm", "ThePartIJustCreated"); //This one obviously doesn't work |
Tags |
c#, interop, quickparts |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
rwsinky | Word | 2 | 10-09-2016 02:38 PM |
![]() |
Ajeeja | Word | 8 | 08-14-2014 07:36 AM |
![]() |
rollno | Word | 7 | 02-24-2014 04:29 PM |
![]() |
kenglade | Word | 3 | 12-19-2011 04:00 PM |
![]() |
Aiken_Bob | Word | 4 | 05-02-2011 02:41 PM |