├── .editorconfig
├── .gitignore
├── Access
├── 01 Access Automation Sample.sln
├── 01 Access Automation Sample
│ └── AccessExamples
│ │ ├── AccessExamples CSharp.csproj
│ │ ├── Examples
│ │ ├── Example01.cs
│ │ ├── Example02.cs
│ │ ├── Example03.cs
│ │ ├── Example04.Designer.cs
│ │ ├── Example04.cs
│ │ ├── Example04.resx
│ │ ├── Example05.Designer.cs
│ │ ├── Example05.cs
│ │ └── Example05.resx
│ │ ├── FormMain.Designer.cs
│ │ ├── FormMain.cs
│ │ ├── Overview.txt
│ │ ├── Program.cs
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ │ ├── app.config
│ │ └── packages.config
├── 01 Simple
│ ├── 01 Simple.csproj
│ ├── Addin.cs
│ └── Properties
│ │ └── AssemblyInfo.cs
├── 02 NetOffice Access COMAddin Sample.sln
├── 02 NetOffice Access COMAddin Sample
│ ├── Extended
│ │ ├── Addin.cs
│ │ ├── Images
│ │ │ ├── about.png
│ │ │ ├── alarmclock_run.png
│ │ │ ├── alarmclock_stop.png
│ │ │ └── delete2.png
│ │ ├── NetOffice Tools - Extended.csproj
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ └── Resources.resx
│ │ ├── RibbonUI.xml
│ │ ├── SamplePane.Designer.cs
│ │ ├── SamplePane.cs
│ │ ├── SamplePane.resx
│ │ └── packages.config
│ ├── Simple
│ │ ├── Addin.cs
│ │ ├── NetOffice Tools - Simple.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ └── Tweaks
│ │ ├── Addin.cs
│ │ ├── NetOffice Tools - Tweaks.csproj
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ └── packages.config
├── 02 Ribbons And Panes
│ ├── 02 Ribbons and Panes.csproj
│ ├── Addin.cs
│ ├── Images
│ │ ├── about.png
│ │ ├── alarmclock_run.png
│ │ ├── alarmclock_stop.png
│ │ └── delete2.png
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ └── Resources.resx
│ ├── RibbonUI.xml
│ ├── SamplePane.Designer.cs
│ ├── SamplePane.cs
│ └── SamplePane.resx
├── 03 IDTExtensibility2 Access Sample.sln
├── 03 IDTExtensibility2 Access Sample
│ ├── ClassicUI
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - ClassicUI.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ ├── RibbonUI
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - RibbonUI.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── RibbonUI.xml
│ │ └── packages.config
│ └── TaskPane
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - Taskpane.csproj
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ ├── SampleControl.Designer.cs
│ │ ├── SampleControl.cs
│ │ ├── SampleControl.resx
│ │ ├── SampleData
│ │ ├── Customer.cs
│ │ └── CustomerData.xml
│ │ └── packages.config
├── 03 Troubleshooting and Diagnostics
│ ├── 03 Troubleshooting and Diagnostics.csproj
│ ├── Addin.cs
│ ├── Addin.ico
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── TrayMenuHeader.png
├── 04 Register and Unregister
│ ├── 04 Register and Unregister.csproj
│ ├── Addin.cs
│ └── Properties
│ │ └── AssemblyInfo.cs
├── NetOffice Access Addin Examples.sln
└── readme.md
├── AddinProject.exe
├── AddinProjectHelper
├── AddinProjectHelper.sln
├── AddinProjectHelper
│ ├── AddinProjectHelper.csproj
│ ├── Form1.Designer.cs
│ ├── Form1.cs
│ ├── Form1.resx
│ ├── Injector.cs
│ ├── NetOffice.Icon.32x32.ico
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ └── Template.txt
└── StartDebug.png
├── AddinRemoval.exe
├── AddinRemovalTool
├── AddinRemovalTool.sln
├── AddinRemovalTool
│ ├── AddinEntry.cs
│ ├── AddinRemovalTool.csproj
│ ├── AddinSearcher.cs
│ ├── Form1.Designer.cs
│ ├── Form1.cs
│ ├── Form1.resx
│ ├── NetOffice.Icon.32x32.ico
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── app.config
│ └── app.manifest
├── AddinRemovalToolUpdater
│ ├── AddinRemovalToolUpdater.csproj
│ ├── Form1.Designer.cs
│ ├── Form1.cs
│ ├── Form1.resx
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ └── app.config
└── WhatsThis.txt
├── ExampleBase.dll
├── ExampleBase
├── ExampleBase.sln
└── ExampleBase
│ ├── AreaForm.Designer.cs
│ ├── AreaForm.cs
│ ├── AreaForm.resx
│ ├── ErrorForm.Designer.cs
│ ├── ErrorForm.cs
│ ├── ErrorForm.resx
│ ├── ExampleBase.csproj
│ ├── ExampleForm.Designer.cs
│ ├── ExampleForm.cs
│ ├── ExampleForm.resx
│ ├── ExampleViewItem.cs
│ ├── FinishForm.Designer.cs
│ ├── FinishForm.cs
│ ├── FinishForm.resx
│ ├── FormBase.Designer.cs
│ ├── FormOptions.Designer.cs
│ ├── FormOptions.cs
│ ├── FormOptions.resx
│ ├── IExample.cs
│ ├── IHost.cs
│ ├── OptionsForm.Designer.cs
│ ├── OptionsForm.cs
│ ├── OptionsForm.resx
│ ├── Properties
│ └── AssemblyInfo.cs
│ └── SortableBindingList.cs
├── Excel
├── 01 Excel Automation Sample.sln
├── 01 Excel Automation Sample
│ └── ExcelExamples
│ │ ├── Examples
│ │ ├── Example01.cs
│ │ ├── Example02.cs
│ │ ├── Example03.cs
│ │ ├── Example04.cs
│ │ ├── Example05.cs
│ │ ├── Example06.Designer.cs
│ │ ├── Example06.cs
│ │ ├── Example06.resx
│ │ ├── Example07.cs
│ │ ├── Example08.Designer.cs
│ │ ├── Example08.cs
│ │ ├── Example08.resx
│ │ ├── Example09.Designer.cs
│ │ ├── Example09.cs
│ │ ├── Example09.resx
│ │ └── Example10.cs
│ │ ├── ExcelExamples CSharp.csproj
│ │ ├── FormMain.Designer.cs
│ │ ├── FormMain.cs
│ │ ├── Overview.txt
│ │ ├── Program.cs
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ │ └── packages.config
├── 02 NetOffice Excel COMAddin Sample.sln
├── 02 NetOffice Excel COMAddin Sample
│ ├── 01 Simple
│ │ ├── 01 Simple.csproj
│ │ ├── Addin.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ ├── 02 Ribbons And Panes
│ │ ├── 02 Ribbons and Panes.csproj
│ │ ├── Addin.cs
│ │ ├── Description.txt
│ │ ├── Images
│ │ │ ├── about.png
│ │ │ ├── alarmclock_run.png
│ │ │ ├── alarmclock_stop.png
│ │ │ └── delete2.png
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ └── Resources.resx
│ │ ├── RibbonUI.xml
│ │ ├── SamplePane.Designer.cs
│ │ ├── SamplePane.cs
│ │ ├── SamplePane.resx
│ │ └── packages.config
│ ├── 03 Troubleshooting and Diagnostics
│ │ ├── 03 Troubleshooting and Diagnostics.csproj
│ │ ├── Addin.cs
│ │ ├── Addin.ico
│ │ ├── Description.txt
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── TrayMenuHeader.png
│ │ └── packages.config
│ ├── 04 Register and Unregister
│ │ ├── 04 Register and Unregister.csproj
│ │ ├── Addin.cs
│ │ ├── Description.txt
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ ├── 05 Rtd Server
│ │ ├── 05 Rtd Server.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── Server.cs
│ ├── 06 Shim
│ │ ├── 06 Shim.csproj
│ │ ├── Addin.cs
│ │ ├── Excel06AddinCS4.Shim.dll
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ ├── 06 Tools and Helpers
│ │ ├── 06 Tools and Helpers.csproj
│ │ ├── Addin.cs
│ │ ├── Addin.ico
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── SampleForm.Designer.cs
│ │ ├── SampleForm.cs
│ │ ├── SampleForm.resx
│ │ ├── app.config
│ │ └── packages.config
│ └── 07 Tweaks
│ │ ├── 07 Tweaks.csproj
│ │ ├── Addin.cs
│ │ ├── Description.txt
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ └── packages.config
├── 03 IDTExtensibility2 Excel Sample.sln
├── 03 IDTExtensibility2 Excel Sample
│ ├── ClassicUI
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - ClassicUI.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ ├── RibbonUI
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - RibbonUI.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── RibbonUI.xml
│ │ └── packages.config
│ └── TaskPane
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - Taskpane.csproj
│ │ ├── NetOffice.Icon.16x16.ico
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ └── Resources.resx
│ │ ├── SampleControl.Designer.cs
│ │ ├── SampleControl.cs
│ │ ├── SampleControl.resx
│ │ ├── SampleData
│ │ ├── Customer.cs
│ │ └── CustomerData.xml
│ │ ├── details.png
│ │ ├── help.png
│ │ ├── list.png
│ │ ├── packages.config
│ │ ├── search.png
│ │ └── user.png
├── 04 DynamicExample.sln
├── 04 DynamicExample
│ └── DynamicExample
│ │ ├── DynamicExample.csproj
│ │ ├── Form1.Designer.cs
│ │ ├── Form1.cs
│ │ ├── Form1.resx
│ │ ├── Program.cs
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ │ ├── app.manifest
│ │ └── packages.config
└── readme.md
├── LICENSE.txt
├── Misc
├── 01 Super Addin Sample.sln
├── 01 Super Addin Sample.sln.DotSettings
├── 01 Super Addin Sample
│ ├── COMAddin SuperAddin
│ │ ├── Addin.cs
│ │ ├── COMAddin SuperAddin.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── RibbonUI.xml
│ │ └── packages.config
│ └── IDTExtensibility2 SuperAddin
│ │ ├── Addin.cs
│ │ ├── AddinUI.cs
│ │ ├── IDTExtensibility2 SuperAddin.csproj
│ │ ├── OfficeRegistry.cs
│ │ ├── Properties
│ │ ├── AddinIcon.ico
│ │ └── AssemblyInfo.cs
│ │ ├── RibbonUI.xml
│ │ └── packages.config
├── Excel Addin - Google Translation
│ ├── ExcelAddin
│ │ ├── Images
│ │ │ ├── NetOffice.Icon.32x32.ico
│ │ │ ├── accept.png
│ │ │ ├── arrow_refresh.png
│ │ │ └── exclamation.png
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ └── Resources.resx
│ │ ├── Sample.ExcelAddin.csproj
│ │ ├── ThisAddin.cs
│ │ ├── TranslationClient.cs
│ │ ├── TranslationPane.Designer.cs
│ │ ├── TranslationPane.cs
│ │ ├── TranslationPane.resx
│ │ └── packages.config
│ ├── Google Translation.sln
│ ├── Instructions.txt
│ ├── Local Shared Concept.png
│ ├── Screenshot.PNG
│ ├── Server
│ │ ├── EventRepeator.cs
│ │ ├── Languages.txt
│ │ ├── Lib
│ │ │ ├── StringParser.dll
│ │ │ └── WebResourceProvider.dll
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Settings.Designer.cs
│ │ │ └── Settings.settings
│ │ ├── Sample.Server.csproj
│ │ ├── TranslateOperationResult.cs
│ │ ├── TranslationCache.cs
│ │ └── WebTranslationService.cs
│ └── ServerHost
│ │ ├── FormMain.Designer.cs
│ │ ├── FormMain.cs
│ │ ├── FormMain.resx
│ │ ├── Images
│ │ ├── error.png
│ │ ├── ok.png
│ │ ├── start.png
│ │ └── warning.png
│ │ ├── Program.cs
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ │ ├── Sample.ServerHost.csproj
│ │ └── color_wheel.ico
├── Other Examples
│ ├── MiscExamples.sln
│ └── MiscExamples
│ │ ├── Examples
│ │ ├── Example01.cs
│ │ ├── Example02.cs
│ │ ├── Example03.Designer.cs
│ │ ├── Example03.cs
│ │ └── Example03.resx
│ │ ├── FormMain.Designer.cs
│ │ ├── FormMain.cs
│ │ ├── MiscExamples CSharp.csproj
│ │ ├── Overview.txt
│ │ ├── Program.cs
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ │ └── packages.config
├── Outlook Addin - Use Twitter
│ ├── Lib
│ │ └── LinqToTwitterCP.dll
│ ├── Outlook Addin - Use Twitter.sln
│ ├── Outlook Addin - Use Twitter
│ │ ├── Images
│ │ │ ├── NetOffice.Icon.32x32.ico
│ │ │ ├── Outlook.ico
│ │ │ ├── Settings.PNG
│ │ │ ├── color_swatch.png
│ │ │ ├── control_play_blue.png
│ │ │ ├── exclamation.png
│ │ │ ├── information.png
│ │ │ ├── lock_break.png
│ │ │ ├── lock_go.png
│ │ │ ├── plugin.png
│ │ │ ├── setting_tools.png
│ │ │ ├── twitter_1.png
│ │ │ ├── twitter_1_big.png
│ │ │ ├── twitter_2.png
│ │ │ └── twitter_2_big.png
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ ├── Resources.resx
│ │ │ ├── Settings.Designer.cs
│ │ │ └── Settings.settings
│ │ ├── Sample.Addin.csproj
│ │ ├── ThisAddin.cs
│ │ ├── Twitter
│ │ │ ├── TwitterTimer.cs
│ │ │ └── WebImageCollection.cs
│ │ ├── TwitterPane.Designer.cs
│ │ ├── TwitterPane.cs
│ │ ├── TwitterPane.resx
│ │ ├── UserControls
│ │ │ ├── ErrorPane.Designer.cs
│ │ │ ├── ErrorPane.cs
│ │ │ ├── ErrorPane.resx
│ │ │ ├── PongPanel.cs
│ │ │ ├── SettingsPane.Designer.cs
│ │ │ ├── SettingsPane.cs
│ │ │ ├── SettingsPane.resx
│ │ │ ├── TweetGrid.Designer.cs
│ │ │ ├── TweetGrid.cs
│ │ │ ├── TweetGrid.resx
│ │ │ ├── TweetPane.Designer.cs
│ │ │ ├── TweetPane.cs
│ │ │ └── TweetPane.resx
│ │ └── app.config
│ └── Screenshot.PNG
├── Word Addin - Search Wikipedia
│ ├── Lib
│ │ ├── LinqToWikipedia.License.txt
│ │ └── LinqToWikipedia.dll
│ ├── Screenshot.JPG
│ ├── Search Wikipedia.sln
│ └── Search Wikipedia
│ │ ├── Images
│ │ ├── information.png
│ │ └── search_plus.png
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ └── Resources.resx
│ │ ├── Sample.Addin.csproj
│ │ ├── ThisAddin.cs
│ │ ├── WikipediaPane.Designer.cs
│ │ ├── WikipediaPane.cs
│ │ └── WikipediaPane.resx
└── readme.md
├── NetCoreAddins
├── Net5Addin
│ ├── Net5Addin.cs
│ ├── Net5Addin.csproj
│ └── register-addin.cmd
├── NetCore3Addin
│ ├── NetCore3Addin.cs
│ ├── NetCore3Addin.csproj
│ └── register-addin.cmd
└── NetCoreAddins.sln
├── NuGet.config
├── Outlook
├── 01 Outlook Automation Sample.sln
├── 01 Outlook Automation Sample
│ └── OutookExamples
│ │ ├── Examples
│ │ ├── Example01.Designer.cs
│ │ ├── Example01.cs
│ │ ├── Example01.resx
│ │ ├── Example02.cs
│ │ ├── Example03.Designer.cs
│ │ ├── Example03.cs
│ │ ├── Example03.resx
│ │ ├── Example04.cs
│ │ ├── Example05.Designer.cs
│ │ ├── Example05.cs
│ │ ├── Example05.resx
│ │ ├── Example06.Designer.cs
│ │ ├── Example06.cs
│ │ ├── Example06.resx
│ │ ├── Example07.Designer.cs
│ │ ├── Example07.cs
│ │ └── Example07.resx
│ │ ├── FormMain.Designer.cs
│ │ ├── FormMain.cs
│ │ ├── OutlookExamples CSharp.csproj
│ │ ├── Overview.txt
│ │ ├── Program.cs
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ │ └── packages.config
├── 02 NetOffice Outlook COMAddin Sample.sln
├── 02 NetOffice Outlook COMAddin Sample
│ ├── 01 Simple
│ │ ├── 01 Simple.csproj
│ │ ├── Addin.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ ├── 02 Ribbons And Panes
│ │ ├── 02 Ribbons and Panes.csproj
│ │ ├── Addin.cs
│ │ ├── Images
│ │ │ ├── about.png
│ │ │ ├── alarmclock_run.png
│ │ │ ├── alarmclock_stop.png
│ │ │ └── delete2.png
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ └── Resources.resx
│ │ ├── RibbonUI.xml
│ │ ├── SamplePane.Designer.cs
│ │ ├── SamplePane.cs
│ │ ├── SamplePane.resx
│ │ └── packages.config
│ ├── 03 Troubleshooting and Diagnostics
│ │ ├── 03 Troubleshooting and Diagnostics.csproj
│ │ ├── Addin.cs
│ │ ├── Addin.ico
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── TrayMenuHeader.png
│ │ └── packages.config
│ ├── 04 Register and Unregister
│ │ ├── 04 Register and Unregister.csproj
│ │ ├── Addin.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ ├── 05 Custom Property Page
│ │ ├── 05 Custom Property Page.csproj
│ │ ├── Addin.cs
│ │ ├── OptionPage.Designer.cs
│ │ ├── OptionPage.cs
│ │ ├── OptionPage.resx
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ └── 06 FormRegions
│ │ ├── 06 FormRegions.csproj
│ │ ├── Addin.cs
│ │ ├── CustomFormRegion1.cs
│ │ ├── CustomFormRegion1.ofs
│ │ ├── CustomFormRegion1.xml
│ │ ├── Icon1.ico
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ └── Resources.resx
│ │ └── packages.config
├── 03 IDTExtensibility2 Outlook Sample.sln
├── 03 IDTExtensibility2 Outlook Sample
│ ├── ClassicUI
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - ClassicUI.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ ├── RibbonUI
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - RibbonUI.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── RibbonUI.xml
│ │ └── packages.config
│ └── TaskPane
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - Taskpane.csproj
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ └── Resources.resx
│ │ ├── SampleControl.Designer.cs
│ │ ├── SampleControl.cs
│ │ ├── SampleControl.resx
│ │ ├── SampleData
│ │ ├── Customer.cs
│ │ └── CustomerData.xml
│ │ └── packages.config
└── readme.md
├── PowerPoint
├── 01 PowerPoint Automation Sample.sln
├── 01 PowerPoint Automation Sample
│ └── PowerPointExamples
│ │ ├── Examples
│ │ ├── Example01.cs
│ │ ├── Example02.cs
│ │ ├── Example03.cs
│ │ ├── Example04.cs
│ │ ├── Example05.cs
│ │ ├── Example06.Designer.cs
│ │ ├── Example06.cs
│ │ ├── Example06.resx
│ │ ├── Example07.Designer.cs
│ │ ├── Example07.cs
│ │ └── Example07.resx
│ │ ├── FormMain.Designer.cs
│ │ ├── FormMain.cs
│ │ ├── Overview.txt
│ │ ├── PowerPointExamples CSharp.csproj
│ │ ├── Program.cs
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ │ └── packages.config
├── 02 NetOffice PowerPoint COMAddin Sample.sln
├── 02 NetOffice PowerPoint COMAddin Sample
│ ├── 01 Simple
│ │ ├── 01 Simple.csproj
│ │ ├── Addin.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ ├── 02 Ribbons And Panes
│ │ ├── 02 Ribbons And Panes.csproj
│ │ ├── Addin.cs
│ │ ├── Images
│ │ │ ├── about.png
│ │ │ ├── alarmclock_run.png
│ │ │ ├── alarmclock_stop.png
│ │ │ └── delete2.png
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ └── Resources.resx
│ │ ├── RibbonUI.xml
│ │ ├── SamplePane.Designer.cs
│ │ ├── SamplePane.cs
│ │ ├── SamplePane.resx
│ │ └── packages.config
│ ├── 03 Troubleshooting and Diagnostics
│ │ ├── 03 Troubleshooting and Diagnostics.csproj
│ │ ├── Addin.cs
│ │ ├── Addin.ico
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── TrayMenuHeader.png
│ │ └── packages.config
│ └── 04 Register and Unregister
│ │ ├── 04 Register and Unregister.csproj
│ │ ├── Addin.cs
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ └── packages.config
├── 03 IDTExtensibility2 PowerPoint Sample.sln
├── 03 IDTExtensibility2 PowerPoint Sample
│ ├── ClassicUI
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - ClassicUI.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ ├── RibbonUI
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - RibbonUI.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── RibbonUI.xml
│ │ └── packages.config
│ └── TaskPane
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - Taskpane.csproj
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ ├── SampleControl.Designer.cs
│ │ ├── SampleControl.cs
│ │ ├── SampleControl.resx
│ │ ├── SampleData
│ │ ├── Customer.cs
│ │ └── CustomerData.xml
│ │ └── packages.config
└── readme.md
├── README.md
├── Word
├── 01 Word Automation Sample.sln
├── 01 Word Automation Sample
│ └── WordExamples
│ │ ├── Examples
│ │ ├── Example01.cs
│ │ ├── Example02.cs
│ │ ├── Example03.cs
│ │ ├── Example04.cs
│ │ ├── Example05.cs
│ │ ├── Example06.Designer.cs
│ │ ├── Example06.cs
│ │ ├── Example06.resx
│ │ ├── Example07.Designer.cs
│ │ ├── Example07.cs
│ │ └── Example07.resx
│ │ ├── FormMain.Designer.cs
│ │ ├── FormMain.cs
│ │ ├── Overview.txt
│ │ ├── Program.cs
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ │ ├── WordExamples CSharp.csproj
│ │ └── packages.config
├── 02 NetOffice Word COMAddin Sample.sln
├── 02 NetOffice Word COMAddin Sample
│ ├── 01 Simple
│ │ ├── 01 Simple.csproj
│ │ ├── Addin.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ └── 02 Ribbons And Panes
│ │ ├── 02 Ribbons And Panes.csproj
│ │ ├── Addin.cs
│ │ ├── Images
│ │ ├── about.png
│ │ ├── alarmclock_run.png
│ │ ├── alarmclock_stop.png
│ │ └── delete2.png
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ └── Resources.resx
│ │ ├── RibbonUI.xml
│ │ ├── SamplePane.Designer.cs
│ │ ├── SamplePane.cs
│ │ ├── SamplePane.resx
│ │ └── packages.config
├── 03 IDTExtensibility2 Word Sample.sln
├── 03 IDTExtensibility2 Word Sample
│ ├── ClassicUI
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - ClassicUI.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ ├── RibbonUI
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - RibbonUI.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── RibbonUI.xml
│ │ └── packages.config
│ └── TaskPane
│ │ ├── Addin.cs
│ │ ├── IDTExtensibility2 - Taskpane.csproj
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ ├── SampleControl.Designer.cs
│ │ ├── SampleControl.cs
│ │ ├── SampleControl.resx
│ │ ├── SampleData
│ │ ├── Customer.cs
│ │ └── CustomerData.xml
│ │ └── packages.config
└── readme.md
├── appveyor.yml
├── build.cake
└── build.ps1
/.editorconfig:
--------------------------------------------------------------------------------
1 | ; Editors Configuration
2 | ; See http://editorconfig.org/ for more information.
3 |
4 | ; Top-most EditorConfig file
5 | root = true
6 |
7 | ; Use Windows line endings
8 | [*]
9 | charset = utf-8
10 | end_of_line = crlf
11 | indent_style = space
12 | indent_size = 4
13 | insert_final_newline = true
14 |
15 | ; Markdown files
16 | [*.md]
17 | insert_final_newline = false
18 |
19 | ; C# settings
20 | [*.cs]
21 | indent_style = space
22 | indent_size = 4
23 |
24 | ; NuGet packages configuration files
25 | [packages.config]
26 | indent_style = space
27 | indent_size = 2
28 | insert_final_newline = false
29 |
30 | ; Other files
31 | [app.manifest]
32 | indent_style = space
33 | indent_size = 2
34 |
35 | ; Solution file
36 | [*.sln]
37 | indent_style = tab
38 | indent_size = 4
39 |
40 | [*.csproj]
41 | indent_style = space
42 | indent_size = 2
43 | insert_final_newline = false
44 |
45 | [*.csproj.user]
46 | indent_style = space
47 | indent_size = 2
48 | insert_final_newline = false
49 |
50 | [*.targets]
51 | indent_style = space
52 | indent_size = 4
53 | insert_final_newline = false
54 |
--------------------------------------------------------------------------------
/Access/01 Access Automation Sample.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AccessExamples CSharp", "01 Access Automation Sample\AccessExamples\AccessExamples CSharp.csproj", "{9BF03806-F1E8-4FAB-A60B-BA981ADDBFC2}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x86 = Debug|x86
12 | Release|Any CPU = Release|Any CPU
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {9BF03806-F1E8-4FAB-A60B-BA981ADDBFC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {9BF03806-F1E8-4FAB-A60B-BA981ADDBFC2}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {9BF03806-F1E8-4FAB-A60B-BA981ADDBFC2}.Debug|x86.ActiveCfg = Debug|x86
19 | {9BF03806-F1E8-4FAB-A60B-BA981ADDBFC2}.Debug|x86.Build.0 = Debug|x86
20 | {9BF03806-F1E8-4FAB-A60B-BA981ADDBFC2}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {9BF03806-F1E8-4FAB-A60B-BA981ADDBFC2}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {9BF03806-F1E8-4FAB-A60B-BA981ADDBFC2}.Release|x86.ActiveCfg = Release|x86
23 | {9BF03806-F1E8-4FAB-A60B-BA981ADDBFC2}.Release|x86.Build.0 = Release|x86
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/Access/01 Access Automation Sample/AccessExamples/FormMain.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace AccessExamplesCS4
2 | {
3 | partial class FormMain
4 | {
5 | ///
6 | /// Erforderliche Designervariable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Verwendete Ressourcen bereinigen.
12 | ///
13 | /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Vom Windows Form-Designer generierter Code
24 |
25 | ///
26 | /// Erforderliche Methode für die Designerunterstützung.
27 | /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.components = new System.ComponentModel.Container();
32 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
33 | this.Text = "Form1";
34 | }
35 |
36 | #endregion
37 | }
38 | }
39 |
40 |
--------------------------------------------------------------------------------
/Access/01 Access Automation Sample/AccessExamples/FormMain.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using ExampleBase;
3 |
4 | namespace AccessExamplesCS4
5 | {
6 | public partial class FormMain : ExampleForm
7 | {
8 | public FormMain()
9 | {
10 | InitializeComponent();
11 | this.Text = "NetOffice Access Examples in C#";
12 | LoadExamples();
13 | }
14 |
15 | private void LoadExamples()
16 | {
17 | LoadExample(new Example01());
18 | LoadExample(new Example02());
19 | LoadExample(new Example03());
20 | LoadExample(new Example04());
21 | LoadExample(new Example05());
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/Access/01 Access Automation Sample/AccessExamples/Overview.txt:
--------------------------------------------------------------------------------
1 | Example01 - create new Database
2 | Example02 - write data
3 | Example03 - use compactdatabase
4 | Example04 - database informations
5 | Example05 - customize UI
--------------------------------------------------------------------------------
/Access/01 Access Automation Sample/AccessExamples/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace AccessExamplesCS4
5 | {
6 | static class Program
7 | {
8 | ///
9 | /// Der Haupteinstiegspunkt für die Anwendung.
10 | ///
11 | [STAThread]
12 | static void Main()
13 | {
14 | Application.EnableVisualStyles();
15 | Application.SetCompatibleTextRenderingDefault(false);
16 | Application.Run(new FormMain());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Access/01 Access Automation Sample/AccessExamples/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace AccessExamplesCS4.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.8.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Access/01 Access Automation Sample/AccessExamples/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Access/01 Access Automation Sample/AccessExamples/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Access/01 Access Automation Sample/AccessExamples/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Access/01 Simple/Addin.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 | using NetOffice;
4 | using NetOffice.Tools;
5 | using NetOffice.AccessApi.Tools;
6 | /*
7 | Minimum Addin Example
8 | */
9 | namespace Access01AddinCS4
10 | {
11 | [COMAddin("Access01 Sample Addin CS4", "Miminum Addin Example", LoadBehavior.LoadAtStartup)]
12 | [ProgId("Access01AddinCS4.Connect"), Guid("C1C784CA-751F-429D-AB39-ECAA7D38BD4D"), Codebase, Timestamp]
13 | public class Addin : COMAddin
14 | {
15 | public Addin()
16 | {
17 | OnStartupComplete += Addin_OnStartupComplete;
18 | OnDisconnection += Addin_OnDisconnection;
19 | }
20 |
21 | private void Addin_OnStartupComplete(ref Array custom)
22 | {
23 | if(Application.EntityIsAvailable("Version"))
24 | Console.WriteLine("Access Version is {0}", Application.Version);
25 | else
26 | Console.WriteLine("Access Version is {0}", "9(2000) or below");
27 | }
28 |
29 | private void Addin_OnDisconnection(ext_DisconnectMode removeMode, ref Array custom)
30 | {
31 |
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/Access/01 Simple/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Access01AddinCS4")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
13 | [assembly: AssemblyCopyright("Copyright © 2016 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("b3381587-3ea0-48d3-8bb9-5edf2822678b")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Access/02 NetOffice Access COMAddin Sample/Extended/Images/about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Access/02 NetOffice Access COMAddin Sample/Extended/Images/about.png
--------------------------------------------------------------------------------
/Access/02 NetOffice Access COMAddin Sample/Extended/Images/alarmclock_run.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Access/02 NetOffice Access COMAddin Sample/Extended/Images/alarmclock_run.png
--------------------------------------------------------------------------------
/Access/02 NetOffice Access COMAddin Sample/Extended/Images/alarmclock_stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Access/02 NetOffice Access COMAddin Sample/Extended/Images/alarmclock_stop.png
--------------------------------------------------------------------------------
/Access/02 NetOffice Access COMAddin Sample/Extended/Images/delete2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Access/02 NetOffice Access COMAddin Sample/Extended/Images/delete2.png
--------------------------------------------------------------------------------
/Access/02 NetOffice Access COMAddin Sample/Extended/RibbonUI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Access/02 NetOffice Access COMAddin Sample/Extended/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Access/02 NetOffice Access COMAddin Sample/Simple/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Access/02 NetOffice Access COMAddin Sample/Tweaks/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Access/02 Ribbons And Panes/Images/about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Access/02 Ribbons And Panes/Images/about.png
--------------------------------------------------------------------------------
/Access/02 Ribbons And Panes/Images/alarmclock_run.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Access/02 Ribbons And Panes/Images/alarmclock_run.png
--------------------------------------------------------------------------------
/Access/02 Ribbons And Panes/Images/alarmclock_stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Access/02 Ribbons And Panes/Images/alarmclock_stop.png
--------------------------------------------------------------------------------
/Access/02 Ribbons And Panes/Images/delete2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Access/02 Ribbons And Panes/Images/delete2.png
--------------------------------------------------------------------------------
/Access/02 Ribbons And Panes/RibbonUI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Access/03 IDTExtensibility2 Access Sample/ClassicUI/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("COMAddinClassicExample")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("http://netoffice.codeplex.com")]
11 | [assembly: AssemblyProduct("NetOffice")]
12 | [assembly: AssemblyCopyright("Copyright © 2010 Sebastian Lange")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(true)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("620032f1-e6ea-410f-9a75-9cb57d46d442")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/Access/03 IDTExtensibility2 Access Sample/ClassicUI/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Access/03 IDTExtensibility2 Access Sample/RibbonUI/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("COMAddinRibbonExample")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("http://netoffice.codeplex.com")]
11 | [assembly: AssemblyProduct("NetOffice")]
12 | [assembly: AssemblyCopyright("Copyright © 2010 Sebastian Lange")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(true)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("150fd519-343f-4779-b112-cb80193fa8df")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersionAttribute("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/Access/03 IDTExtensibility2 Access Sample/RibbonUI/RibbonUI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Access/03 IDTExtensibility2 Access Sample/RibbonUI/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Access/03 IDTExtensibility2 Access Sample/TaskPane/SampleData/Customer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace COMAddinTaskPaneExampleCS4
4 | {
5 | class Customer
6 | {
7 | int _id;
8 | string _name;
9 | string _company;
10 | string _city;
11 | string _postalCode;
12 | string _country;
13 | string _phone;
14 |
15 | internal Customer(int id, string name, string company, string city, string postalCode, string country, string phone)
16 | {
17 | _id = id;
18 | _name = name;
19 | _company = company;
20 | _city = city;
21 | _postalCode = postalCode;
22 | _country = country;
23 | _phone = phone;
24 | }
25 |
26 | public int ID { get { return _id; } }
27 | public string Name { get { return _name; } }
28 | public string Company { get { return _company; } }
29 | public string City { get { return _city; } }
30 | public string PostalCode { get { return _postalCode; } }
31 | public string Country { get { return _country; } }
32 | public string Phone { get { return _phone; } }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Access/03 IDTExtensibility2 Access Sample/TaskPane/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Access/03 Troubleshooting and Diagnostics/Addin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Access/03 Troubleshooting and Diagnostics/Addin.ico
--------------------------------------------------------------------------------
/Access/03 Troubleshooting and Diagnostics/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Access03AddinCS4")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
13 | [assembly: AssemblyCopyright("Copyright © 2013 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("407204e3-769b-416e-92d8-f82b65eb4cb2")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Access/03 Troubleshooting and Diagnostics/TrayMenuHeader.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Access/03 Troubleshooting and Diagnostics/TrayMenuHeader.png
--------------------------------------------------------------------------------
/Access/04 Register and Unregister/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Access04AddinCS4")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
13 | [assembly: AssemblyCopyright("Copyright © 2013 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("f7879329-dde9-49e5-a6a5-fe5619bb9b11")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Access/readme.md:
--------------------------------------------------------------------------------
1 | # NetOffice Access Samples
2 |
3 |
4 | ## 01 Automation Sample
5 |
6 | Windows Forms application with sample code for automating Microsoft Access.
7 |
8 | It shows how to generate a document, modify it and cleanup resources.
9 |
10 |
11 | ## 02 NetOffice Access Add-in Sample
12 |
13 | Microsoft Access add-in project sample that uses NetOffice libraries and
14 | the NetOffice `COMAddin` base class.
15 |
16 | NetOffice libraries are designed to be similar to developement with Visual Studio
17 | Tools for Office (VSTO). NetOffice `COMAddin` reduces infrastructure code and
18 | handles common tasks for you. It is built on top of native `IDTExtensibility2`
19 | interface.
20 |
21 |
22 | ## 03 IDTExtensibility2 Access Add-in Sample
23 |
24 | Microsoft Access add-in project sample built with native `IDTExtensibility2` COM+
25 | interface.
26 |
27 | This is advanced sample for people familiar with extending Microsoft Office
28 | or Microsoft Visual Studio applications.
29 |
30 |
--------------------------------------------------------------------------------
/AddinProject.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/AddinProject.exe
--------------------------------------------------------------------------------
/AddinProjectHelper/AddinProjectHelper.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 11.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddinProjectHelper", "AddinProjectHelper\AddinProjectHelper.csproj", "{9BF0A9F0-F7BC-4A98-BEA4-44F29A92C9A2}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x86 = Debug|x86
12 | Release|Any CPU = Release|Any CPU
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {9BF0A9F0-F7BC-4A98-BEA4-44F29A92C9A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {9BF0A9F0-F7BC-4A98-BEA4-44F29A92C9A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {9BF0A9F0-F7BC-4A98-BEA4-44F29A92C9A2}.Debug|x86.ActiveCfg = Debug|Any CPU
19 | {9BF0A9F0-F7BC-4A98-BEA4-44F29A92C9A2}.Debug|x86.Build.0 = Debug|Any CPU
20 | {9BF0A9F0-F7BC-4A98-BEA4-44F29A92C9A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {9BF0A9F0-F7BC-4A98-BEA4-44F29A92C9A2}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {9BF0A9F0-F7BC-4A98-BEA4-44F29A92C9A2}.Release|x86.ActiveCfg = Release|Any CPU
23 | {9BF0A9F0-F7BC-4A98-BEA4-44F29A92C9A2}.Release|x86.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/AddinProjectHelper/AddinProjectHelper/NetOffice.Icon.32x32.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/AddinProjectHelper/AddinProjectHelper/NetOffice.Icon.32x32.ico
--------------------------------------------------------------------------------
/AddinProjectHelper/AddinProjectHelper/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace AddinProjectHelper.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/AddinProjectHelper/AddinProjectHelper/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/AddinProjectHelper/AddinProjectHelper/Template.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Program
5 | $Path
6 |
7 |
--------------------------------------------------------------------------------
/AddinProjectHelper/StartDebug.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/AddinProjectHelper/StartDebug.png
--------------------------------------------------------------------------------
/AddinRemoval.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/AddinRemoval.exe
--------------------------------------------------------------------------------
/AddinRemovalTool/AddinRemovalTool.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddinRemovalTool", "AddinRemovalTool\AddinRemovalTool.csproj", "{9BF0A9F0-F7BC-4A98-BEA4-44F29A92C9A2}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddinRemovalToolUpdater", "AddinRemovalToolUpdater\AddinRemovalToolUpdater.csproj", "{4A5DC26B-0B2F-45DE-B450-A957AB19F88B}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Release|Any CPU = Release|Any CPU
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {9BF0A9F0-F7BC-4A98-BEA4-44F29A92C9A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {9BF0A9F0-F7BC-4A98-BEA4-44F29A92C9A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {9BF0A9F0-F7BC-4A98-BEA4-44F29A92C9A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
19 | {9BF0A9F0-F7BC-4A98-BEA4-44F29A92C9A2}.Release|Any CPU.Build.0 = Release|Any CPU
20 | {4A5DC26B-0B2F-45DE-B450-A957AB19F88B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {4A5DC26B-0B2F-45DE-B450-A957AB19F88B}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {4A5DC26B-0B2F-45DE-B450-A957AB19F88B}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {4A5DC26B-0B2F-45DE-B450-A957AB19F88B}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/AddinRemovalTool/AddinRemovalTool/NetOffice.Icon.32x32.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/AddinRemovalTool/AddinRemovalTool/NetOffice.Icon.32x32.ico
--------------------------------------------------------------------------------
/AddinRemovalTool/AddinRemovalTool/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace AddinRemovalTool
5 | {
6 | static class Program
7 | {
8 | [STAThread]
9 | static void Main()
10 | {
11 | Application.EnableVisualStyles();
12 | Application.SetCompatibleTextRenderingDefault(false);
13 | Application.Run(new Form1());
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/AddinRemovalTool/AddinRemovalTool/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyCompany("NetOffice")]
8 | [assembly: AssemblyProduct("NetOffice Developer Toolbox")]
9 | [assembly: AssemblyCopyright("Copyright © 2012-2017 Sebastian Lange, © 2015-2017 Jozef Izso")]
10 | [assembly: AssemblyTrademark("")]
11 |
12 | [assembly: AssemblyCulture("")]
13 |
14 | #if DEBUG
15 | [assembly: AssemblyConfiguration("Debug")]
16 | #elif RELEASE
17 | [assembly: AssemblyConfiguration("Release")]
18 | #endif
19 |
20 | [assembly: ComVisible(false)]
21 | [assembly: Guid("1dd99d0f-419b-419d-8b93-d27ee02521b6")]
22 |
23 |
24 | [assembly: AssemblyVersion("1.7.4.0")]
25 | [assembly: AssemblyFileVersion("1.7.4.0")]
26 |
27 | // This is used for the NuSpec version tag replacement
28 | // and is combined with nuget-specific rev and release
29 | [assembly: AssemblyInformationalVersion("1.7.4-dev")]
30 |
--------------------------------------------------------------------------------
/AddinRemovalTool/AddinRemovalTool/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace AddinRemovalTool.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/AddinRemovalTool/AddinRemovalTool/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/AddinRemovalTool/AddinRemovalTool/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/AddinRemovalTool/AddinRemovalTool/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | true
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/AddinRemovalTool/AddinRemovalToolUpdater/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Windows.Forms;
5 |
6 | namespace AddinRemovalToolUpdater
7 | {
8 | static class Program
9 | {
10 | ///
11 | /// Der Haupteinstiegspunkt für die Anwendung.
12 | ///
13 | [STAThread]
14 | static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new Form1());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/AddinRemovalTool/AddinRemovalToolUpdater/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyCompany("NetOffice")]
8 | [assembly: AssemblyProduct("NetOffice Developer Toolbox")]
9 | [assembly: AssemblyCopyright("Copyright © 2012-2017 Sebastian Lange, © 2015-2017 Jozef Izso")]
10 | [assembly: AssemblyTrademark("")]
11 |
12 | [assembly: AssemblyCulture("")]
13 |
14 | #if DEBUG
15 | [assembly: AssemblyConfiguration("Debug")]
16 | #elif RELEASE
17 | [assembly: AssemblyConfiguration("Release")]
18 | #endif
19 |
20 | [assembly: ComVisible(false)]
21 | [assembly: Guid("d094cd53-b851-4ecf-8a50-fc493e3d2268")]
22 |
23 |
24 | [assembly: AssemblyVersion("1.7.4.0")]
25 | [assembly: AssemblyFileVersion("1.7.4.0")]
26 |
27 | // This is used for the NuSpec version tag replacement
28 | // and is combined with nuget-specific rev and release
29 | [assembly: AssemblyInformationalVersion("1.7.4-dev")]
30 |
--------------------------------------------------------------------------------
/AddinRemovalTool/AddinRemovalToolUpdater/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace AddinRemovalToolUpdater.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/AddinRemovalTool/AddinRemovalToolUpdater/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/AddinRemovalTool/AddinRemovalToolUpdater/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/AddinRemovalTool/WhatsThis.txt:
--------------------------------------------------------------------------------
1 | If you try to compile and checkout one or more NetOffice addin examples, you face the problem the addins want never go away.
2 | You have to remove the example addins at hand to cleanup your system. sry, we still figure out to handle this better.
3 |
4 | The AddinRemovalTool allows you to remove all registry entries from the NetOffice addin examples with one click to cleanup your system very easy.
5 |
--------------------------------------------------------------------------------
/ExampleBase.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/ExampleBase.dll
--------------------------------------------------------------------------------
/ExampleBase/ExampleBase.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExampleBase", "ExampleBase\ExampleBase.csproj", "{0D84E472-2F2B-490E-927A-0BDD751D6362}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x86 = Debug|x86
12 | Release|Any CPU = Release|Any CPU
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {0D84E472-2F2B-490E-927A-0BDD751D6362}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {0D84E472-2F2B-490E-927A-0BDD751D6362}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {0D84E472-2F2B-490E-927A-0BDD751D6362}.Debug|x86.ActiveCfg = Debug|Any CPU
19 | {0D84E472-2F2B-490E-927A-0BDD751D6362}.Debug|x86.Build.0 = Debug|Any CPU
20 | {0D84E472-2F2B-490E-927A-0BDD751D6362}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {0D84E472-2F2B-490E-927A-0BDD751D6362}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {0D84E472-2F2B-490E-927A-0BDD751D6362}.Release|x86.ActiveCfg = Release|Any CPU
23 | {0D84E472-2F2B-490E-927A-0BDD751D6362}.Release|x86.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/ExampleBase/ExampleBase/AreaForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Windows.Forms;
9 |
10 | namespace ExampleBase
11 | {
12 | public partial class AreaForm : Form
13 | {
14 | public AreaForm()
15 | {
16 | InitializeComponent();
17 | }
18 |
19 | public AreaForm(Control control)
20 | {
21 | InitializeComponent();
22 | Controls.Add(control);
23 | control.Dock = DockStyle.Fill;
24 | }
25 |
26 | public static void ShowForm(IWin32Window owner, IExample example)
27 | {
28 | AreaForm form = new AreaForm(example.Panel);
29 | form.Text = example.Caption;
30 | form.ShowDialog(owner);
31 | form.Controls.Clear();
32 | form.Dispose();
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/ExampleBase/ExampleBase/ExampleViewItem.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 |
4 | namespace ExampleBase
5 | {
6 | internal class ExampleViewItem
7 | {
8 | internal ExampleViewItem(IExample example, Image icon)
9 | {
10 | Caption = example.Caption;
11 | Description = example.Description;
12 | Icon = icon;
13 | Item = example;
14 | }
15 |
16 | public Image Icon { get; private set; }
17 |
18 | public string Caption { get; private set; }
19 |
20 | public string Description { get; private set; }
21 |
22 | internal IExample Item { get; private set; }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/ExampleBase/ExampleBase/IExample.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace ExampleBase
5 | {
6 | ///
7 | /// Represents a single example
8 | ///
9 | public interface IExample
10 | {
11 | ///
12 | /// Friendly name of the example
13 | ///
14 | string Caption { get; }
15 |
16 | ///
17 | /// Description of the example
18 | ///
19 | string Description { get; }
20 |
21 | ///
22 | /// Visual panel from the example, can be null(Nothing in Visual Basic)
23 | ///
24 | UserControl Panel { get; }
25 |
26 | ///
27 | /// Called from IHost while connecting to host application
28 | ///
29 | /// the host application for the example
30 | void Connect(IHost hostApplication);
31 |
32 | ///
33 | /// Run the example
34 | ///
35 | void RunExample();
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Excel/01 Excel Automation Sample.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExcelExamples CSharp", "01 Excel Automation Sample\ExcelExamples\ExcelExamples CSharp.csproj", "{30C85D67-193F-4E46-BE81-FD6EBE90CBC3}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x86 = Debug|x86
12 | Release|Any CPU = Release|Any CPU
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|x86.ActiveCfg = Debug|x86
19 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|x86.Build.0 = Debug|x86
20 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|x86.ActiveCfg = Release|x86
23 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|x86.Build.0 = Release|x86
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/Excel/01 Excel Automation Sample/ExcelExamples/FormMain.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace ExcelExamplesCS4
2 | {
3 | partial class FormMain
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.components = new System.ComponentModel.Container();
32 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
33 | this.Text = "FormMain";
34 | }
35 |
36 | #endregion
37 | }
38 | }
--------------------------------------------------------------------------------
/Excel/01 Excel Automation Sample/ExcelExamples/FormMain.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using ExampleBase;
3 |
4 | namespace ExcelExamplesCS4
5 | {
6 | public partial class FormMain : ExampleForm
7 | {
8 | public FormMain()
9 | {
10 | InitializeComponent();
11 | this.Text = "NetOffice Excel Examples in C#";
12 | LoadExamples();
13 | }
14 |
15 | private void LoadExamples()
16 | {
17 | LoadExample(new Example01());
18 | LoadExample(new Example02());
19 | LoadExample(new Example03());
20 | LoadExample(new Example04());
21 | LoadExample(new Example05());
22 | LoadExample(new Example06());
23 | LoadExample(new Example07());
24 | LoadExample(new Example08());
25 | LoadExample(new Example09());
26 | LoadExample(new Example10());
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/Excel/01 Excel Automation Sample/ExcelExamples/Overview.txt:
--------------------------------------------------------------------------------
1 | Example01 - Background Colors and Borders
2 | Example02 - Font Attributes and Alignment
3 | Example03 - Numberformats
4 | Example04 - Shapes, WordArts, Pictures, 3D-Effects
5 | Example05 - Charts
6 | Example06 - Dialogs
7 | Example07 - VBA Code
8 | Example08 - Events
9 | Example09 - Customize UI
10 | Example10 - Create PDF Document
--------------------------------------------------------------------------------
/Excel/01 Excel Automation Sample/ExcelExamples/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace ExcelExamplesCS4
5 | {
6 | static class Program
7 | {
8 | ///
9 | /// Der Haupteinstiegspunkt für die Anwendung.
10 | ///
11 | [STAThread]
12 | static void Main()
13 | {
14 | Application.EnableVisualStyles();
15 | Application.SetCompatibleTextRenderingDefault(false);
16 | Application.Run(new FormMain());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Excel/01 Excel Automation Sample/ExcelExamples/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Dieser Code wurde von einem Tool generiert.
4 | // Laufzeitversion:4.0.30319.1
5 | //
6 | // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
7 | // der Code erneut generiert wird.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace ExcelExamplesCS4.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Excel/01 Excel Automation Sample/ExcelExamples/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Excel/01 Excel Automation Sample/ExcelExamples/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/01 Simple/Addin.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Runtime.InteropServices;
4 | using NetOffice;
5 | using NetOffice.Tools;
6 | using NetOffice.OfficeApi.Enums;
7 | using NetOffice.ExcelApi.Tools;
8 | using Excel = NetOffice.ExcelApi;
9 | using Office = NetOffice.OfficeApi;
10 |
11 | namespace Excel01AddinCS4
12 | {
13 | /*
14 | Minimum Addin Example
15 |
16 | Remove the DontRegisterAddin attribute to load the addin directly.
17 | */
18 |
19 | [COMAddin("Excel01AddinCS4", "Miminum Addin Example", 3)]
20 | [ProgId("Excel05AddinCS4.Connect"), Guid("BB5D9F5A-267A-462E-9980-C65204969BE3")]
21 | public class Addin : COMAddin
22 | {
23 | public Addin()
24 | {
25 | OnStartupComplete += Addin_OnStartupComplete;
26 | OnDisconnection += Addin_OnDisconnection;
27 | }
28 |
29 | private void Addin_OnStartupComplete(ref Array custom)
30 | {
31 |
32 | }
33 |
34 | private void Addin_OnDisconnection(ext_DisconnectMode removeMode, ref Array custom)
35 | {
36 |
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/01 Simple/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Excel01AddinCS4")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("http://netoffice.codeplex.com")]
13 | [assembly: AssemblyCopyright("Copyright © 2016 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("b3381587-3ea0-48d3-8bb9-5edf2822678b")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/01 Simple/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/02 Ribbons And Panes/Description.txt:
--------------------------------------------------------------------------------
1 |
2 | You see the CustomUI attribute. You can specify a path to an embedded xml ressource file with your ribbon schema.
3 | You can also override the GetCustomUI method from the base class to handle the things at runtime.
4 |
5 | The CustomPane attribute allows you to set a task pane very easy.
6 | You can also override the CTPFactoryAvailable method from the base class to handle the things at runtime.
7 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/02 Ribbons And Panes/Images/about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Excel/02 NetOffice Excel COMAddin Sample/02 Ribbons And Panes/Images/about.png
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_run.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Excel/02 NetOffice Excel COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_run.png
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Excel/02 NetOffice Excel COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_stop.png
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/02 Ribbons And Panes/Images/delete2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Excel/02 NetOffice Excel COMAddin Sample/02 Ribbons And Panes/Images/delete2.png
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/02 Ribbons And Panes/RibbonUI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/02 Ribbons And Panes/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/03 Troubleshooting and Diagnostics/Addin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Excel/02 NetOffice Excel COMAddin Sample/03 Troubleshooting and Diagnostics/Addin.ico
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/03 Troubleshooting and Diagnostics/Description.txt:
--------------------------------------------------------------------------------
1 | The Timestamp attribute creates a DateTime.Now value in excel addin registry key.
2 |
3 | You can also create a tray menu with your own elements like button, label, etc
4 | and some predefined NetOffice elements. In this case we use the tray diagnostics item.
5 |
6 | The performance trace want give you informations about how long a call to the Office application
7 | need to pass. Use IntervalMS = 0 to bypass the minimum notification alert. Use "*" as wildcard - we
8 | want only see performance traces from Excel in this example.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/03 Troubleshooting and Diagnostics/TrayMenuHeader.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Excel/02 NetOffice Excel COMAddin Sample/03 Troubleshooting and Diagnostics/TrayMenuHeader.png
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/03 Troubleshooting and Diagnostics/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/04 Register and Unregister/Description.txt:
--------------------------------------------------------------------------------
1 | Some annotations to do custom actions in register/unregister.
2 | There is also an error handler - rethrow the exception here to signalize the runtime something failed.
3 | Please keep in your mind: these methods must be static. Dont care for the name or the qualifier.
4 |
5 | The RegistryLocation attribute determine the addin want be loaded as system addin or the just the current user
6 | Whithout this attribute means whole system.
7 |
8 |
9 | Some explanation about the arguments in Register/Unregister
10 |
11 | Type type - The addin instance type
12 |
13 | RegisterCall registerCall - Indicates which mode the method is calling (before/after or replace)
14 |
15 | InstallScope scope - Indicates the addin is un-/register per whole system or current user
16 |
17 | Office(Un)RegisterKeyState keyState - Indicates NetOffice has been deleted the registry keys or want be do that after this action
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/04 Register and Unregister/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/05 Rtd Server/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Excel05AddinCS4")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
13 | [assembly: AssemblyCopyright("Copyright © 2014 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("5c6d464e-9bef-437a-87ca-9f554acb5589")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/05 Rtd Server/Server.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 | using NetOffice.Tools;
4 | using Excel = NetOffice.ExcelApi;
5 | using NetOffice.ExcelApi.Tools;
6 | using NetOffice.ExcelApi.Tools.Attributes;
7 | /*
8 | Sample RTD Component
9 | */
10 | namespace Excel05AddinCS4
11 | {
12 | [COMRtdServer("A sample rtd server", 1)]
13 | [ProgId("MyRtdServerCS4.Server"), Guid("B114AC9F-9CC9-4B5A-89BA-A1BC29D5E963"), Codebase, Programmable]
14 | public class Server : RealtimeDataServer
15 | {
16 | private int TopicID { get; set; }
17 |
18 | protected override object ConnectData(int topicID, object strings, bool getNewValues)
19 | {
20 | TopicID = topicID;
21 | return GetTime();
22 | }
23 |
24 | protected override object RefreshData(int topicCount)
25 | {
26 | object[,] data = new object[2, 1];
27 | data[0, 0] = TopicID;
28 | data[1, 0] = GetTime();
29 | topicCount = 1;
30 | return data;
31 | }
32 |
33 | protected override void ServerTerminate()
34 | {
35 |
36 | }
37 |
38 | private string GetTime()
39 | {
40 | return "GetTime " + DateTime.Now.ToString();
41 | }
42 | }
43 | }
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/06 Shim/Excel06AddinCS4.Shim.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Excel/02 NetOffice Excel COMAddin Sample/06 Shim/Excel06AddinCS4.Shim.dll
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/06 Shim/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Excel06AddinCS4")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Excel06AddinCS4")]
13 | [assembly: AssemblyCopyright("Copyright © 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("7a34b86f-2ad0-467e-9fdd-4374620ee5d4")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/06 Shim/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/06 Tools and Helpers/Addin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Excel/02 NetOffice Excel COMAddin Sample/06 Tools and Helpers/Addin.ico
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/06 Tools and Helpers/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Excel06AddinCS4")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("http://netoffice.codeplex.com")]
13 | [assembly: AssemblyCopyright("Copyright © 2013 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("0ce7d3de-d892-40e1-84fe-5cd569513588")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/06 Tools and Helpers/SampleForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Windows.Forms;
9 |
10 | namespace Excel06AddinCS4
11 | {
12 | public partial class SampleForm : Form
13 | {
14 | public SampleForm()
15 | {
16 | InitializeComponent();
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/06 Tools and Helpers/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/06 Tools and Helpers/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/07 Tweaks/Description.txt:
--------------------------------------------------------------------------------
1 | This example shows the Tweak attribute in NetOffice.
2 | You can set the Tweak attribute to set/manipulate NetOffice options or your own options at runtime.
3 | This can be very helpful for developers, may troubleshooting or diagnostics, whatever.
4 | All Tweak settings has to be stored as string value in the current office addin registry key. For example:(HKEY_CurrentUser\Sofware\Microsoft\Office\%Application%\Addins\YourAddin)
5 | In this project you learn how you get control about tweaks and implement your own tweaks in an easy way.
6 |
7 | And dont forget to try Tweaks coffee in southpark colorado.
8 |
--------------------------------------------------------------------------------
/Excel/02 NetOffice Excel COMAddin Sample/07 Tweaks/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Excel/03 IDTExtensibility2 Excel Sample/ClassicUI/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("COMAddinClassicExample")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("")]
11 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
12 | [assembly: AssemblyCopyright("Copyright © 2012 Sebastian Lange")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(true)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("4ee6ab12-eab2-4e0e-b2ce-b942278683e9")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersionAttribute("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/Excel/03 IDTExtensibility2 Excel Sample/ClassicUI/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Excel/03 IDTExtensibility2 Excel Sample/RibbonUI/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("COMAddinRibbonExample")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("")]
11 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
12 | [assembly: AssemblyCopyright("Copyright © 2012 Sebastian Lange")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(true)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("87be4f72-0b09-4511-ac68-fe8df525368b")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersionAttribute("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/Excel/03 IDTExtensibility2 Excel Sample/RibbonUI/RibbonUI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Excel/03 IDTExtensibility2 Excel Sample/RibbonUI/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Excel/03 IDTExtensibility2 Excel Sample/TaskPane/NetOffice.Icon.16x16.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Excel/03 IDTExtensibility2 Excel Sample/TaskPane/NetOffice.Icon.16x16.ico
--------------------------------------------------------------------------------
/Excel/03 IDTExtensibility2 Excel Sample/TaskPane/SampleData/Customer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace COMAddinTaskPaneExampleCS4
4 | {
5 | class Customer
6 | {
7 | int _id;
8 | string _name;
9 | string _company;
10 | string _city;
11 | string _postalCode;
12 | string _country;
13 | string _phone;
14 |
15 | internal Customer(int id, string name, string company, string city, string postalCode, string country, string phone)
16 | {
17 | _id = id;
18 | _name = name;
19 | _company = company;
20 | _city = city;
21 | _postalCode = postalCode;
22 | _country = country;
23 | _phone = phone;
24 | }
25 |
26 | public int ID { get { return _id; } }
27 | public string Name { get { return _name; } }
28 | public string Company { get { return _company; } }
29 | public string City { get { return _city; } }
30 | public string PostalCode { get { return _postalCode; } }
31 | public string Country { get { return _country; } }
32 | public string Phone { get { return _phone; } }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Excel/03 IDTExtensibility2 Excel Sample/TaskPane/details.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Excel/03 IDTExtensibility2 Excel Sample/TaskPane/details.png
--------------------------------------------------------------------------------
/Excel/03 IDTExtensibility2 Excel Sample/TaskPane/help.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Excel/03 IDTExtensibility2 Excel Sample/TaskPane/help.png
--------------------------------------------------------------------------------
/Excel/03 IDTExtensibility2 Excel Sample/TaskPane/list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Excel/03 IDTExtensibility2 Excel Sample/TaskPane/list.png
--------------------------------------------------------------------------------
/Excel/03 IDTExtensibility2 Excel Sample/TaskPane/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Excel/03 IDTExtensibility2 Excel Sample/TaskPane/search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Excel/03 IDTExtensibility2 Excel Sample/TaskPane/search.png
--------------------------------------------------------------------------------
/Excel/03 IDTExtensibility2 Excel Sample/TaskPane/user.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Excel/03 IDTExtensibility2 Excel Sample/TaskPane/user.png
--------------------------------------------------------------------------------
/Excel/04 DynamicExample.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.23107.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynamicExample", "04 DynamicExample\DynamicExample\DynamicExample.csproj", "{67A0F9ED-D736-48C0-8734-9639C29E0007}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {67A0F9ED-D736-48C0-8734-9639C29E0007}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {67A0F9ED-D736-48C0-8734-9639C29E0007}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {67A0F9ED-D736-48C0-8734-9639C29E0007}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {67A0F9ED-D736-48C0-8734-9639C29E0007}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Excel/04 DynamicExample/DynamicExample/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Windows.Forms;
5 |
6 | namespace WindowsFormsApplication1
7 | {
8 | static class Program
9 | {
10 | ///
11 | /// The main entry point for the application.
12 | ///
13 | [STAThread]
14 | static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new Form1());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Excel/04 DynamicExample/DynamicExample/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("DynamicExample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("http://netoffice.codeplex.com")]
13 | [assembly: AssemblyCopyright("Copyright © 2016 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("67a0f9ed-d736-48c0-8734-9639c29e0007")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Excel/04 DynamicExample/DynamicExample/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DynamicExample.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Excel/04 DynamicExample/DynamicExample/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Excel/04 DynamicExample/DynamicExample/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Excel/readme.md:
--------------------------------------------------------------------------------
1 | # NetOffice Excel Samples
2 |
3 |
4 | ## 01 Automation Sample
5 |
6 | Windows Forms application with sample code for automating Microsoft Excel.
7 |
8 | It shows how to generate a document, modify it and cleanup resources.
9 |
10 |
11 | ## 02 NetOffice Excel Add-in Sample
12 |
13 | Microsoft Excel add-in project sample that uses NetOffice libraries and
14 | the NetOffice `COMAddin` base class.
15 |
16 | NetOffice libraries are designed to be similar to developement with Visual Studio
17 | Tools for Office (VSTO). NetOffice `COMAddin` reduces infrastructure code and
18 | handles common tasks for you. It is built on top of native `IDTExtensibility2`
19 | interface.
20 |
21 |
22 | ## 03 IDTExtensibility2 Excel Add-in Sample
23 |
24 | Microsoft Excel add-in project sample built with native `IDTExtensibility2` COM+
25 | interface.
26 |
27 | This is advanced sample for people familiar with extending Microsoft Office
28 | or Microsoft Visual Studio applications.
29 |
30 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright © 2011-2017 Sebastian Lange
4 | Copyright © 2015-2017 Jozef Izso
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.
23 |
--------------------------------------------------------------------------------
/Misc/01 Super Addin Sample.sln.DotSettings:
--------------------------------------------------------------------------------
1 |
2 | <Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" />
--------------------------------------------------------------------------------
/Misc/01 Super Addin Sample/COMAddin SuperAddin/RibbonUI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Misc/01 Super Addin Sample/COMAddin SuperAddin/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Misc/01 Super Addin Sample/IDTExtensibility2 SuperAddin/Properties/AddinIcon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/01 Super Addin Sample/IDTExtensibility2 SuperAddin/Properties/AddinIcon.ico
--------------------------------------------------------------------------------
/Misc/01 Super Addin Sample/IDTExtensibility2 SuperAddin/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("SuperAddin")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("http://netoffice.codeplex.com")]
12 | [assembly: AssemblyProduct("NetOffice")]
13 | [assembly: AssemblyCopyright("Copyright © 2012 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("7a46fa57-5dc6-4dbe-8afe-783399262363")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Misc/01 Super Addin Sample/IDTExtensibility2 SuperAddin/RibbonUI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Misc/01 Super Addin Sample/IDTExtensibility2 SuperAddin/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ExcelAddin/Images/NetOffice.Icon.32x32.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Excel Addin - Google Translation/ExcelAddin/Images/NetOffice.Icon.32x32.ico
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ExcelAddin/Images/accept.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Excel Addin - Google Translation/ExcelAddin/Images/accept.png
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ExcelAddin/Images/arrow_refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Excel Addin - Google Translation/ExcelAddin/Images/arrow_refresh.png
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ExcelAddin/Images/exclamation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Excel Addin - Google Translation/ExcelAddin/Images/exclamation.png
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ExcelAddin/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Sample.ExcelAddin")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("NetOffice")]
13 | [assembly: AssemblyCopyright("Copyright © 2012 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("2fa61fcc-25ce-429e-8040-978c973df969")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersionAttribute("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ExcelAddin/ThisAddin.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 | using NetOffice.OfficeApi.Enums;
4 | using Excel = NetOffice.ExcelApi;
5 | using NetOffice.Tools;
6 | using NetOffice.ExcelApi.Tools;
7 |
8 | namespace Sample.ExcelAddin
9 | {
10 | ///
11 | /// The main addin for MS-Excel
12 | ///
13 | [COMAddin("Google Translation Addin", "This Addin provides Google Translation functionality", 3), Guid("fa65093e-8fd1-4e24-825a-11c00f1bcadf"), ProgId("NOSample.GoogleTranslation"), Tweak(true)]
14 | [CustomPane(typeof(TranslationPane), "NetOffice - Google Translation Sample", true, PaneDockPosition.msoCTPDockPositionBottom, PaneDockPositionRestrict.msoCTPDockPositionRestrictNoVertical, 150, 150)]
15 | public class ThisAddIn : COMAddin
16 | {
17 | public ThisAddIn()
18 | {
19 | this.OnStartupComplete += new OnStartupCompleteEventHandler(ThisAddIn_OnStartupComplete);
20 | this.OnDisconnection += new OnDisconnectionEventHandler(ThisAddIn_OnDisconnection);
21 | }
22 |
23 | private void ThisAddIn_OnStartupComplete(ref Array custom)
24 | {
25 | }
26 |
27 | private void ThisAddIn_OnDisconnection(ext_DisconnectMode RemoveMode, ref Array custom)
28 | {
29 |
30 | }
31 |
32 | protected override void OnError(ErrorMethodKind methodKind, Exception exception)
33 | {
34 | Utils.Dialog.ShowError(exception, "Unexpected state in Translation-Addin");
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ExcelAddin/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/Instructions.txt:
--------------------------------------------------------------------------------
1 | 1. Set Sample.ServerHost to 'Start Project' and compile the solution.
2 | 2. Start Sample.ServerHost
3 | 3. Run MS-Excel
4 |
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/Local Shared Concept.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Excel Addin - Google Translation/Local Shared Concept.png
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/Screenshot.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Excel Addin - Google Translation/Screenshot.PNG
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/Server/EventRepeator.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Sample.Server
7 | {
8 | public class DataEventRepeator : MarshalByRefObject
9 | {
10 | public event TranslationEventHandler Translation;
11 |
12 | public void OnTranslation(TranslateOperationResult result)
13 | {
14 | if (Translation != null)
15 | Translation(result);
16 | }
17 | }
18 |
19 | public class DataEventRepeators : List
20 | {
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/Server/Languages.txt:
--------------------------------------------------------------------------------
1 | Afrikaans af
2 | Albanian sq
3 | Arabic ar
4 | Armenian hy
5 | Azerbaijani az
6 | Basque eu
7 | Belarusian be
8 | Bengali bn
9 | Bulgarian bg
10 | Catalan ca
11 | Chinese zh-CN
12 | Croatian hr
13 | Czech cs
14 | Danish da
15 | Dutch nl
16 | English en
17 | Esperanto eo
18 | Estonian et
19 | Filipino tl
20 | Finnish fi
21 | French fr
22 | Galician gl
23 | German de
24 | Georgian ka
25 | Greek el
26 | Haitian Creole ht
27 | Hebrew iw
28 | Hindi hi
29 | Hungarian hu
30 | Icelandic is
31 | Indonesian id
32 | Irish ga
33 | Italian it
34 | Japanese ja
35 | Korean ko
36 | Lao lo
37 | Latin la
38 | Latvian lv
39 | Lithuanian lt
40 | Macedonian mk
41 | Malay ms
42 | Maltese mt
43 | Norwegian no
44 | Persian fa
45 | Polish pl
46 | Portuguese pt
47 | Romanian ro
48 | Russian ru
49 | Serbian sr
50 | Slovak sk
51 | Slovenian sl
52 | Spanish es
53 | Swahili sw
54 | Swedish sv
55 | Tamil ta
56 | Telugu te
57 | Thai th
58 | Turkish tr
59 | Ukrainian uk
60 | Urdu ur
61 | Vietnamese vi
62 | Welsh cy
63 | Yiddish yi
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/Server/Lib/StringParser.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Excel Addin - Google Translation/Server/Lib/StringParser.dll
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/Server/Lib/WebResourceProvider.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Excel Addin - Google Translation/Server/Lib/WebResourceProvider.dll
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/Server/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Dieser Code wurde von einem Tool generiert.
4 | // Laufzeitversion:4.0.30319.1
5 | //
6 | // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
7 | // der Code erneut generiert wird.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace Sample.Server.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/Server/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ServerHost/Images/error.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Excel Addin - Google Translation/ServerHost/Images/error.png
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ServerHost/Images/ok.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Excel Addin - Google Translation/ServerHost/Images/ok.png
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ServerHost/Images/start.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Excel Addin - Google Translation/ServerHost/Images/start.png
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ServerHost/Images/warning.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Excel Addin - Google Translation/ServerHost/Images/warning.png
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ServerHost/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Windows.Forms;
5 |
6 | namespace Sample.ServerHost
7 | {
8 | static class Program
9 | {
10 | ///
11 | /// Der Haupteinstiegspunkt für die Anwendung.
12 | ///
13 | [STAThread]
14 | static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new FormMain());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ServerHost/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Dieser Code wurde von einem Tool generiert.
4 | // Laufzeitversion:4.0.30319.1
5 | //
6 | // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
7 | // der Code erneut generiert wird.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace NetOffice.LocalSampleServer.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ServerHost/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Misc/Excel Addin - Google Translation/ServerHost/color_wheel.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Excel Addin - Google Translation/ServerHost/color_wheel.ico
--------------------------------------------------------------------------------
/Misc/Other Examples/MiscExamples.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MiscExamples CSharp", "MiscExamples\MiscExamples CSharp.csproj", "{30C85D67-193F-4E46-BE81-FD6EBE90CBC3}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x86 = Debug|x86
12 | Release|Any CPU = Release|Any CPU
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|x86.ActiveCfg = Debug|x86
19 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|x86.Build.0 = Debug|x86
20 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|x86.ActiveCfg = Release|x86
23 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|x86.Build.0 = Release|x86
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/Misc/Other Examples/MiscExamples/FormMain.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace MiscExamplesCS4
2 | {
3 | partial class FormMain
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.components = new System.ComponentModel.Container();
32 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
33 | this.Text = "FormMain";
34 | }
35 |
36 | #endregion
37 | }
38 | }
--------------------------------------------------------------------------------
/Misc/Other Examples/MiscExamples/FormMain.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 |
9 | using ExampleBase;
10 |
11 | namespace MiscExamplesCS4
12 | {
13 | public partial class FormMain : FormBase
14 | {
15 | public FormMain()
16 | {
17 | InitializeComponent();
18 |
19 | this.Text = "NetOffice Misc Examples in C#";
20 | LoadExamples();
21 | }
22 |
23 | private void LoadExamples()
24 | {
25 | LoadExample(new Example01());
26 | LoadExample(new Example02());
27 | LoadExample(new Example03());
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Misc/Other Examples/MiscExamples/Overview.txt:
--------------------------------------------------------------------------------
1 | Example01 - demonstrate how to use the NetOffice Debug Console
2 | Example02 - demonstrate how to check for a specific entity support at runtime
3 | Example03 - demonstrate how to access running outlook application
4 |
--------------------------------------------------------------------------------
/Misc/Other Examples/MiscExamples/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Windows.Forms;
4 |
5 | namespace MiscExamplesCS4
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// Der Haupteinstiegspunkt für die Anwendung.
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.EnableVisualStyles();
16 | Application.SetCompatibleTextRenderingDefault(false);
17 | Application.Run(new FormMain());
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Misc/Other Examples/MiscExamples/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Dieser Code wurde von einem Tool generiert.
4 | // Laufzeitversion:4.0.30319.1
5 | //
6 | // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
7 | // der Code erneut generiert wird.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace MiscExamplesCS4.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Misc/Other Examples/MiscExamples/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Misc/Other Examples/MiscExamples/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Lib/LinqToTwitterCP.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Lib/LinqToTwitterCP.dll
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.Addin", "Outlook Addin - Use Twitter\Sample.Addin.csproj", "{C6410C0A-D013-494C-B982-1AC292CD09DF}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {C6410C0A-D013-494C-B982-1AC292CD09DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {C6410C0A-D013-494C-B982-1AC292CD09DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {C6410C0A-D013-494C-B982-1AC292CD09DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {C6410C0A-D013-494C-B982-1AC292CD09DF}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/NetOffice.Icon.32x32.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/NetOffice.Icon.32x32.ico
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/Outlook.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/Outlook.ico
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/Settings.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/Settings.PNG
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/color_swatch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/color_swatch.png
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/control_play_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/control_play_blue.png
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/exclamation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/exclamation.png
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/information.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/information.png
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/lock_break.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/lock_break.png
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/lock_go.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/lock_go.png
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/plugin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/plugin.png
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/setting_tools.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/setting_tools.png
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/twitter_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/twitter_1.png
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/twitter_1_big.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/twitter_1_big.png
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/twitter_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/twitter_2.png
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/twitter_2_big.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Images/twitter_2_big.png
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | 90
19 |
20 |
21 | False
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/UserControls/ErrorPane.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Data;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Windows.Forms;
9 |
10 | namespace Sample.Addin
11 | {
12 | public partial class ErrorPane : UserControl
13 | {
14 | public ErrorPane()
15 | {
16 | InitializeComponent();
17 | }
18 |
19 | public void ShowError(Exception exception)
20 | {
21 | pictureBox2.Visible = true;
22 | labelErrorMessage.Text = exception.Message;
23 | labelErrorMessage.Visible = true;
24 | buttonErrorDetails.Visible = true;
25 | }
26 |
27 | public void ClearError()
28 | {
29 | pictureBox2.Visible = false;
30 | labelErrorMessage.Text = string.Empty;
31 | labelErrorMessage.Visible = false;
32 | buttonErrorDetails.Visible = false;
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Outlook Addin - Use Twitter/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | 90
24 |
25 |
26 | False
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/Misc/Outlook Addin - Use Twitter/Screenshot.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Outlook Addin - Use Twitter/Screenshot.PNG
--------------------------------------------------------------------------------
/Misc/Word Addin - Search Wikipedia/Lib/LinqToWikipedia.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Word Addin - Search Wikipedia/Lib/LinqToWikipedia.dll
--------------------------------------------------------------------------------
/Misc/Word Addin - Search Wikipedia/Screenshot.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Word Addin - Search Wikipedia/Screenshot.JPG
--------------------------------------------------------------------------------
/Misc/Word Addin - Search Wikipedia/Search Wikipedia.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.Addin", "Search Wikipedia\Sample.Addin.csproj", "{A8834589-0057-4279-8B36-46665C4F5B8C}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {A8834589-0057-4279-8B36-46665C4F5B8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {A8834589-0057-4279-8B36-46665C4F5B8C}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {A8834589-0057-4279-8B36-46665C4F5B8C}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {A8834589-0057-4279-8B36-46665C4F5B8C}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Misc/Word Addin - Search Wikipedia/Search Wikipedia/Images/information.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Word Addin - Search Wikipedia/Search Wikipedia/Images/information.png
--------------------------------------------------------------------------------
/Misc/Word Addin - Search Wikipedia/Search Wikipedia/Images/search_plus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Misc/Word Addin - Search Wikipedia/Search Wikipedia/Images/search_plus.png
--------------------------------------------------------------------------------
/Misc/Word Addin - Search Wikipedia/Search Wikipedia/ThisAddin.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 | using NetOffice.Tools;
4 | using NetOffice.OfficeApi.Enums;
5 | using NetOffice.WordApi.Tools;
6 |
7 | namespace Sample.Addin
8 | {
9 | [COMAddin("Word Wikipedia Addin", "This Addin provides Wikipedia functionality", LoadBehavior.LoadAtStartup)]
10 | [ProgId("NOSample.Wikipedia"), Guid("56F843AD-ECB8-45D6-9E33-C0928BD2FB03")]
11 | [CustomPane(typeof(WikipediaPane), "Wikipedia - NetOffice Sample", true, PaneDockPosition.msoCTPDockPositionRight, PaneDockPositionRestrict.msoCTPDockPositionRestrictNoHorizontal, 520, 520)]
12 | public class ThisAddin : COMAddin
13 | {
14 | public ThisAddin()
15 | {
16 | this.OnConnection += new OnConnectionEventHandler(ThisAddin_OnConnection);
17 | this.OnStartupComplete += new OnStartupCompleteEventHandler(ThisAddin_OnStartupComplete);
18 | }
19 |
20 | private void ThisAddin_OnConnection(object Application, ext_ConnectMode ConnectMode, object AddInInst, ref Array custom)
21 | {
22 |
23 | }
24 |
25 | private void ThisAddin_OnStartupComplete(ref Array custom)
26 | {
27 |
28 | }
29 |
30 | protected override void OnError(ErrorMethodKind methodKind, Exception exception)
31 | {
32 | Utils.Dialog.ShowError(exception, "Unexpected state in Wikipedia-Addin");
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Misc/readme.md:
--------------------------------------------------------------------------------
1 | # NetOffice Miscellaneous Samples
2 |
3 | Set of sample projects showcasing advanced NetOffice functionality.
4 |
5 | * Super Addin - register single addin in multiple Microsoft Office applications
6 | * Excel Addin - Google Translation
7 | * Outlook Addin - Use Twitter
8 | * Word Addin - Search Wikipedia
9 | * Other samples - shows how to use NetOffice Debug Console and dynamic type member checking
10 |
--------------------------------------------------------------------------------
/NetCoreAddins/Net5Addin/Net5Addin.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net5.0-windows
5 | true
6 | x86
7 | x86
8 |
9 |
10 |
11 | full
12 | true
13 |
14 |
15 |
16 |
17 | C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\extensibility.dll
18 |
19 |
20 |
21 |
22 |
23 | PreserveNewest
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/NetCoreAddins/Net5Addin/register-addin.cmd:
--------------------------------------------------------------------------------
1 | C:\Windows\SysWOW64\regsvr32.exe /s Net5Addin.comhost.dll
2 |
3 | reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\NetOfficeSamples.Net5Addin" /f /v FriendlyName /t REG_SZ /d ".NET 5 Addin"
4 | reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\NetOfficeSamples.Net5Addin" /f /v Description /t REG_SZ /d "Sample addin running in .NET 5."
5 | reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\NetOfficeSamples.Net5Addin" /f /v LoadBehavior /t REG_DWORD /d 3
6 |
--------------------------------------------------------------------------------
/NetCoreAddins/NetCore3Addin/NetCore3Addin.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp3.1
5 | true
6 | x86
7 | x86
8 |
9 |
10 |
11 | full
12 | true
13 |
14 |
15 |
16 |
17 | C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\extensibility.dll
18 |
19 |
20 |
21 |
22 |
23 | PreserveNewest
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/NetCoreAddins/NetCore3Addin/register-addin.cmd:
--------------------------------------------------------------------------------
1 | C:\Windows\SysWOW64\regsvr32.exe /s NetCore3Addin.comhost.dll
2 |
3 | reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\NetOfficeSamples.NetCore3Addin" /f /v FriendlyName /t REG_SZ /d ".NET Core 3.1 Addin"
4 | reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\NetOfficeSamples.NetCore3Addin" /f /v Description /t REG_SZ /d "Sample addin running in .NET Core 3.1."
5 | reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\NetOfficeSamples.NetCore3Addin" /f /v LoadBehavior /t REG_DWORD /d 3
6 |
--------------------------------------------------------------------------------
/NetCoreAddins/NetCoreAddins.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.30717.126
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetCore3Addin", "NetCore3Addin\NetCore3Addin.csproj", "{1B34DD2B-152E-4036-A7F5-8513237E7E23}"
7 | EndProject
8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Net5Addin", "Net5Addin\Net5Addin.csproj", "{C82199E3-5059-42C4-8A9B-A86658FBA636}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|x86 = Debug|x86
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {1B34DD2B-152E-4036-A7F5-8513237E7E23}.Debug|x86.ActiveCfg = Debug|x86
17 | {1B34DD2B-152E-4036-A7F5-8513237E7E23}.Debug|x86.Build.0 = Debug|x86
18 | {1B34DD2B-152E-4036-A7F5-8513237E7E23}.Release|x86.ActiveCfg = Release|x86
19 | {1B34DD2B-152E-4036-A7F5-8513237E7E23}.Release|x86.Build.0 = Release|x86
20 | {C82199E3-5059-42C4-8A9B-A86658FBA636}.Debug|x86.ActiveCfg = Debug|x86
21 | {C82199E3-5059-42C4-8A9B-A86658FBA636}.Debug|x86.Build.0 = Debug|x86
22 | {C82199E3-5059-42C4-8A9B-A86658FBA636}.Release|x86.ActiveCfg = Release|x86
23 | {C82199E3-5059-42C4-8A9B-A86658FBA636}.Release|x86.Build.0 = Release|x86
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | GlobalSection(ExtensibilityGlobals) = postSolution
29 | SolutionGuid = {474F18CD-62D8-4B6F-A978-A848C0A316EB}
30 | EndGlobalSection
31 | EndGlobal
32 |
--------------------------------------------------------------------------------
/NuGet.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Outlook/01 Outlook Automation Sample.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OutlookExamples CSharp", "01 Outlook Automation Sample\OutookExamples\OutlookExamples CSharp.csproj", "{30C85D67-193F-4E46-BE81-FD6EBE90CBC3}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x86 = Debug|x86
12 | Release|Any CPU = Release|Any CPU
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|x86.ActiveCfg = Debug|x86
19 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|x86.Build.0 = Debug|x86
20 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|x86.ActiveCfg = Release|x86
23 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|x86.Build.0 = Release|x86
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/Outlook/01 Outlook Automation Sample/OutookExamples/FormMain.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace OutlookExamplesCS4
2 | {
3 | partial class FormMain
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.components = new System.ComponentModel.Container();
32 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
33 | this.Text = "FormMain";
34 | }
35 |
36 | #endregion
37 | }
38 | }
--------------------------------------------------------------------------------
/Outlook/01 Outlook Automation Sample/OutookExamples/FormMain.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 | using ExampleBase;
4 |
5 | namespace OutlookExamplesCS4
6 | {
7 | public partial class FormMain : ExampleForm
8 | {
9 | public FormMain()
10 | {
11 | InitializeComponent();
12 | this.Text = "NetOffice Outlook Examples in C#";
13 | LoadExamples();
14 | }
15 |
16 | private void LoadExamples()
17 | {
18 | LoadExample(new Example01());
19 | LoadExample(new Example02());
20 | LoadExample(new Example03());
21 | LoadExample(new Example04());
22 | LoadExample(new Example05());
23 | LoadExample(new Example06());
24 | LoadExample(new Example07());
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Outlook/01 Outlook Automation Sample/OutookExamples/Overview.txt:
--------------------------------------------------------------------------------
1 | Example01 - inbox folder
2 | Example02 - create task item
3 | Example03 - send mail
4 | Example04 - send and recieve
5 | Example05 - enumerate contacts
6 | Example06 - events
7 | Example07 - customize classic ui
8 |
--------------------------------------------------------------------------------
/Outlook/01 Outlook Automation Sample/OutookExamples/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Windows.Forms;
4 |
5 | namespace OutlookExamplesCS4
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// Der Haupteinstiegspunkt für die Anwendung.
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.EnableVisualStyles();
16 | Application.SetCompatibleTextRenderingDefault(false);
17 | Application.Run(new FormMain());
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Outlook/01 Outlook Automation Sample/OutookExamples/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Dieser Code wurde von einem Tool generiert.
4 | // Laufzeitversion:4.0.30319.1
5 | //
6 | // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
7 | // der Code erneut generiert wird.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OutlookExamplesCS4.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Outlook/01 Outlook Automation Sample/OutookExamples/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Outlook/01 Outlook Automation Sample/OutookExamples/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/01 Simple/Addin.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 | using NetOffice;
4 | using NetOffice.Tools;
5 | using NetOffice.OutlookApi.Tools;
6 | /*
7 | Minimum Addin Example
8 | */
9 | namespace Outlook01AddinCS4
10 | {
11 | [COMAddin("Outlook01 Sample Addin CS4", "Miminum Addin Example", 3)]
12 | [ProgId("Outlook01AddinCS4.Connect"), Guid("DF8FE853-A469-456C-94A2-BEA9CB735DEF")]
13 | public class Addin : COMAddin
14 | {
15 | public Addin()
16 | {
17 | OnStartupComplete += Addin_OnStartupComplete;
18 | OnDisconnection += Addin_OnDisconnection;
19 | }
20 |
21 | private void Addin_OnStartupComplete(ref Array custom)
22 | {
23 | Console.WriteLine("Outlook Version is {0}", Application.Version);
24 | }
25 |
26 | private void Addin_OnDisconnection(ext_DisconnectMode removeMode, ref Array custom)
27 | {
28 |
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/01 Simple/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Outlook01AddinCS4")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
13 | [assembly: AssemblyCopyright("Copyright © 2013 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("b3381587-3ea0-48d3-8bb9-5edf2822678b")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/01 Simple/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/02 Ribbons And Panes/Images/about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Outlook/02 NetOffice Outlook COMAddin Sample/02 Ribbons And Panes/Images/about.png
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_run.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Outlook/02 NetOffice Outlook COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_run.png
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Outlook/02 NetOffice Outlook COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_stop.png
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/02 Ribbons And Panes/Images/delete2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Outlook/02 NetOffice Outlook COMAddin Sample/02 Ribbons And Panes/Images/delete2.png
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/02 Ribbons And Panes/RibbonUI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/02 Ribbons And Panes/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/03 Troubleshooting and Diagnostics/Addin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Outlook/02 NetOffice Outlook COMAddin Sample/03 Troubleshooting and Diagnostics/Addin.ico
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/03 Troubleshooting and Diagnostics/TrayMenuHeader.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Outlook/02 NetOffice Outlook COMAddin Sample/03 Troubleshooting and Diagnostics/TrayMenuHeader.png
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/03 Troubleshooting and Diagnostics/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/04 Register and Unregister/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/05 Custom Property Page/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/06 FormRegions/Addin.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 | using NetOffice;
4 | using NetOffice.Tools;
5 | using Office = NetOffice.OfficeApi;
6 | using Outlook = NetOffice.OutlookApi;
7 | using NetOffice.OutlookApi.Enums;
8 | using NetOffice.OutlookApi.Tools;
9 | /*
10 | FormRegions Example
11 | */
12 | namespace Outlook06AddinCS4
13 | {
14 | [COMAddin("Outlook06 Sample Addin CS4", "FormRegions Example", LoadBehavior.LoadAtStartup)]
15 | [FormRegion("CustomFormRegion_1_CS4", "IPM.Note", "CustomFormRegion1.xml", "CustomFormRegion1.ofs", "Icon1.ico")]
16 | [ProgId("Outlook06AddinCS4.Connect"), Guid("ABDD3141-9E5C-4306-96B4-B705F94C1C55"), Codebase, Timestamp]
17 | public class Addin : COMAddin
18 | {
19 | protected override OpenFormRegion OnCreateOpenFormRegion(Outlook.FormRegion form)
20 | {
21 | return new CustomFormRegion1(form);
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/06 FormRegions/CustomFormRegion1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using NetOffice;
3 | using Outlook = NetOffice.OutlookApi;
4 | using NetOffice.OutlookApi.Tools;
5 | using MSForms = NetOffice.MSFormsApi;
6 | using NetOffice.OutlookApi.Tools.Contribution;
7 | using NetOffice.Extensions.Conversion;
8 |
9 | namespace Outlook06AddinCS4
10 | {
11 | public class CustomFormRegion1 : OpenFormRegion
12 | {
13 | private Outlook.OlkTextBox _textBox1;
14 | private Outlook.OlkCommandButton _commandButton1;
15 |
16 | public CustomFormRegion1(Outlook.FormRegion formRegion) : base(formRegion)
17 | {
18 | MSForms.UserForm form = formRegion.Form as MSForms.UserForm;
19 | _textBox1 = form.Controls["TextBox1"].To();
20 | _commandButton1 = form.Controls["CommandButton1"].To();
21 |
22 | if(null != _commandButton1)
23 | _commandButton1.ClickEvent += CommandButton1_ClickEvent;
24 | }
25 |
26 | private void CommandButton1_ClickEvent()
27 | {
28 | if(null != _textBox1)
29 | OutlookDialogUtils.ShowMessageBox(_textBox1.Text, "Outlook06AddinCS4");
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/06 FormRegions/CustomFormRegion1.ofs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Outlook/02 NetOffice Outlook COMAddin Sample/06 FormRegions/CustomFormRegion1.ofs
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/06 FormRegions/CustomFormRegion1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | separate
4 | CustomFormRegion1
5 | true
6 | true
7 | false
8 |
9 | addin
10 |
11 |
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/06 FormRegions/Icon1.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Outlook/02 NetOffice Outlook COMAddin Sample/06 FormRegions/Icon1.ico
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/06 FormRegions/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Outlook06AddinCS4")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
13 | [assembly: AssemblyCopyright("Copyright © 2013 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("14e4e752-777a-4a98-900b-0fc88ce02cb7")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Outlook/02 NetOffice Outlook COMAddin Sample/06 FormRegions/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Outlook/03 IDTExtensibility2 Outlook Sample/ClassicUI/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("COMAddinClassicExample")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("")]
11 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
12 | [assembly: AssemblyCopyright("Copyright © 2010 Sebastian Lange")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(true)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("620032f1-e6ea-410f-9a75-9cb57d46d442")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/Outlook/03 IDTExtensibility2 Outlook Sample/ClassicUI/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Outlook/03 IDTExtensibility2 Outlook Sample/RibbonUI/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("COMAddinRibbonExample")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("")]
11 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
12 | [assembly: AssemblyCopyright("Copyright © 2010 Sebastian Lange")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(true)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("150fd519-343f-4779-b112-cb80193fa8df")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersionAttribute("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/Outlook/03 IDTExtensibility2 Outlook Sample/RibbonUI/RibbonUI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Outlook/03 IDTExtensibility2 Outlook Sample/RibbonUI/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Outlook/03 IDTExtensibility2 Outlook Sample/TaskPane/SampleData/Customer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace COMAddinTaskPaneExampleCS4
4 | {
5 | class Customer
6 | {
7 | int _id;
8 | string _name;
9 | string _company;
10 | string _mail;
11 | string _city;
12 | string _postalCode;
13 | string _country;
14 | string _phone;
15 |
16 | internal Customer(int id, string name, string company, string mail, string city, string postalCode, string country, string phone)
17 | {
18 | _id = id;
19 | _name = name;
20 | _company = company;
21 | _mail = mail;
22 | _city = city;
23 | _postalCode = postalCode;
24 | _country = country;
25 | _phone = phone;
26 | }
27 |
28 | public int ID { get { return _id; } }
29 | public string Name { get { return _name; } }
30 | public string Company { get { return _company; } }
31 | public string Mail { get { return _mail; } }
32 | public string City { get { return _city; } }
33 | public string PostalCode { get { return _postalCode; } }
34 | public string Country { get { return _country; } }
35 | public string Phone { get { return _phone; } }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Outlook/03 IDTExtensibility2 Outlook Sample/TaskPane/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Outlook/readme.md:
--------------------------------------------------------------------------------
1 | # NetOffice Outlook Samples
2 |
3 |
4 | ## 01 Automation Sample
5 |
6 | Windows Forms application with sample code for automating Microsoft Outlook.
7 |
8 | It shows how to generate a document, modify it and cleanup resources.
9 |
10 |
11 | ## 02 NetOffice Outlook Add-in Sample
12 |
13 | Microsoft Outlook add-in project sample that uses NetOffice libraries and
14 | the NetOffice `COMAddin` base class.
15 |
16 | NetOffice libraries are designed to be similar to developement with Visual Studio
17 | Tools for Office (VSTO). NetOffice `COMAddin` reduces infrastructure code and
18 | handles common tasks for you. It is built on top of native `IDTExtensibility2`
19 | interface.
20 |
21 |
22 | ## 03 IDTExtensibility2 Outlook Add-in Sample
23 |
24 | Microsoft Outlook add-in project sample built with native `IDTExtensibility2` COM+
25 | interface.
26 |
27 | This is advanced sample for people familiar with extending Microsoft Office
28 | or Microsoft Visual Studio applications.
29 |
30 |
--------------------------------------------------------------------------------
/PowerPoint/01 PowerPoint Automation Sample.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PowerPointExamples CSharp", "01 PowerPoint Automation Sample\PowerPointExamples\PowerPointExamples CSharp.csproj", "{30C85D67-193F-4E46-BE81-FD6EBE90CBC3}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x86 = Debug|x86
12 | Release|Any CPU = Release|Any CPU
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|x86.ActiveCfg = Debug|x86
19 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|x86.Build.0 = Debug|x86
20 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|x86.ActiveCfg = Release|x86
23 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|x86.Build.0 = Release|x86
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/PowerPoint/01 PowerPoint Automation Sample/PowerPointExamples/FormMain.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PowerPointExamplesCS4
2 | {
3 | partial class FormMain
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.components = new System.ComponentModel.Container();
32 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
33 | this.Text = "FormMain";
34 | }
35 |
36 | #endregion
37 | }
38 | }
--------------------------------------------------------------------------------
/PowerPoint/01 PowerPoint Automation Sample/PowerPointExamples/FormMain.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using ExampleBase;
3 |
4 | namespace PowerPointExamplesCS4
5 | {
6 | public partial class FormMain : ExampleForm
7 | {
8 | public FormMain()
9 | {
10 | InitializeComponent();
11 | this.Text = "NetOffice PowerPoint Examples in C#";
12 | LoadExamples();
13 | }
14 |
15 | private void LoadExamples()
16 | {
17 | LoadExample(new Example01());
18 | LoadExample(new Example02());
19 | LoadExample(new Example03());
20 | LoadExample(new Example04());
21 | LoadExample(new Example05());
22 | LoadExample(new Example06());
23 | LoadExample(new Example07());
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/PowerPoint/01 PowerPoint Automation Sample/PowerPointExamples/Overview.txt:
--------------------------------------------------------------------------------
1 | Example01 - create a presentation with 1 empty slide
2 | Example02 - create some kind of shapes
3 | Example03 - create macro
4 | Example04 - create blend animation
5 | Example05 - create ole chart object
6 | Example06 - using events
7 | Example07 - customize classic UI
8 |
9 |
--------------------------------------------------------------------------------
/PowerPoint/01 PowerPoint Automation Sample/PowerPointExamples/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace PowerPointExamplesCS4
5 | {
6 | static class Program
7 | {
8 | ///
9 | /// Der Haupteinstiegspunkt für die Anwendung.
10 | ///
11 | [STAThread]
12 | static void Main()
13 | {
14 | Application.EnableVisualStyles();
15 | Application.SetCompatibleTextRenderingDefault(false);
16 | Application.Run(new FormMain());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/PowerPoint/01 PowerPoint Automation Sample/PowerPointExamples/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PowerPointExamplesCS4.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/PowerPoint/01 PowerPoint Automation Sample/PowerPointExamples/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/PowerPoint/01 PowerPoint Automation Sample/PowerPointExamples/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/01 Simple/Addin.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 | using NetOffice.Tools;
4 | using NetOffice.PowerPointApi.Tools;
5 |
6 | /*
7 | Minimum Addin Example
8 | */
9 | namespace PowerPoint01AddinCS4
10 | {
11 | [COMAddin("PowerPoint01 Sample Addin CS4", "Miminum Addin Example", 3)]
12 | [ProgId("PowerPoint01AddinCS4.Connect"), Guid("C6AE4095-4F49-4A8F-9923-0F144C10E837")]
13 | public class Addin : COMAddin
14 | {
15 | public Addin()
16 | {
17 | OnStartupComplete += Addin_OnStartupComplete;
18 | OnDisconnection += Addin_OnDisconnection;
19 | }
20 |
21 | private void Addin_OnStartupComplete(ref Array custom)
22 | {
23 | Console.WriteLine("PowerPoint Version is {0}", Application.Version);
24 | }
25 |
26 | private void Addin_OnDisconnection(ext_DisconnectMode removeMode, ref Array custom)
27 | {
28 |
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/01 Simple/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("PowerPoint01AddinCS4")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("")]
11 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
12 | [assembly: AssemblyCopyright("Copyright © 2016 Sebastian Lange")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(true)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("b3381587-3ea0-48d3-8bb9-5edf2822678b")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/01 Simple/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/02 Ribbons And Panes/Images/about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/02 Ribbons And Panes/Images/about.png
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_run.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_run.png
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_stop.png
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/02 Ribbons And Panes/Images/delete2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/02 Ribbons And Panes/Images/delete2.png
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/02 Ribbons And Panes/RibbonUI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/02 Ribbons And Panes/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/03 Troubleshooting and Diagnostics/Addin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/03 Troubleshooting and Diagnostics/Addin.ico
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/03 Troubleshooting and Diagnostics/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("PowerPoint03AddinCS4")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("")]
11 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
12 | [assembly: AssemblyCopyright("Copyright © 2013 Sebastian Lange")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(true)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("407204e3-769b-416e-92d8-f82b65eb4cb2")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/03 Troubleshooting and Diagnostics/TrayMenuHeader.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/03 Troubleshooting and Diagnostics/TrayMenuHeader.png
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/03 Troubleshooting and Diagnostics/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/04 Register and Unregister/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("PowerPoint04AddinCS4")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("")]
11 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
12 | [assembly: AssemblyCopyright("Copyright © 2013 Sebastian Lange")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(true)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("f7879329-dde9-49e5-a6a5-fe5619bb9b11")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/PowerPoint/02 NetOffice PowerPoint COMAddin Sample/04 Register and Unregister/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/PowerPoint/03 IDTExtensibility2 PowerPoint Sample/ClassicUI/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("COMAddinClassicExample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
13 | [assembly: AssemblyCopyright("Copyright © 2010 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("620032f1-e6ea-410f-9a75-9cb57d46d442")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/PowerPoint/03 IDTExtensibility2 PowerPoint Sample/ClassicUI/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/PowerPoint/03 IDTExtensibility2 PowerPoint Sample/RibbonUI/RibbonUI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/PowerPoint/03 IDTExtensibility2 PowerPoint Sample/RibbonUI/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/PowerPoint/03 IDTExtensibility2 PowerPoint Sample/TaskPane/SampleData/Customer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace COMAddinTaskPaneExampleCS4
6 | {
7 | class Customer
8 | {
9 | int _id;
10 | string _name;
11 | string _company;
12 | string _city;
13 | string _postalCode;
14 | string _country;
15 | string _phone;
16 |
17 | internal Customer(int id, string name, string company, string city, string postalCode, string country, string phone)
18 | {
19 | _id = id;
20 | _name = name;
21 | _company = company;
22 | _city = city;
23 | _postalCode = postalCode;
24 | _country = country;
25 | _phone = phone;
26 | }
27 |
28 | public int ID { get { return _id; } }
29 | public string Name { get { return _name; } }
30 | public string Company { get { return _company; } }
31 | public string City { get { return _city; } }
32 | public string PostalCode { get { return _postalCode; } }
33 | public string Country { get { return _country; } }
34 | public string Phone { get { return _phone; } }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/PowerPoint/03 IDTExtensibility2 PowerPoint Sample/TaskPane/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/PowerPoint/readme.md:
--------------------------------------------------------------------------------
1 | # NetOffice PowerPoint Samples
2 |
3 |
4 | ## 01 Automation Sample
5 |
6 | Windows Forms application with sample code for automating Microsoft PowerPoint.
7 |
8 | It shows how to generate a document, modify it and cleanup resources.
9 |
10 |
11 | ## 02 NetOffice PowerPoint Add-in Sample
12 |
13 | Microsoft PowerPoint add-in project sample that uses NetOffice libraries and
14 | the NetOffice `COMAddin` base class.
15 |
16 | NetOffice libraries are designed to be similar to developement with Visual Studio
17 | Tools for Office (VSTO). NetOffice `COMAddin` reduces infrastructure code and
18 | handles common tasks for you. It is built on top of native `IDTExtensibility2`
19 | interface.
20 |
21 |
22 | ## 03 IDTExtensibility2 PowerPoint Add-in Sample
23 |
24 | Microsoft PowerPoint add-in project sample built with native `IDTExtensibility2` COM+
25 | interface.
26 |
27 | This is advanced sample for people familiar with extending Microsoft Office
28 | or Microsoft Visual Studio applications.
29 |
30 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # NetOffice Samples
2 |
3 | > Sample projects show automation and add-in extensions using NetOffice library.
4 |
5 | Repository with sample projects showcasing NetOffice libraries.
6 |
7 | Samples include automation of Microsoft Office applications and
8 | extending Microsoft Office using add-in model.
9 |
10 |
11 | ### Legacy VisualBasic Samples
12 |
13 | Legacy samples written in VisualBasic can be found in branch [import/legacy_repository](tree/import/legacy_repository).
14 |
15 | ## License
16 |
17 | NetOffice source code is licensed under [MIT License](LICENSE.txt).
18 |
19 | Copyright © 2011-2017 Sebastian Lange
20 | Copyright © 2015-2017 Jozef Izso
21 |
--------------------------------------------------------------------------------
/Word/01 Word Automation Sample.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WordExamples CSharp", "01 Word Automation Sample\WordExamples\WordExamples CSharp.csproj", "{30C85D67-193F-4E46-BE81-FD6EBE90CBC3}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x86 = Debug|x86
12 | Release|Any CPU = Release|Any CPU
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|x86.ActiveCfg = Debug|x86
19 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Debug|x86.Build.0 = Debug|x86
20 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|x86.ActiveCfg = Release|x86
23 | {30C85D67-193F-4E46-BE81-FD6EBE90CBC3}.Release|x86.Build.0 = Release|x86
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/Word/01 Word Automation Sample/WordExamples/FormMain.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace WordExamplesCS4
2 | {
3 | partial class FormMain
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.components = new System.ComponentModel.Container();
32 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
33 | this.Text = "FormMain";
34 | }
35 |
36 | #endregion
37 | }
38 | }
--------------------------------------------------------------------------------
/Word/01 Word Automation Sample/WordExamples/FormMain.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 |
9 | using ExampleBase;
10 |
11 | namespace WordExamplesCS4
12 | {
13 | public partial class FormMain : ExampleForm
14 | {
15 | public FormMain()
16 | {
17 | InitializeComponent();
18 |
19 | this.Text = "NetOffice Word Examples in C#";
20 | LoadExamples();
21 |
22 | }
23 |
24 | private void LoadExamples()
25 | {
26 | LoadExample(new Example01());
27 | LoadExample(new Example02());
28 | LoadExample(new Example03());
29 | LoadExample(new Example04());
30 | LoadExample(new Example05());
31 | LoadExample(new Example06());
32 | LoadExample(new Example07());
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Word/01 Word Automation Sample/WordExamples/Overview.txt:
--------------------------------------------------------------------------------
1 | Example01 - create a document write text and save
2 | Example02 - insert a table to document
3 | Example03 - using templates
4 | Example04 - using data source
5 | Example05 - create vba macros
6 | Example06 - using events
7 | Example07 - customize classic ui
--------------------------------------------------------------------------------
/Word/01 Word Automation Sample/WordExamples/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Windows.Forms;
4 |
5 | namespace WordExamplesCS4
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// Der Haupteinstiegspunkt für die Anwendung.
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.EnableVisualStyles();
16 | Application.SetCompatibleTextRenderingDefault(false);
17 | Application.Run(new FormMain());
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Word/01 Word Automation Sample/WordExamples/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Dieser Code wurde von einem Tool generiert.
4 | // Laufzeitversion:4.0.30319.1
5 | //
6 | // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
7 | // der Code erneut generiert wird.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WordExamplesCS4.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Word/01 Word Automation Sample/WordExamples/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Word/01 Word Automation Sample/WordExamples/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Word/02 NetOffice Word COMAddin Sample/01 Simple/Addin.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 | using NetOffice;
4 | using NetOffice.Tools;
5 | using NetOffice.WordApi.Tools;
6 | /*
7 | Minimum Addin Example
8 | */
9 | namespace Word01AddinCS4
10 | {
11 | [COMAddin("Word01 Sample Addin CS4", "Miminum Addin Example", 3)]
12 | [ProgId("Word01AddinCS4.Connect"), Guid("D4282C02-B127-4FCA-835D-2CD86B0CB00A")]
13 | public class Addin : COMAddin
14 | {
15 | public Addin()
16 | {
17 | OnStartupComplete += Addin_OnStartupComplete;
18 | OnDisconnection += Addin_OnDisconnection;
19 | }
20 |
21 | private void Addin_OnStartupComplete(ref Array custom)
22 | {
23 | Console.WriteLine("Word Version is {0}", Application.Version);
24 | }
25 |
26 | private void Addin_OnDisconnection(ext_DisconnectMode removeMode, ref Array custom)
27 | {
28 |
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Word/02 NetOffice Word COMAddin Sample/01 Simple/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Word01AddinCS4")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
13 | [assembly: AssemblyCopyright("Copyright © 2013 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("b3381587-3ea0-48d3-8bb9-5edf2822678b")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Word/02 NetOffice Word COMAddin Sample/01 Simple/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Word/02 NetOffice Word COMAddin Sample/02 Ribbons And Panes/Images/about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Word/02 NetOffice Word COMAddin Sample/02 Ribbons And Panes/Images/about.png
--------------------------------------------------------------------------------
/Word/02 NetOffice Word COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_run.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Word/02 NetOffice Word COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_run.png
--------------------------------------------------------------------------------
/Word/02 NetOffice Word COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Word/02 NetOffice Word COMAddin Sample/02 Ribbons And Panes/Images/alarmclock_stop.png
--------------------------------------------------------------------------------
/Word/02 NetOffice Word COMAddin Sample/02 Ribbons And Panes/Images/delete2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NetOfficeFw/Samples/09c2f5354bc3edbea71ed00f9198a9244e411a81/Word/02 NetOffice Word COMAddin Sample/02 Ribbons And Panes/Images/delete2.png
--------------------------------------------------------------------------------
/Word/02 NetOffice Word COMAddin Sample/02 Ribbons And Panes/RibbonUI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Word/02 NetOffice Word COMAddin Sample/02 Ribbons And Panes/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Word/03 IDTExtensibility2 Word Sample/ClassicUI/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("COMAddinClassicExample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
13 | [assembly: AssemblyCopyright("Copyright © 2010 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("620032f1-e6ea-410f-9a75-9cb57d46d442")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Word/03 IDTExtensibility2 Word Sample/ClassicUI/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Word/03 IDTExtensibility2 Word Sample/RibbonUI/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("COMAddinRibbonExample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("https://github.com/NetOfficeFw")]
13 | [assembly: AssemblyCopyright("Copyright © 2010 Sebastian Lange")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(true)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("150fd519-343f-4779-b112-cb80193fa8df")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersionAttribute("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Word/03 IDTExtensibility2 Word Sample/RibbonUI/RibbonUI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Word/03 IDTExtensibility2 Word Sample/RibbonUI/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Word/03 IDTExtensibility2 Word Sample/TaskPane/SampleData/Customer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace COMAddinTaskPaneExampleCS4
6 | {
7 | class Customer
8 | {
9 | int _id;
10 | string _name;
11 | string _company;
12 | string _city;
13 | string _postalCode;
14 | string _country;
15 | string _phone;
16 |
17 | internal Customer(int id, string name, string company, string city, string postalCode, string country, string phone)
18 | {
19 | _id = id;
20 | _name = name;
21 | _company = company;
22 | _city = city;
23 | _postalCode = postalCode;
24 | _country = country;
25 | _phone = phone;
26 | }
27 |
28 | public int ID { get { return _id; } }
29 | public string Name { get { return _name; } }
30 | public string Company { get { return _company; } }
31 | public string City { get { return _city; } }
32 | public string PostalCode { get { return _postalCode; } }
33 | public string Country { get { return _country; } }
34 | public string Phone { get { return _phone; } }
35 |
36 |
37 | public override string ToString()
38 | {
39 | return string.Format("Name: {1}{7}ID: {0}{7}Company: {2}{7}City: {3}{7}PostalCode: {4}{7}Country: {5}{7}Phone: {6}{7}{7}", _id, _name, _company, _city, _postalCode, _country, _phone, Environment.NewLine);
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Word/03 IDTExtensibility2 Word Sample/TaskPane/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Word/readme.md:
--------------------------------------------------------------------------------
1 | # NetOffice Word Samples
2 |
3 |
4 | ## 01 Automation Sample
5 |
6 | Windows Forms application with sample code for automating Microsoft Word.
7 |
8 | It shows how to generate a document, modify it and cleanup resources.
9 |
10 |
11 | ## 02 NetOffice Word Add-in Sample
12 |
13 | Microsoft Word add-in project sample that uses NetOffice libraries and
14 | the NetOffice `COMAddin` base class.
15 |
16 | NetOffice libraries are designed to be similar to developement with Visual Studio
17 | Tools for Office (VSTO). NetOffice `COMAddin` reduces infrastructure code and
18 | handles common tasks for you. It is built on top of native `IDTExtensibility2`
19 | interface.
20 |
21 |
22 | ## 03 IDTExtensibility2 Word Add-in Sample
23 |
24 | Microsoft Word add-in project sample built with native `IDTExtensibility2` COM+
25 | interface.
26 |
27 | This is advanced sample for people familiar with extending Microsoft Office
28 | or Microsoft Visual Studio applications.
29 |
30 |
--------------------------------------------------------------------------------
/appveyor.yml:
--------------------------------------------------------------------------------
1 | #
2 | # NetOffice Samples repository
3 | # AppVeyor configuration
4 | #
5 |
6 | version: 1.7.4.{build}
7 |
8 | branches:
9 | except:
10 | - gh-pages
11 | - import/*
12 |
13 | os: Visual Studio 2015
14 |
15 | platform: Any CPU
16 | configuration:
17 | - Debug
18 | - Release
19 |
20 | build_script:
21 | - ps: .\build.ps1 -Verbosity Normal
22 |
23 | assembly_info:
24 | patch: true
25 | file: 'AssemblyInfo.cs'
26 | assembly_version: "{version}"
27 | assembly_file_version: "{version}"
28 | assembly_informational_version: "1.7.4-alpha-{build}"
29 |
30 | test: off
31 |
32 | cache:
33 | - packages -> **\packages.config
34 | - tools -> tools\packages.config
35 |
--------------------------------------------------------------------------------