PdfFormatProvider().Import() throws null reference exception

5 posts, 0 answers
  1. Andrey
    Andrey avatar
    3 posts
    Member since:
    Nov 2012

    Posted 12 Apr 2013 Link to this post

    Hello!

    After SP1 I see a strange bug: the construction "new PdfFormatProvider(...).Import()" throws null reference exception when it used separately from the pdf viewer( inside console app, for example). But when I create a instance of RadPdfViewer class before this, the import completes successfully. I think there is some initialization inside RadPdfViewer that is required for PdfFormatProvider.
  2. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 15 Apr 2013 Link to this post

    Hello Andrey,

    Indeed, there is a critical initialization of some resources in the RadPdfViewer constructor. This should be fixed in the LIB this week.

    Kind regards,
    Kammen
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Mi
    Mi avatar
    16 posts
    Member since:
    Apr 2011

    Posted 22 Apr 2013 Link to this post

    Hi!

    I have the same problem. I think a previous call to  InitializeStandardFontStreams() is missing.

    Is the fix already available? If yes which build number do I have to use?

    Thanks

    Mike
  5. Mi
    Mi avatar
    16 posts
    Member since:
    Apr 2011

    Posted 23 Apr 2013 Link to this post

    OK, it is fixed in version 2013.1.415.45.
  6. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 23 Apr 2013 Link to this post

    Hi Mike,

    You can use the LIB (Latest Internal Build) that you can download from your account (Products & Subscriptions / See also / Latest Internal Builds).

    All the best,
    Kammen
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
UI for WPF is Visual Studio 2017 Ready