Need More Info
Last Updated: 24 Apr 2025 09:23 by ADMIN
Jay
Created on: 24 Apr 2025 07:35
Category: UI for WinForms
Type: Bug Report
0
Issue in Pdf viewer when i use interactive form pdf document
System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Pdf.Documents.Fixed.FormatProviders.Old.Pdf.PdfElementToFixedElementTranslator.CreateFormField(PdfContentManager contentManager, FormFieldNodeOld terminalFormField)
   at Telerik.Windows.Pdf.Documents.Fixed.FormatProviders.Old.Pdf.PdfElementToFixedElementTranslator.CreateWidgetAnnotation(WidgetOld source, PdfFormatProvider provider)
   at Telerik.Windows.Pdf.Documents.Fixed.FormatProviders.Old.Pdf.PdfElementToFixedElementTranslator.CreateAnnotation(AnnotationOld source, PdfFormatProvider provider)
   at Telerik.Windows.Pdf.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.CopyAnnotationsFromPageSource(PageOld source, AnnotationCollection annotations)
   at Telerik.Windows.Pdf.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.LoadPageAnnotations(RadFixedPage page)
   at Telerik.Windows.Pdf.Documents.Fixed.Model.RadFixedPage.LoadAnnotations()
   at Telerik.Windows.Pdf.Documents.Fixed.Model.Internal.RadFixedPageInternal.Arrange()
   at Telerik.Windows.Pdf.Documents.Fixed.FormatProviders.Old.Pdf.PdfReader.PageContentLoader.Telerik.Windows.Pdf.Documents.Fixed.FormatProviders.Old.Pdf.PdfReader.IPageContentLoader.LoadPageContent(RadFixedPage page)
   at Telerik.Windows.Pdf.Documents.Fixed.FormatProviders.Old.Pdf.PdfReader.PagesCacheManager.BeginUsingPageContent(RadFixedPage page)
   at Telerik.WinControls.UI.RadFixedPageElement.Attach(RadFixedPage data, Object context)
   at Telerik.WinControls.UI.RadFixedPageElement..ctor(RadFixedPage page, RadPdfViewerElement owner)
   at Telerik.WinControls.UI.RadPdfViewerElement.CreatePageElement(RadFixedPage data, Object context)
   at Telerik.WinControls.UI.FixedPageElementProvider.CreateElement(RadFixedPage data, Object context)
   at Telerik.WinControls.UI.BaseVirtualizedElementProvider`1.GetElement(T data, Object context)
   at Telerik.WinControls.UI.BaseVirtualizedContainer`1.UpdateElement(Int32 position, T data)
   at Telerik.WinControls.UI.BaseVirtualizedContainer`1.MeasureElements()
   at Telerik.WinControls.PdfViewer.PdfViewerStackContainer.MeasureElements()
   at Telerik.WinControls.UI.BaseVirtualizedContainer`1.MeasureOverride(SizeF availableSize)
   at Telerik.WinControls.RadElement.MeasureCore(SizeF availableSize)
   at Telerik.WinControls.RadElement.Measure(SizeF availableSize)
   at Telerik.WinControls.UI.ScrollViewElement`1.MeasureViewElement(SizeF availableSize)
   at Telerik.WinControls.UI.ScrollViewElement`1.MeasureView(SizeF availableSize)
   at Telerik.WinControls.UI.ScrollViewElement`1.MeasureOverride(SizeF availableSize)
   at Telerik.WinControls.UI.VirtualizedScrollPanel`2.MeasureOverride(SizeF availableSize)
   at Telerik.WinControls.UI.RadPdfViewerElement.MeasureOverride(SizeF availableSize)
   at Telerik.WinControls.RadElement.MeasureCore(SizeF availableSize)
   at Telerik.WinControls.RadElement.Measure(SizeF availableSize)
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout()
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayoutCallback(ILayoutManager manager)
1 comment
ADMIN
Nadya | Tech Support Engineer
Posted on: 24 Apr 2025 09:23

Hello, Jay,

I am really sorry to hear that you are experiencing any difficulties with RadPdfViewer from the Telerik UI for WinForms suite when using interactive forms.

The provided stack trace is greatly appreciated, but it is not enough to replicate the problem. I would need more information about this case while determining the issue that you had. Considering the information shared in the ticket info, I noticed that you use quite an old version from 2016. Can you confirm if you are using version 2016.3.1024? There is a big version gap, and it would be great if you could download a newer Telerik version and test if the exception happens with a recent version of our suite. The latest official version for Telerik UI for WinForms is 2025.1.211. You can download it from your Telerik account: Download Product Files - Telerik UI for WinForms

If the problem still occurs, it would be very helpful if you could provide the problematic pdf file so that we can investigate it more precisely. Is it possible to share the exact steps that can reproduce this exception? Thank you in advance for your cooperation and understanding.

I am looking forward to your reply. 

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.