NetOffice icon indicating copy to clipboard operation
NetOffice copied to clipboard

Cannot create taskpane for Word - Word sample

Open ashishpCACTUS opened this issue 3 years ago • 2 comments

Hi Jozef,

I tried using the sample '02 NetOffice Word COMAddin Sample' with 1.7.8 version. But the task pane doesnt appear.

I also looked at some changes listed here - https://github.com/NetOfficeFw/NetOffice/issues/280 namely adding the ProgId, ComVisible, Guid to the SampleControl class.

Below is my configuration -

  1. Addin
   [COMAddin("Word02 Sample Addin CS4", "Ribbons & Panes Addin Example", 3)]
    [ProgId("Word02AddinCS4.Connect"), Guid("E7E8652F-7F9C-48E5-BC7A-7CD5375057AB")]
    [CustomUI("RibbonUI.xml", true)]
    [CustomPane(typeof(SamplePane), "Word CPU Usage", false, PaneDockPosition.msoCTPDockPositionRight, PaneDockPositionRestrict.msoCTPDockPositionRestrictNoChange, 100, 100)]
    public class Addin : COMAddin
image
  1. SampleControl
  [ComVisible(true)]
    [Guid("E3D5658F-B3B7-41F5-9452-A4AD07652C44")]
    [ProgId("Word02AddinCS4.SamplePane")]
    public partial class SamplePane : UserControl, NetOffice.WordApi.Tools.ITaskPane
image
  1. Registered the addin

image

  1. I can see both of them are Com enabled image

  2. But still the Taskpane doesnt appear image

On debugging I cant see any error. It sets the visibility of the user control but nothing happens post that. Should i check error somewhere else. Or this could be a case for this https://github.com/NetOfficeFw/NetOffice/issues/271

System configuration; Base system - MacBook pro Apple M1 - MacOS Monterey - Version 12.3.1

Windows hosted using Parallel Desktop - 17.1.2 VS 2019 community edition Window 11 - 22H2 OS Build 22621.1 Word - Microsoft 356 - version 2204

I would appreciate help as we would like to create word addins which are Word version agnostic and i could see NetOffice as the best option. Thanks for such a great product. Let me know if any other information needed

ashishpCACTUS avatar May 25 '22 10:05 ashishpCACTUS

Hi Jozef,

Any update on this one.

Thanks, Ashish Padhy

ashishpCACTUS avatar May 27 '22 07:05 ashishpCACTUS

Hi @ashishpCACTUS, no update on this one.

jozefizso avatar May 27 '22 12:05 jozefizso