I'm needing to be able to print a web page so I'm trying to use the pdf processing. It is an MVC5 and using Visual Studio 2015 I was trying to complete the telerik example at http://demos.telerik.com/aspnet-mvc/pdfprocessing/index . I started by creating a new telerik mvc application and just an index page. I added references Telerik.Windows.Documents.Fixed,
Telerik.Windows.Documents.FormatProfiders.Pdf and
Telerik.Windows.zip.
when I tried adding the using statements in my controller page it does not recognize the .Export statement.
using Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export;
the error is Error CS0234
The type or namespace name 'Export' does not exist in the namespace 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf' (are you missing an assembly reference?)
I tried this because I got the same error trying to add this in the real application I have that I need to convert the web page to a pdf.
So what am I missing.
7 Answers, 1 is accepted
Could you please let me know which version of Telerik.Windows.Documents.Fixed you are using in your case? Generally to use the RadPdfProcessing library in your project, you need to add references to the following assemblies:
- Telerik.Windows.Documents.Core.dll
- Telerik.Windows.Documents.Fixed.dll
- Telerik.Windows.Zip.dll
Kostadin
Telerik by Progress

So I added the Telerik.Windows.Documents.Core and is still doesn't recognize the export.
so before I started this mvc project I went into the Telerik Control Panel and ran the update for UI for ASP.NET MVC which updated to version 2016.3.1118.545 then after the application was created I added the references above by going to Reference, Add then under the Assemblies I clicked the Extensions then found the above dll's. which are version number 2014.1.224.45, I would have thought there was a newer version but I don't know what the latest is.
The latest version of the Telerik.Windows.Documents.Fixed.dll is 2016.3.1021 and could be found in your installation folder under spreadsheet->binaries->net40. I assume the version which you are using does not have this Namespace created and this is the reason for throwing this exception.
Regards,
Kostadin
Telerik by Progress

Thank you, I've been on another project sorry for the delay. that did fix that, as a side question why would not the latest version I have installed not show up in the Assemblies when adding a reference.
Second now that that is fixed I went back to the Demo above and the source code for the CreatePdfDocument.cs is not showing.
The Telerik dlls are not added to the Assemblies section of the Reference manager by default, so I assume that this is related to a custom configuration in your Visual studio instance. You can refer the needed DLLs through the Browse tab of the manager, though, either by navigating to the controls installation or to the bin folder of the project (in case you have copied the assemblies there).
As for the source code of the CreatePdfDocument.cs file - we will examine the cause for this issue further. Meanwhile, you can find this file in the offline installation of the demos in a similar location:
C:\Program Files (x86)\Telerik\UI for ASP.NET MVC R1 2017\wrappers\aspnetmvc\Examples\VS2015\Kendo.Mvc.Examples\Helpers\CreatePdfDocument.cs
Regards,
Vessy
Telerik by Progress

We tried to reproduce the described problem, but to no avail. Can you go through the following steps and make sure that the Demos feature is checked in the Telerik Control Panel?
1. Launch the Telerik Control Panel and log in
2. Click on the UI for MVC product tile
3. Check turn features on/off check box and proceed
4. Verify Demos feature is checked
Meanwhile, you can download the *.zip archive of the UI for ASP.NET MVC installation and take the demos folder directly from there:
telerik.ui.for.aspnetmvc.2017.1.118.commercial.zip
Regards,
Vessy
Telerik by Progress