Home | Office Dev Center | Office, SharePoint, Apps for Office and SharePoint, Office 365 APIs

Office Dev Center

Introducing Office 365 APIs Preview


Use single sign-on (SSO) for Office resources

Connect using REST and OAuth

Choose new APIs

The preview release of our new Office 365 APIs extend the platform that we introduced in Office 2013 to support the ability for both websites and native applications to consume Office 365 data.

Office 365 APIs Preview graphic

The story of apps


What are apps for SharePoint?

Apps are small, easy-to-use, stand-alone applications that solve a need for your users or business.

Site owners can install, upgrade, and uninstall them on their SharePoint sites without farm or site collection admins.

What are apps for Office?

Apps are web applications that extend what a document, email message, or meeting request can do in Office.

Run them in multiple environments like Office desktop applications, Office Online, and mobile browsers—in the cloud or on your site.

Why create apps


Build a new class of solutions with the App Model

Extend the way you create and use information from Office and SharePoint.

Deploy and maintain apps faster in the cloud

Use any hosting services to run and deploy them.

Use skills you have and tools you already know

HTML/CSS, JavaScript, PHP, or .NET, and web dev tools like Visual Studio.

Publish apps to your own app catalog

Or sell them in the Office Store.

 none
“addin.XLL is in a different format” issue, cannot open the xll I created by myself

    Dotaz


  • I wrote a very simple xll file in VC++ 2010, and the Excel I am using is Excel 2007. The library contains only one function:

    extern "C" LPXLOPER12 WINAPI tsMkErr() {
        static XLOPER12 x;
        x.xltype = xltypeErr;
        x.val.err = xlerrNull;
        return &x;
    }

    and the necessary xlAutoOpen function. I compiled and dll file, change the name to xll, and double click it to open in Excel. Everything works just as I expected.

    However, if I am trying to open this file on another PC, the Excel just keeps telling me that:

    The file you are trying to open, '.xll', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?

    When I click yes, garbage pops out.

    I also tried to load it via Add-in Manager. In this case I can open the file, but cannot find my function tsMkErr().

    I would be grateful to all suggestions ...

    ... I am going to publish my tool this week ... now I just realized it only works on my PC ... please help ... T_T

    7. února 2013 20:59

Odpovědi

  • Hi,

    Perhaps your add-in is built as a 32-bit library which you are trying to open in the 64-bit version of Excel, or the other way around. You'll need separate versions of the .xll for 32-bit and 64-bit Excel. 

    If this is not the issue, you should check that library is statically linking the C/C++ Runtime, or you are distributing the right version of the C/C++ Runtime files to the other machine.

    Regards,

    Govert

    Excel-DNA - Free and easy .NET for Excel

    10. února 2013 14:49

Všechny reakce

  • Hi,

    Perhaps your add-in is built as a 32-bit library which you are trying to open in the 64-bit version of Excel, or the other way around. You'll need separate versions of the .xll for 32-bit and 64-bit Excel. 

    If this is not the issue, you should check that library is statically linking the C/C++ Runtime, or you are distributing the right version of the C/C++ Runtime files to the other machine.

    Regards,

    Govert

    Excel-DNA - Free and easy .NET for Excel

    10. února 2013 14:49
  • Hi yzhao0527,

    Welcome to the MSDN forum.

    I temporarily marked the reply as answer and you can unmark it if it provides no help.

    Thanks for your understanding and have a nice day.


    Yoyo Jiang[MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    21. února 2013 8:31
    Moderátor
Home | Office Dev Center | Office, SharePoint, Apps for Office and SharePoint, Office 365 APIs

Office Dev Center

Introducing Office 365 APIs Preview


Use single sign-on (SSO) for Office resources

Connect using REST and OAuth

Choose new APIs

The preview release of our new Office 365 APIs extend the platform that we introduced in Office 2013 to support the ability for both websites and native applications to consume Office 365 data.

Office 365 APIs Preview graphic

The story of apps


What are apps for SharePoint?

Apps are small, easy-to-use, stand-alone applications that solve a need for your users or business.

Site owners can install, upgrade, and uninstall them on their SharePoint sites without farm or site collection admins.

What are apps for Office?

Apps are web applications that extend what a document, email message, or meeting request can do in Office.

Run them in multiple environments like Office desktop applications, Office Online, and mobile browsers—in the cloud or on your site.

Why create apps


Build a new class of solutions with the App Model

Extend the way you create and use information from Office and SharePoint.

Deploy and maintain apps faster in the cloud

Use any hosting services to run and deploy them.

Use skills you have and tools you already know

HTML/CSS, JavaScript, PHP, or .NET, and web dev tools like Visual Studio.

Publish apps to your own app catalog

Or sell them in the Office Store.