11

I'm wondering what's the best option to display a pdf/doc document inside form in my c# winforms app.

This control should only allow do display preview. Edtiting documents should be forbidden.

I'm looking for free solution.

The best option would be to attach a few separate *.dlls to solution but it's not a requirement.

tomo
  • 1,942
  • 2
  • 29
  • 43

3 Answers3

1

Consider using the preview handlers for Vista, Windows 7. I used the code provided by Brad Smith (with corrections from the comments).

http://www.brad-smith.info/blog/archives/79 - Hosting Preview Handlers in Windows Forms Applications

ptilton
  • 142
  • 3
  • 13
0

An often suggested solution is to use a webbrowser component inside the form that views the PDF: MSDN

Another approach is to use an ActiveX Control included with the Adobe Acrobat Reader but therefore you need a license from Adobe.

dajood
  • 3,758
  • 9
  • 46
  • 68
0

You can use Preview Handlers. There is a WPF Article over at CodeProject, which should be dead easy to translate to WinForms if you need it.

Jonathan C Dickinson
  • 7,181
  • 4
  • 35
  • 46