Thursday 20 December 2007

Custom Styles appear in edit page tool bar in Sharepoint

To add custom styles to appear in the Styles dropdown in a tool bar while editing a page in Sharepoint add the following to the controls.css file that can be found under Style Library/en-us/Core Styles/controls.css in sharepoint designer

.ms-rteCustom-AnyName1, .AnyName1
{
font-weight: bold;
font-family: Arial;
font-size: 14pt;
color: #8C0000;
text-transform: capitalize;
}

.ms-rteCustom-AnyName2, .AnyName2
{
font-weight: bold;
font-family: Arial;
font-size: 14pt;
color: #8C0000;
text-transform: capitalize;
}

Tuesday 4 December 2007

System.Runtime.InteropServices.COMException (0x8001010A): Creating an instance of the COM component with CLSID {00020820-0000-0000-C000-000000000046}

System.Runtime.InteropServices.COMException (0x8001010A): Creating an instance of the COM component with CLSID {00020820-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 8001010a.

I got this error when working on an Excel Automation Process. Excel throws this error message which is not very useful at all. The same code was working on other servers but on 1 particular server I kept getting this error.

Solutions:

Reboot the server! To be more precise I killed the Process EXCEL in task manager and the application started working again. The error code 8001010a usually means that the application is busy so had a look on the task manager.