Regarding the Ribbon DemoAddin from Jason, has anybody tried using an external XML file instead of the one in the resources.
The current version uses:
I tried using the other override with a single argument which is a string but it does not appear to be an XML filename:
Private Const _embeddedResourceName As String = "c:\Temp\Ribbon3DEnv.xml"
Then I tried using:
Dim xmlDoc As New XmlDocument()
Dim xmlRibbon As String = xmlDoc.InnerText
This too is not working. The error is the root node is not found or present.
Is there an easy way to use an external XML file for the ribbon definition instead of the one embedded in the project resources ?
Solved! Go to Solution.
Here is how to do it in C#.
var xml = System.IO.File.ReadAllText(@"c:\Temp\Ribbon3DEnv.xml"); this.LoadXml(xml);
The xml parameter is the actual XML text. Using this overload, the text can come from anywhere.