PDFProcessing Demo and the Size property

6 posts, 0 answers
  1. rootberg
    rootberg avatar
    38 posts
    Member since:
    Oct 2012

    Posted 17 Mar 2015 Link to this post

    I was attempting to replicate the PdfProcessing demo at http://demos.telerik.com/aspnet-ajax/pdfprocessing/overview/defaultcs.aspx, and I am continually getting an error about  the "Size" property for "RadFixedPage.Size". It says "The type 'System.Window.Size' is defined in an assembly that is not referenced."

    I am also experiencing a similar problem with the property "Point"
  2. rootberg
    rootberg avatar
    38 posts
    Member since:
    Oct 2012

    Posted 17 Mar 2015 in reply to rootberg Link to this post

    Well, I don't see this in the documentation anywhere, but once I include a reference to "WindowsBase", it appears to work.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 20 Mar 2015 Link to this post

    Hello Yael,

    I am afraid we miss to add this information in our documentation. Nevertheless after the next uploading of the documentation the missing information will be included in each Getting Started help article in Assembly References section.

    Regards,
    Kostadin
    Telerik
  5. Ken
    Ken avatar
    3 posts
    Member since:
    May 2016

    Posted 23 Jun in reply to Kostadin Link to this post

    I am also having the same issue.  I did not get an error relating to windowsbase but I do get an error telling me that: Type 'Size' is not defined.  I am trying to mimic the demo code.  I have the following imports:

    Imports Telerik.Windows.Documents.Fixed
    Imports Telerik.Windows.Documents.Core
    Imports Telerik.Windows.Zip
    Imports Telerik.Windows.Documents.Fixed.FormatProviders.Pdf
    Imports Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export
    Imports Telerik.Windows.Documents.Fixed.Model
    Imports Telerik.Windows.Documents.Fixed.Model.ColorSpaces
    Imports Telerik.Windows.Documents.Fixed.Model.Editing
    Imports Telerik.Windows.Documents.Fixed.Model.Editing.Flow
    Imports Telerik.Windows.Documents.Fixed.Model.Fonts
    Imports Telerik.Windows.Documents.Fixed.Model.Graphics

    Overkill - but trying to narrow down the problem. The problem occurs when I try to set the page size as follows:

    Dim document As New RadFixedDocument()
    Dim page As RadFixedPage = document.Pages.AddPage()
    page.Size = New Size(600, 750)

    Can you help me past this issue?

    Thanks, Ken

  6. Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 28 Jun Link to this post

    Hi Ken,

    Here is a list with all namespaces used in demo.
    using System;
    using System.IO;
    using System.Windows;
    using Telerik.Windows.Documents.Fixed.FormatProviders.Pdf;
    using Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export;
    using Telerik.Windows.Documents.Fixed.Model;
    using Telerik.Windows.Documents.Fixed.Model.ColorSpaces;
    using Telerik.Windows.Documents.Fixed.Model.Editing;
    using Telerik.Windows.Documents.Fixed.Model.Editing.Flow;
    using Telerik.Windows.Documents.Fixed.Model.Fonts;
    using Telerik.Windows.Documents.Fixed.Model.Graphics;

    I assume the cause for this exception is that you did not include System.Windows namespace in your case. Could you please try using them and let me know about the result?

    Regards,
    Kostadin
    Telerik
  7. Ken
    Ken avatar
    3 posts
    Member since:
    May 2016

    Posted 28 Jun in reply to Kostadin Link to this post

    Thanks Kostadin!  I don't know how I missed that reference.  I added it in and everything is working great now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017