This is a migrated thread and some comments may be shown as answers.

'MimeTypes' does not exist error

2 Answers 76 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Daochuen
Top achievements
Rank 1
Iron
Veteran
Iron
Daochuen asked on 11 Dec 2019, 08:51 PM

Hello,

I try to test Spreadsheet/Server Import/Export DEMO sample (https://demos.telerik.com/aspnet-mvc/spreadsheet/server-side-import-export?_ga=2.260585796.857884645.1576085626-503251310.1571757701) and use certain functions in our MVC project but turned out got 'MimeTypes' does not exist in namespace error. Does that dll not included in Kendo UI or it only included in recent version?  I also try to use Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.dll but nowhere to find it.

Could I get someone's help? Thanks.

2 Answers, 1 is accepted

Sort by
0
Daochuen
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 11 Dec 2019, 09:20 PM

I need clarify that we used Kendo UI in our MVC project.  Below sample did come from kendo demo site:
https://demos.telerik.com/aspnet-mvc/spreadsheet/server-side-import-export

This is the piece of code:
    @(Html.Kendo().Spreadsheet()
        .Name("spreadsheet")
        .HtmlAttributes(new { style = "width:100%;" })
        .BindTo((IEnumerable<SpreadsheetSheet>)ViewBag.Sheets)
    )

 

Thanks.

0
Accepted
Nencho
Telerik team
answered on 13 Dec 2019, 02:49 PM

Hello, Daochuen,

In order to use the Telerik.Web.Spreadsheet namespace, you would need to include the dll. It is available for download from you Telerik UI for ASP.NET MVC installation folder, under spreadsheet\binaries\net40. The other option is to go to the download section of your account and download the zip for the product and get it from there.

Hope this information helps.

Regards,
Nencho
Progress Telerik

Get quickly onboarded and successful with your Telerik UI for ASP.NET MVC with the dedicated Virtual Classroom technical training, available to all active customers.
Tags
Spreadsheet
Asked by
Daochuen
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Daochuen
Top achievements
Rank 1
Iron
Veteran
Iron
Nencho
Telerik team
Share this question
or