Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -51,6 +52,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="CookComputing.XmlRpcV2">
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You should have received a copy of the GNU Affero General Public License
using System.Collections;
using System.Linq;
using OpenERPClient;
using outlook = Microsoft.Office.Interop.Outlook;
using outlook = NetOffice.OutlookApi;
using System.Windows.Forms;
namespace OpenERPOutlookPlugin
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<NoStandardLibraries>false</NoStandardLibraries>
<AssemblyName>OpenERPOutlookPlugin</AssemblyName>
<RootNamespace>OpenERPOutlookPlugin</RootNamespace>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
Expand All @@ -33,6 +33,7 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -44,7 +45,7 @@
<IncrementalBuild>false</IncrementalBuild>
<RegisterForComInterop>true</RegisterForComInterop>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>false</DebugSymbols>
Expand All @@ -56,12 +57,28 @@
<IncrementalBuild>false</IncrementalBuild>
<RegisterForComInterop>true</RegisterForComInterop>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="CookComputing.XmlRpcV2">
<HintPath>..\CookComputing.XmlRpcV2.dll</HintPath>
</Reference>
<Reference Include="Extensibility, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Reference Include="NetOffice">
<HintPath>..\packages\NetOffice.Core.Net35.1.7.2.0\lib\net35\NetOffice.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="NetOffice.OutlookSecurity">
<HintPath>..\..\..\..\..\..\..\NetOffice 1.7.3\NetOffice 1.7.3\Toolbox Binaries\NetOffice.OutlookSecurity.dll</HintPath>
</Reference>
<Reference Include="OfficeApi">
<HintPath>..\packages\NetOffice.Core.Net35.1.7.2.0\lib\net35\OfficeApi.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="OutlookApi">
<HintPath>..\packages\NetOffice.Outlook.Net35.1.7.2.0\lib\net35\OutlookApi.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="System">
<HintPath>System.dll</HintPath>
<Name>System</Name>
Expand All @@ -83,6 +100,10 @@
<HintPath>System.XML.dll</HintPath>
<Name>System.XML</Name>
</Reference>
<Reference Include="VBIDEApi">
<HintPath>..\packages\NetOffice.Core.Net35.1.7.2.0\lib\net35\VBIDEApi.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs">
Expand Down Expand Up @@ -184,37 +205,12 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<COMReference Include="Microsoft.Office.Core">
<Guid>{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}</Guid>
<VersionMajor>2</VersionMajor>
<VersionMinor>4</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
</COMReference>
<COMReference Include="Microsoft.Office.Interop.Outlook">
<Guid>{00062FFF-0000-0000-C000-000000000046}</Guid>
<VersionMajor>9</VersionMajor>
<VersionMinor>3</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
</COMReference>
<COMReference Include="stdole">
<Guid>{00020430-0000-0000-C000-000000000046}</Guid>
<VersionMajor>2</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
</COMReference>
</ItemGroup>
<ItemGroup>
<None Include="Resources\195737_152643643962_3595480_n.jpg" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<StartWorkingDirectory>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\</StartWorkingDirectory>
<StartProgram>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe</StartProgram>
<StartWorkingDirectory>D:\tmp\ofWork\newnew\odoo-extra\plugin_outlook\static\openerp-outlook-plugin\OpenERPOutlookPlugin\bin\Debug\</StartWorkingDirectory>
<StartProgram>C:\Program Files\Microsoft Office\Office15\OUTLOOK.EXE</StartProgram>
<StartAction>Program</StartAction>
<EnableUnmanagedDebugging>true</EnableUnmanagedDebugging>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<StartWorkingDirectory>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\</StartWorkingDirectory>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ You should have received a copy of the GNU Affero General Public License

using System;
using System.Collections;
using System.Drawing;
using System.IO;
using outlook = Microsoft.Office.Interop.Outlook;
using outlook = NetOffice.OutlookApi;


namespace OpenERPOutlookPlugin
Expand All @@ -30,8 +29,9 @@ static public class Tools
{
static public outlook.MailItem[] MailItems()
{
Microsoft.Office.Interop.Outlook.Application app = null;
app = new Microsoft.Office.Interop.Outlook.Application();
//Outlook is singleton application, so always return same instance
outlook.Application app = new outlook.Application();
NetOffice.OutlookSecurity.Suppress.Enabled = true;
ArrayList mailItems = new ArrayList();
foreach (var selection in app.ActiveExplorer().Selection)
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ You should have received a copy of the GNU Affero General Public License
using System.Text;
using System.Windows.Forms;
using OpenERPClient;
using outlook = Microsoft.Office.Interop.Outlook;
using outlook = NetOffice.OutlookApi;
using System.Collections;

namespace OpenERPOutlookPlugin
Expand Down Expand Up @@ -94,5 +94,14 @@ private void btn_newdoc_Click(object sender, EventArgs e)
this.Close();
}

private void BtnDocOnClick(object sender, EventArgs e)
{
foreach (NetOffice.OutlookApi.MailItem mailitem in Tools.MailItems())
{
Cache.OpenERPOutlookPlugin.Open_Document(mailitem);

}
this.Close();
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading