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

Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export

7 Answers 921 Views
Installer and VS Extensions
This is a migrated thread and some comments may be shown as answers.
mike
Top achievements
Rank 1
mike asked on 05 Jan 2017, 08:50 PM

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

Sort by
0
Kostadin
Telerik team
answered on 09 Jan 2017, 02:41 PM
Hi Mike,

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

Regards,
Kostadin
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
mike
Top achievements
Rank 1
answered on 09 Jan 2017, 09:17 PM

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.

0
Kostadin
Telerik team
answered on 11 Jan 2017, 01:31 PM
Hello Mike,

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
mike
Top achievements
Rank 1
answered on 20 Jan 2017, 04:02 PM

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.

0
Vessy
Telerik team
answered on 24 Jan 2017, 04:21 PM
Hi Mike,

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
mike
Top achievements
Rank 1
answered on 31 Jan 2017, 04:30 PM
So after fighting with the Telerik Control Panel all day, I finally got it to open and I updated my UI for ASP.Net AJAX and the UI for ASP.NET MVC. On the screen to select the VS version I wanted to update I also checked the box for local demos. after the upgrade finished I do not have a Examples directory under the directory aspnetmvc.
0
Vessy
Telerik team
answered on 02 Feb 2017, 03:48 PM
Hi Mike,

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

If this is not the case, please, provide the exact steps you have gone through when upgrading the suite when the problem occurs, so examine the scenario further on our side.

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Installer and VS Extensions
Asked by
mike
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
mike
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or