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


    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=, Culture=neutral,
    PublicKeyToken=31bf3856ad364e35 .. could not be found”.

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

    Thanks for your help



  • Replied 10 September 2017, 10:57 am EST


    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.



  • 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