diff --git a/BuildTools/ReferenceAnalyzer/Parser.cs b/BuildTools/ReferenceAnalyzer/Parser.cs
index 2fed739d24..3a07d296f3 100644
--- a/BuildTools/ReferenceAnalyzer/Parser.cs
+++ b/BuildTools/ReferenceAnalyzer/Parser.cs
@@ -292,251 +292,6 @@ private static void ParseWordTypeEvents(XElement propertiesNode, LogAction func)
#endregion
- #region Parse Visio
-
- ///
- /// Parse Visio Docu pages
- ///
- /// document to fill
- /// progress handler
- internal static void ParseVisio(XDocument document, LogAction func)
- {
- XElement VisioNode = new XElement("Visio");
- (document.FirstNode as XElement).Add(VisioNode);
- ParseVisioTypes(VisioNode, func);
- ParseVisioEnums(VisioNode, func);
- ParseVisioTypesMembers(VisioNode, func);
- }
-
- private static void ParseVisioTypes(XElement excelNode, LogAction func)
- {
- func("Parse Visio Types");
-
- XElement rootNode = new XElement("Types");
- excelNode.Add(rootNode);
-
- int counter = 0;
- string excelRootReferencePage = _rootAdress + _visioTypesRelative;
- using (var client = new System.Net.WebClient())
- {
- string pageContent = DownloadPage(client, excelRootReferencePage);
- HtmlDocument doc = new HtmlDocument();
- doc.LoadHtml(pageContent);
- var root = doc.DocumentNode;
-
- var divNodes = root.Descendants("div").ToList();
- foreach (var item in divNodes)
- {
- string className = item.GetAttributeValue("class", null);
- if (className == "toclevel2")
- {
- string href = item.FirstChild.NextSibling.GetAttributeValue("href", null);
- string name = item.FirstChild.NextSibling.GetAttributeValue("title", null);
- if (null != href && null != name)
- {
- if (name.EndsWith(" Object", StringComparison.InvariantCultureIgnoreCase))
- {
- name = name.Substring(0, name.Length - " Object".Length);
- rootNode.Add(new XElement("Type", new XElement("Name", name), new XElement("Link", _rootAdress + href)));
- counter++;
- }
- }
- }
-
- }
- }
-
- func(String.Format("{0} Visio Types recieved", counter));
- }
-
- private static void ParseVisioEnums(XElement excelNode, LogAction func)
- {
- func("Parse Visio Enums");
-
- XElement rootNode = new XElement("Enums");
- excelNode.Add(rootNode);
-
- int counter = 0;
- string excelRootReferencePage = _rootAdress + _visioEnumsRelative;
- using (var client = new System.Net.WebClient())
- {
- string pageContent = DownloadPage(client, excelRootReferencePage);
- HtmlDocument doc = new HtmlDocument();
- doc.LoadHtml(pageContent);
- var root = doc.DocumentNode;
-
- var divNodes = root.Descendants("div").ToList();
- foreach (var item in divNodes)
- {
- string className = item.GetAttributeValue("class", null);
- if (className == "toclevel2")
- {
- string href = item.FirstChild.NextSibling.GetAttributeValue("href", null);
- string name = item.FirstChild.NextSibling.GetAttributeValue("title", null);
- if (null != href && null != name)
- {
- name = name.Substring(0, name.Length - " Enumeration".Length);
- rootNode.Add(new XElement("Enum", new XElement("Name", name), new XElement("Link", _rootAdress + href)));
- counter++;
- }
- }
-
- }
-
- }
-
- func(String.Format("{0} Visio Enums recieved", counter));
- }
-
- private static void ParseVisioTypesMembers(XElement typeNode, LogAction func)
- {
- func("Parse Visio Type Members");
- foreach (XElement item in typeNode.Element("Types").Elements("Type"))
- {
- ParseOfficeTypeMembers(item, func);
- }
- }
-
- private static void ParseVisioTypeMembers(XElement typeNode, LogAction func)
- {
- XElement propsNode = new XElement("Properties");
- XElement methodsNode = new XElement("Methods");
- XElement eventsNode = new XElement("Events");
- typeNode.Add(propsNode);
- typeNode.Add(methodsNode);
- typeNode.Add(eventsNode);
-
- using (var client = new System.Net.WebClient())
- {
- string pageLink = typeNode.Element("Link").Value;
- string pageContent = DownloadPage(client, pageLink);
- HtmlDocument doc = new HtmlDocument();
- doc.LoadHtml(pageContent);
- var root = doc.DocumentNode;
-
- var divNodes = root.Descendants("div").ToList();
- foreach (var item in divNodes)
- {
- string className = item.GetAttributeValue("class", null);
- if (className == "toclevel2")
- {
- string href = item.FirstChild.NextSibling.GetAttributeValue("href", null);
- string name = item.FirstChild.NextSibling.GetAttributeValue("title", null);
- if (null != href && null != name)
- {
- name = name.ToLower().Trim();
- switch (name)
- {
- case "properties":
- propsNode.Add(new XAttribute("Link", XmlConvert.EncodeName(_rootAdress + href)));
- ParseVisioTypeProperties(propsNode, func);
- break;
- case "methods":
- methodsNode.Add(new XAttribute("Link", XmlConvert.EncodeName(_rootAdress + href)));
- ParseVisioTypeMethods(methodsNode, func);
- break;
- case "events":
- eventsNode.Add(new XAttribute("Link", XmlConvert.EncodeName(_rootAdress + href)));
- ParseVisioTypeEvents(eventsNode, func);
- break;
- default:
- break;
- }
- }
- }
- }
- }
- }
-
- private static void ParseVisioTypeProperties(XElement propertiesNode, LogAction func)
- {
- using (var client = new System.Net.WebClient())
- {
- string pageLink = XmlConvert.DecodeName(propertiesNode.Attribute("Link").Value);
- string pageContent = DownloadPage(client, pageLink);
- HtmlDocument doc = new HtmlDocument();
- doc.LoadHtml(pageContent);
- var root = doc.DocumentNode;
- var divNodes = root.Descendants("div").ToList();
- foreach (var item in divNodes)
- {
- string className = item.GetAttributeValue("class", null);
- if (className == "toclevel2")
- {
- string href = item.FirstChild.NextSibling.GetAttributeValue("href", null);
- string name = item.FirstChild.NextSibling.GetAttributeValue("title", null);
- if (null != href && null != name)
- {
- if (name.IndexOf(" ") > -1)
- name = name.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries)[0];
- propertiesNode.Add(new XElement("Property", new XElement("Name", name), new XElement("Link", _rootAdress + href)));
- func("");
- }
- }
- }
- }
- }
-
- private static void ParseVisioTypeMethods(XElement propertiesNode, LogAction func)
- {
- using (var client = new System.Net.WebClient())
- {
- string pageLink = XmlConvert.DecodeName(propertiesNode.Attribute("Link").Value);
- string pageContent = DownloadPage(client, pageLink);
- HtmlDocument doc = new HtmlDocument();
- doc.LoadHtml(pageContent);
- var root = doc.DocumentNode;
- var divNodes = root.Descendants("div").ToList();
- foreach (var item in divNodes)
- {
- string className = item.GetAttributeValue("class", null);
- if (className == "toclevel2")
- {
- string href = item.FirstChild.NextSibling.GetAttributeValue("href", null);
- string name = item.FirstChild.NextSibling.GetAttributeValue("title", null);
- if (null != href && null != name)
- {
- if (name.IndexOf(" ") > -1)
- name = name.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries)[0];
- propertiesNode.Add(new XElement("Method", new XElement("Name", name), new XElement("Link", _rootAdress + href)));
- func("");
- }
- }
- }
- }
- }
-
- private static void ParseVisioTypeEvents(XElement propertiesNode, LogAction func)
- {
- using (var client = new System.Net.WebClient())
- {
- string pageLink = XmlConvert.DecodeName(propertiesNode.Attribute("Link").Value);
- string pageContent = DownloadPage(client, pageLink);
- HtmlDocument doc = new HtmlDocument();
- doc.LoadHtml(pageContent);
- var root = doc.DocumentNode;
- var divNodes = root.Descendants("div").ToList();
- foreach (var item in divNodes)
- {
- string className = item.GetAttributeValue("class", null);
- if (className == "toclevel2")
- {
- string href = item.FirstChild.NextSibling.GetAttributeValue("href", null);
- string name = item.FirstChild.NextSibling.GetAttributeValue("title", null);
- if (null != href && null != name)
- {
- if (name.IndexOf(" ") > -1)
- name = name.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries)[0];
- propertiesNode.Add(new XElement("Event", new XElement("Name", name), new XElement("Link", _rootAdress + href)));
- func("");
- }
- }
- }
- }
- }
-
- #endregion
-
#region Parse Project
private static void ParseProjectTypes(XElement excelNode, LogAction func)
@@ -2023,7 +1778,6 @@ internal static XDocument ParseReference(LogAction func)
ParseOffice(document, func);
ParseOutlook(document, func);
ParsePowerPoint(document, func);
- ParseVisio(document, func);
ParseWord(document, func);
func("Done!");
diff --git a/README.md b/README.md
index 6140a74541..3153533211 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@
> NetOffice is a set of libraries for building Microsoft Office Addins and automation of Microsoft Office applications.
-Use NetOffice to extend and automate Microsoft Office applications: Excel, Word, Outlook, PowerPoint, Access and Visio.
+Use NetOffice to extend and automate Microsoft Office applications: Excel, Word, Outlook, PowerPoint and Access.
:rotating_light: **Notice**: Use official packages with [__NetOfficeFw.*__ prefix](https://www.nuget.org/packages?q=NetOfficeFw). Using old 1.7.4 packages? [Learn how to migrate.](https://netoffice.io/migrate-notice/)
diff --git a/RegAddin/RegAddin/Common/AddinRegAnalyzer.cs b/RegAddin/RegAddin/Common/AddinRegAnalyzer.cs
index 678713abdc..f7093c3da7 100644
--- a/RegAddin/RegAddin/Common/AddinRegAnalyzer.cs
+++ b/RegAddin/RegAddin/Common/AddinRegAnalyzer.cs
@@ -10,7 +10,7 @@ namespace RegAddin.Common
{
internal class AddinRegAnalyzer
{
- public static string[] _multiRegisterIn = new string[] { "Excel", "Word", "Outlook", "PowerPoint", "Access", "Visio" };
+ public static string[] _multiRegisterIn = new string[] { "Excel", "Word", "Outlook", "PowerPoint", "Access" };
private static string _systemObject = "System.Object";
@@ -26,10 +26,9 @@ internal class AddinRegAnalyzer
"NetOffice.OutlookApi.Tools.COMAddin",
"NetOffice.PowerPointApi.Tools.COMAddin",
"NetOffice.AccessApi.Tools.COMAddin",
- "NetOffice.VisioApi.Tools.COMAddin",
"NetOffice.OfficeApi.Tools.COMAddin"};
- private static string[] _classKeys = new string[] { "Excel", "Word", "Outlook", "PowerPoint", "Access", "Visio"};
+ private static string[] _classKeys = new string[] { "Excel", "Word", "Outlook", "PowerPoint", "Access" };
private static string _multiClassName = "NetOffice.OfficeApi.Tools.COMAddin";
diff --git a/RegAddin/RegAddin/RegFile/RegFileOperationHost.cs b/RegAddin/RegAddin/RegFile/RegFileOperationHost.cs
index c9c9776cff..85a9db4016 100644
--- a/RegAddin/RegAddin/RegFile/RegFileOperationHost.cs
+++ b/RegAddin/RegAddin/RegFile/RegFileOperationHost.cs
@@ -229,7 +229,7 @@ private void WriteRegistryContentToLocalFileSystem(List contentTable)
File.AppendAllText(Settings.RegFilePath, fullContent.ToString(), Encoding.Unicode);
}
- public static string[] _multiRegisterIn = new string[] { "Excel", "Word", "Outlook", "PowerPoint", "Access", "Visio" };
+ public static string[] _multiRegisterIn = new string[] { "Excel", "Word", "Outlook", "PowerPoint", "Access" };
private string CreateRegistryFileContent(Assembly addinAssembly, IEnumerable