Cannot load skin

Posted by: tosch on 8 September 2017, 3:02 pm EST

  • Posted 8 September 2017, 3:02 pm EST

    I have changed a skin in the spread designer and saved it to disk.

    In my code I want to load this skin but always get this error:

     "System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
       bei System.Xml.XmlNodeReaderNavigator..ctor(XmlNode node)
       bei System.Xml.XmlNodeReader.Init(XmlNode node)
       bei System.Xml.XmlNodeReader..ctor(XmlNode node)
       bei FarPoint.Win.Serializer.LoadObjectXml(Type type, String xml, String elementName, Assembly callingAssembly)
       bei FarPoint.Win.Serializer.LoadObject(Type type, Stream stream, String elementName, Assembly callingAssembly)
       bei FarPoint.Win.Serializer.LoadObject(Type type, String fileName, String elementName, Assembly callingAssembly)
       bei FarPoint.Win.Serializer.LoadObject(Type type, String fileName, String elementName)
       bei FarPoint.Win.Spread.SheetSkin.Load(String fileName)

     

    I'm using version 6.0.2005.2008 of spread.

    Thomas

  • Replied 8 September 2017, 3:02 pm EST

    Hello,

    The issue is reproduced when I save a skin from the Spread skin editor in the designer and later  apply the same to a sheet in Spread and not the Spread, using code. So, please make sure that if you are applying a skin to the sheet in Spread then it is created or saved using the Sheet skin editor in the Spread designer and if you are applying a skin to the Spread then it is created or saved using the Spread skin editor in the Spread designer to resolve the issue that you are currently facing. You can find both these editors in the appearance tab found in the settings menu option of the Spread designer. 

    Hope it will help you. Please let me know if you have any queries further.

    Thanks,

    Manpreet Kaur

  • Replied 8 September 2017, 3:02 pm EST

    Thanks for your help, it's working now. I did not realise there was as sheet skin and a spread skin.

     

    Thomas

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels