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

    <font face="arial,helvetica,sans-serif">Hello,</font>

    <font face="arial,helvetica,sans-serif">I'am  using the SavePdf function : <span style="font-family:Consolas;font-size:10pt;mso-fareast-language:DE;">ExcelSheet.SavePdf(stream, test, 0);<o:p></o:p></span></font>

    <font face="arial,helvetica,sans-serif">

    <span style="mso-ansi-language:EN-US;">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”. <o:p></o:p></span></font>

    <font face="arial,helvetica,sans-serif">

    <span style="mso-ansi-language:EN-US;">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.<o:p></o:p></span></font>

    <font face="arial,helvetica,sans-serif">

    Thanks for your help</font>

    <font face="arial,helvetica,sans-serif">Michael</font>

    <font size="3" face="Times New Roman"></font> 

  • 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  <font face="arial,helvetica,sans-serif"><span>"System.Xml.Serialization" dll, the issue goes away. Please try the same and let me know if it works for you.</span></font>

     

    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