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

8 posts, 0 answers
  1. mike
    mike avatar
    17 posts
    Member since:
    Jul 2011

    Posted 05 Jan Link to this post

    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.

     

     

  2. Kostadin
    Admin
    Kostadin avatar
    1733 posts

    Posted 09 Jan Link to this post

    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.
  3. mike
    mike avatar
    17 posts
    Member since:
    Jul 2011

    Posted 09 Jan Link to this post

    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.

  4. Kostadin
    Admin
    Kostadin avatar
    1733 posts

    Posted 11 Jan Link to this post

    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.
  5. mike
    mike avatar
    17 posts
    Member since:
    Jul 2011

    Posted 20 Jan in reply to Kostadin Link to this post

    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.

  6. Vessy
    Admin
    Vessy avatar
    1544 posts

    Posted 24 Jan Link to this post

    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.
  7. mike
    mike avatar
    17 posts
    Member since:
    Jul 2011

    Posted 31 Jan in reply to Kostadin Link to this post

    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.
  8. Vessy
    Admin
    Vessy avatar
    1544 posts

    Posted 02 Feb Link to this post

    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.
Back to Top