Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4616340
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:58:03+00:00 2026-05-22T01:58:03+00:00

I need to display a PDF in a WPF application. From all the reading

  • 0

I need to display a PDF in a WPF application. From all the reading I’ve been doing online, it seems the [only?] ways of displaying a PDF within a WPF application is via Adobe’s controls or a WebBrowser control. I’ve tried to use Adobe’s controls, however, I have been unable to add the Reader control because for some reason I can’t find the it as something I can add into my Toolbox (even once adding the reference needed). I’m running Windows 7 (64-bit), VS2010, .NET 4.0, and have Adobe Acrobat 7.0 Professional and Adobe Acrobat 9 Pro Extended installed, if that has anything to do with it. So anyway, I decided to try it in a WebBrowser control hosted in a WindowsFormsHost. The XAML I have is this:

<WindowsFormsHost x:Name="FormsHost" Visibility="Visible" Grid.Column="1" Margin="7,0,0,0">
<WF:WebBrowser x:Name="WebBrowser" Dock="Fill" IsWebBrowserContextMenuEnabled="False" ScriptErrorsSuppressed="True" WebBrowserShortcutsEnabled="False" Margin="7,0,0,0" />
</WindowsFormsHost>

and then this in the C# code behind:

WebBrowser.Navigate(new System.Uri(FileName));

where FileName == the exact location of the .pdf file I need to display. However, when I run this all I see is a completely blank, white area where the WebBrowser is. I’ve also tried setting the .pdf file like this:

WebBrowser.Url = new System.Uri(FileName);

and I get the exact same thing. I know the PDF is being created in the correct location, as I can manually browse to it and open it fine.

Does anyone have any ideas as to why this isn’t working? Or possibly why I don’t seem to have the Reader control as an option? At this point, either solution would be fine, they just neither one seem to be working!

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:58:03+00:00Added an answer on May 22, 2026 at 1:58 am

    I’m afraid you are stuck using the WinForms PDF control and hosting it in your WPF application. Its a little annoying, but its not difficult to do. Here is an article and some sample source code:

    http://hugeonion.com/2009/04/06/displaying-a-pdf-file-within-a-wpf-application/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to display an error message on rejecting a drop in my application.
I need to display the log entries from a database. Of course the log
I need to display text in an iPhone application, something like the way a
I'm in need of a solution to print or export (pdf/doc) from C#. I
I have a requirement where in need to display the Pdf / Word doc(any
I need a secure way to display pdf documents so that the viewer can't
i need a free control for my asp.net pages which would display pdf documents,so
I've a need to display certain XML content in tabular form (XSL-FO for pdf
Am working on a Java application that requires me to display PDF documents within
Never worked with Sharepoint, but need to add a WebPart to display a PDF

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.