D
ddrozy
I am following the steps in the "Using a Visual Studio 2005 Tools for Office
Second Edition Project to Modify the Fluent UI. "
In the section, "To modify the Ribbon code and complete the add-in", step 5
says "In the same file, in the ThisAddIn partial class, immediately below the
line of code that creates the instance of the Ribbon1 class, add code that
sets the Ribbon1 class' Application property.
Visual Basic Copy Code
' In the RequestService method:
ribbon.Application = Application
Here is my code:
'TODO:
'This is an override of the RequestService method in the ThisAddIn class.
'To hook up your custom ribbon uncomment this code.
Partial Public Class ThisAddIn
Private ribbon As Ribbon1
ribbon.Application=Application
Protected Overrides Function RequestService(ByVal serviceGuid As Guid)
As Object
If serviceGuid = GetType(Office.IRibbonExtensibility).GUID Then
If ribbon Is Nothing Then
ribbon = New Ribbon1()
End If
Return ribbon
End If
Return MyBase.RequestService(serviceGuid)
End Function
End Class
I am getting two errors: 1.)Declaration Expected line 5 ribbon
2.)Type 'IRibbonControl' is not defined
Thanks for your help.
Second Edition Project to Modify the Fluent UI. "
In the section, "To modify the Ribbon code and complete the add-in", step 5
says "In the same file, in the ThisAddIn partial class, immediately below the
line of code that creates the instance of the Ribbon1 class, add code that
sets the Ribbon1 class' Application property.
Visual Basic Copy Code
' In the RequestService method:
ribbon.Application = Application
Here is my code:
'TODO:
'This is an override of the RequestService method in the ThisAddIn class.
'To hook up your custom ribbon uncomment this code.
Partial Public Class ThisAddIn
Private ribbon As Ribbon1
ribbon.Application=Application
Protected Overrides Function RequestService(ByVal serviceGuid As Guid)
As Object
If serviceGuid = GetType(Office.IRibbonExtensibility).GUID Then
If ribbon Is Nothing Then
ribbon = New Ribbon1()
End If
Return ribbon
End If
Return MyBase.RequestService(serviceGuid)
End Function
End Class
I am getting two errors: 1.)Declaration Expected line 5 ribbon
2.)Type 'IRibbonControl' is not defined
Thanks for your help.