How to set the Skin through code

Posted by: hpadmasola1 on 8 September 2017, 2:09 pm EST

  • Posted 8 September 2017, 2:09 pm EST

    Hi,


    Can some one please send me the code to set the skin to classic from vb code. I tried the following but it didnt work.

    <FONT size=2>

    fpspread1.Skin = </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Classic"</FONT></FONT>


    <FONT color=#a31515 size=2><FONT color=#a31515 size=2></FONT></FONT> 


    <FONT color=#a31515 size=2><FONT color=#a31515 size=2>Thanks </FONT></FONT>


    <FONT color=#a31515 size=2><FONT color=#a31515 size=2>Harish </FONT></FONT>


    <FONT color=#a31515 size=2><FONT color=#a31515 size=2> 

    </FONT></FONT>
  • Replied 8 September 2017, 2:09 pm EST

    I think I got it to work (sort of). I used <FONT size=2>

    FarPoint.Win.Spread.DefaultSpreadSkins.Classic.Apply(FPSpread1)  and it seems to work but <U>it can't find the file "Classic.xml".</U> which directory does it store it ?


    Harish

    </FONT>
  • Replied 8 September 2017, 2:09 pm EST

    Hello Harish,

     

    This is the correct way to apply  Classic Skin to SpreadSheet.

    "Classic"  is a read only property of Class "DefaultSpreadSkins" which is a member of <font size="2">FarPoint.Win.Spread</font>.I am not sure what "Classic.xml" is?

    Thanks,

     

     

     

  • Replied 8 September 2017, 2:09 pm EST

    Thanks. I was getting that error becuase I also had this line of code in there..

    <FONT color=#008000 size=2><FONT color=#008000 size=2>

    .Sheets(0).ActiveSkin = FarPoint.Win.Spread.SheetSkin.Load("Classic.xml")


    Thanks Again


    Harish 


     

    </FONT></FONT>
Need extra support?

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

Learn More

Forum Channels