Office 2007 PIA

I built an application, it generates Excel using COM Interop. It works great on my and our user machine: Office 2007, Windows XP SP2. Now I port it to another machine, Office 2010, 64-bit Windows 7 and use Visual Studio 2010 from VS2008, which is still working fine. When I deploy it to my user machine, I had a problem, they use the same 64-bit Windows 7, but Office 2007.

So, if I installed PIA Office 2007 on my 64-bit 64-bit and Office 2010, change the link in my visual studio project, will this solve the problem?

+5
source share
1 answer

, , , , - .

PIA , Office, . , Office 2007 , 12 PIA .

VIA PIA ( PIA 2007 VSTO, GAC, Office 2007). : ", v12 Visual Studio, Office 2007". . v12, Office 2010, : ", v12 , v14, GAC, PIAs , ". , , v12, v14. FUSLOG. FUSLOG - . . FUSLOG , , Internet Explorer .

, , . PIA GAC. - PIA . , :

  • "Windows key + R", .
  • 'C:\Windows\Assembly\GAC' Enter. . 32- . PIA, , GAC, "C:\Windows\Assembly\GAC_MSIL".

GAC PIA, (, Microsoft.Office.Interop.Excel). , , "", , PIA (, Policy.12.0.Microsoft.Office.Interop.Excel). , . XML , - :

<?xml version="1.0" encoding="UTF-16"?><configuration>
<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
            <assemblyIdentity publicKeyToken="71e9bce111e9429c" name="Microsoft.Office.Interop.Excel" culture="neutral"></assemblyIdentity>
            <bindingRedirect oldVersion="12.0.0.0" newVersion="14.0.0.0"></bindingRedirect>
        </dependentAssembly>
    </assemblyBinding>
</runtime>

"bindingRedirect oldVersion..." PIA. :

<?xml version="1.0" encoding="UTF-16"?><configuration>
<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
            <assemblyIdentity publicKeyToken="71e9bce111e9429c" name="Microsoft.Office.Interop.Excel" culture="neutral"></assemblyIdentity>
            <!--<bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0"></bindingRedirect>-->
        </dependentAssembly>
    </assemblyBinding>
</runtime>

. , , , Office. PIA, , .

, !

+9

All Articles