PDF print in Spread 1.0.4 in an Silverlight 5 project throws exception

Posted by: mmoritz on 10 September 2017, 10:57 am EST

  • Posted 10 September 2017, 10:57 am EST

    Hello,

    I'am  using the SavePdf function : ExcelSheet.SavePdf(stream, test, 0);



    When using
    this function in an Silverlight 5 project, an exception occurs: “File or assembly
    System.Xml.Serialization , Version=2.0.5.0, Culture=neutral,
    PublicKeyToken=31bf3856ad364e35 .. could not be found”.



    It seems
    that there is a dependency on a Silverlight 4 system dll (version 2.0.5.0). Silverlight 5 dll have a version number of 4.x.  All other function in
    Spread under Silverlight 5 work perfectly.



    Thanks for your help

    Michael

     

  • Replied 10 September 2017, 10:57 am EST

    Hello,

    I am able to replicate this issue. However if I set CopyLocal property to True for  "System.Xml.Serialization" dll, the issue goes away. Please try the same and let me know if it works for you.

     

    Thanks,

  • Replied 10 September 2017, 10:57 am EST

    Hi Deepak,

    thanks a lot for your fast response.With your advice the PDF Export works just fine !

    best regards

Need extra support?

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

Learn More

Forum Channels