Excel Reports – How to Setup the Server
- Create an User Account on the Server
- Log in as that Account
- Add the Sharperlight add-in to Excel
- Set the Sharperlight Windows Service to run as this Account
- Use DCOMCNFG to set the Microsoft Excel App Identity to this Account
- Start the Sharperlight Service
- Test
Note:
Once Excel has been setup in DCOMCNFG to run as a Service on the Server one should no longer try and use Excel as a Client tool. If you do, an error message Cannot use object linking and embedding will appear and the Sharperlight add-in will be dropped. This error message appears because Excel has been setup to run as a Service to Publish Excel through the Web Channel and is no longer suitable as a Client tool. If you try and use Excel as a Client after it’s been setup as a Service, it will drop the add-in and Published reports will show Sharperlight formulas as #NAME and will no longer extract data from Sharperlight. If this does happen try and rereference the Sharperlight add-in and close Excel.
Microsoft Excel Application entry missing in DCOMCNFG
Permissions can hide these entries, make sure your running DCOMCNFG as admin also see the links below on people reporting to the same issue of Excel entries not being there
First try this in the Windows Start Menu if your using Windows 64bit
MMC comexp.msc /32
Otherwise try these steps
- In DCOMCNFG, right click on the My Computer and select properties.
- Choose the COM Securities tab
- In Access Permissions, click “Edit Defaults” and add Network Service to it and git it “Allow local access” permission. Do the same for <Machine_name>/Users.
- In launch and Activation Permissions, click “Edit Defaults” and add Network Service to it and give it “Local launch” and “Local Activation” permission. Do the same for <Machine_name>/Users
On 64 bit system with 32 bit Office try this:
- Start
- Run
- mmc -32
- File
- Add Remove Snap-in
- Component Services
- Add
- OK
- Console Root
- Component Services
- Computers
- My Computer
- DCOM Config
- Microsoft Excel Application
