I have the product id of the of the store app …now i want to launch that it in online word app automatically
Can you please provide more details about the specific functionality you are trying to achieve with the Word add-in in the online Word app?
@Rubal Please see our documentation to learn how to work with Office Add-ins using Aspose.Words:
https://docs.aspose.com/words/net/work-with-office-add-ins/
Trying to auto launch my word addin through bwlow code
MemoryStream memoryStream = new MemoryStream(document);
Aspose.Words.Document asposeDocument = new Aspose.Words.Document(memoryStream)
{
TrackRevisions = true
};
// byte[] _onlineDocumentBytes = attachWordaddinProductId(document);
TaskPane taskPane = new TaskPane();
asposeDocument.WebExtensionTaskPanes.Add(taskPane);
taskPane.DockState = TaskPaneDockState.Right;
taskPane.IsVisible = true;
taskPane.Width = 300;
taskPane.WebExtension.Reference.Id = "WA200007384";
taskPane.WebExtension.Reference.Version = "1.0.0.0";
taskPane.WebExtension.Reference.StoreType = WebExtensionStoreType.OMEX;
taskPane.WebExtension.Reference.Store = "en-US";
taskPane.WebExtension.Properties.Add(new WebExtensionProperty("Office.AutoShowTaskpaneWithDocument", "true"));
taskPane.WebExtension.Bindings.Add(new WebExtensionBinding("UnnamedBinding_0_1506535429545", WebExtensionBindingType.Text, "194740422"));
String filename1 = Guid.NewGuid().ToString() + ".docx";
filePath = AppDomain.CurrentDomain.BaseDirectory + @"\Contracts\" + filename1;
filePath2 = AppDomain.CurrentDomain.BaseDirectory + @"\Contracts\New" + filename1;
asposeDocument.Save(@filePath, SaveFormat.Docx);
// File.WriteAllBytes(@filePath, _onlineDocumentBytes);
byte[] newBytes = File.ReadAllBytes(@filePath);
output i am getting is
Please help me with some code…
can you also providd me code so that the auto launch gets work in online word document also
\
@Rubal Could you please create the expected output document using MS Word? We will investigate it and provide you more information.
i am attaching the offline document
Test_20250103180824 (1).docx (23.4 KB)
when you open this document you will see a pane on the right hand side will automatically come… i want same in online word…
@Rubal Thank you for additional information. As I can see the attached document has been created using Aspose.Words. MS documentation says that it is required to set Office.AutoShowTaskpaneWithDocument
option
https://learn.microsoft.com/en-us/office/dev/add-ins/develop/automatically-open-a-task-pane-with-a-document
You have already done this and it works as expected in offline word. So I think this is a bug or limitation of online word.