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

PdfFormatProvider().Import() throws null reference exception

4 Answers 221 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Andrey asked on 12 Apr 2013, 11:09 AM
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.

4 Answers, 1 is accepted

Sort by
0
Kammen
Telerik team
answered on 15 Apr 2013, 10:40 AM
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.

0
Mi
Top achievements
Rank 1
answered on 22 Apr 2013, 03:50 PM
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
0
Mi
Top achievements
Rank 1
answered on 23 Apr 2013, 07:59 AM
OK, it is fixed in version 2013.1.415.45.
0
Kammen
Telerik team
answered on 23 Apr 2013, 08:37 AM
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.

Tags
PDFViewer
Asked by
Andrey
Top achievements
Rank 1
Answers by
Kammen
Telerik team
Mi
Top achievements
Rank 1
Share this question
or