Reputation: 4423
I recently decided to use the PdfViewer Control in on of my features. I've included the dependencies as mentioned int the Documentation"
This is the namespace registered:
xmlns:pdfViewer="clr-namespace:Syncfusion.Windows.PdfViewer;assembly=Syncfusion.PdfViewer.WPF"
And this is how I have declared the Control inside a Grid:
<pdfViewer:PdfDocumentView Name="PdfViewer" AllowDrop="True"></pdfViewer:PdfDocumentView>
When I tried to run the application I got this error:
The name "PdfDocumentView" does not exist in the namespace "clr-namespace:Syncfusion.Windows.PdfViewer;assembly=Syncfusion.PdfViewer.WPF".
Visual Studio autocompletes the Control declaration and attributes, and I am even able to see the preview from the XAML file.
Any ideas?
Upvotes: 0
Views: 2003
Reputation: 954
Make sure assemblies being added are having same .Net version as your project's .Net version.
To check that right click on your project > Add > Reference.. In the Reference Manager window you can check Assembly's version, use SyncFusion documentation for assembly's supported .Net version.
Upvotes: 0
Reputation: 177
Syncfusion PDF Viewer WPF is not supported in the client profile frameworks, please refer to the link supported frameworks, this might be the cause of this issue. Kindly switch the framework to get this issue resolved.
With reference to the UG documentation the following assemblies are necessary for the inclusion of the PDF Viewer in an application.
If you still face any issue in working with PDF Viewer, please contact Syncfusion support at [email protected]
Regards, Suresh
Upvotes: 1