Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Creating Excel spreadsheets in CRM 2011 plugin or custom workflows

(0) ShareShare
ReportReport
Posted on by

Hello,

is it possible to create Excel spreadsheets in CRM 2011 plugin or custom workflows?

I developed custom workflow (isolation mode None), which uses Microsoft.Office.Interop.Excel.dll.

This dll is dependant on COM Microsoft.Office.Core.dll (MSO.DLL), so it was also included as reference into the project.

After registering this Custom Workflow and callling it in CRM 2011, I got error:

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

The problem is that COM dlls cannot be registered into GAC. In development server there is Office installed, hence MSO.DLL exists.

Any ideas how to call this external dll? Is there any other way to create Excel documents in plugins/custom workflows?

Best regards,

povversas

*This post is locked for comments

  • povversas Profile Picture
    povversas on at
    RE: Creating Excel spreadsheets in CRM 2011 plugin or custom workflows

    Sory for disturbance.

    povversas

  • Suggested answer
    Aleksandar Totovic Profile Picture
    Aleksandar Totovic 16,765 on at
    RE: Creating Excel spreadsheets in CRM 2011 plugin or custom workflows

    Hi, this is NAV forum, not CRM. If you need CRM forum, go to Communities - Microsoft Dynamics CRM.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans