Missing XlsxFormatProvider in name space

2 posts, 0 answers
  1. Dominique
    Dominique avatar
    1 posts
    Member since:
    Mar 2015

    Posted 01 Apr 2015 Link to this post

    I try to convert an xlsx file to pdf. To do that I use WorkbookFormatProvidersManager.Import and export.
    Thus, I declare 
    using Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml;
    using Telerik.Windows.Zip;
    But I obtain a reject at compile time on the instruction 
     WorkbookFormatProvidersManager.RegisterFormatProvider(new XlsxFormatProvider());

    XlsxFormatProvider is not found.
    Where am'i wrong ?
    Thanks for a reply.
  2. Todor Vyagov
    Admin
    Todor Vyagov avatar
    31 posts

    Posted 03 Apr 2015 Link to this post

    Hello Dominique,

    Thank you for contacting Telerik support.

    XlsxFormatProvider requires references to the following assemblies:
    - Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.dll
    - Telerik.Windows.Zip.dll

    In code you need to include the following usings:
    using Telerik.Windows.Documents.Spreadsheet.FormatProviders;
    using Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.Xlsx;

    More information about format providers can be found here.

    I hope this helps. Should you have any other questions do not hesitate to ask.

    Regards,
    Todor Vyagov
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top