We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

The name "PdfDocumentView" does not exist in the namespace

Thread ID:

Created:

Updated:

Platform:

Replies:

126331 Oct 7,2016 04:56 PM UTC Oct 11,2016 01:34 PM UTC WPF 4
loading
Tags: PdfViewer
matteo
Asked On October 7, 2016 04:56 PM UTC

I recently decided to try PdfViewer Control in my software.

This is the namespace registered:

xmlns:Syncfusion ="clr-namespace:Syncfusion.Windows.PdfViewer;assembly=Syncfusion.PdfViewer.WPF" 

And this is how I have declared the Control inside a Grid:

<Syncfusion:PdfViewerControl Name="pdfViewerControl1" Grid.Row="0" Grid.Column="0" />

Hi have this reference

Syncfusion.Compression.Base
Syncfusion.Core
Syncfusion.Pdf.Base
Syncfusion.PdfViewer.Wpf
Syncfusion.Shared.Wpf

Visual Studio autocompletes the Control declaration and attributes, and I am even able to see the preview from the XAML file but if I compile the software I get:

The name "PdfDocumentView" does not exist in the namespace "clr-namespace:Syncfusion.Windows.PdfViewer;assembly=Syncfusion.PdfViewer.WPF".

how do I fix?

Thanks in advance


Navaneetha Kannan Sudalai Muthu [Syncfusion]
Replied On October 10, 2016 12:11 PM UTC

Hi Matteo, 
 
Thanks for your update. 
 
We are unable to reproduce the issue “PdfDocumentView does not exist in the namespace” while we have tried to reproduce the issue in our side with the details provided. We have attached the sample we have tried and it can be downloaded from the below link.  
 
 
You can try this sample, modify this sample, or provide us a simple sample with which this issue could be reproduced. It will be better for us to investigate more and assist you better if you can provide the below details to us. 
 
1.      Visual Studio version. 
2.      Syncfusion Essential Studio version. 
  
Best, 
Navaneetha Kannan

matteo
Replied On October 10, 2016 12:17 PM UTC

Thanks for the reply.
Today I will provide you with all the data.
It is possible that the error is due to the fact that I downloaded from NuGet and not the installer package?

matteo
Replied On October 10, 2016 05:44 PM UTC

Hi, the sample project works fine.
But if I change the destination in ".NET Framework 4 Client Profile" I get the same error.
However if I change to ".NET Framework 4" works.

Akshaya Arivoli [Syncfusion]
Replied On October 11, 2016 01:34 PM UTC

Hi Matteo, 
 
At present we do not have support for PdfViewerControl in .NET Framework 4 Client Profile, hence the issue “PdfDocumentView does not exist in the namespace” occurred. We request you to use the .NET frameworks (3.5, 4.0, 4.5, 4.5.1, 4.6) which are supported by PdfViewerControl. 
 
Regards, 
Akshaya 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;