Click here to Skip to main content
13,048,584 members (79,729 online)
Rate this:
Please Sign up or sign in to vote.
hiiii Friends....
Could anyone help me how to display contents of .pdf or .docs file on to a Windows Form Control.
Main intention is to just read the content, but shdn`t be allowed to write,edited and downloaded.

Thanks & Regards
Posted 18-Apr-11 19:51pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

For pdf you can;

C# Forms has Adobe PDF Reader component (in COM Component tab) implemented already if you have installed the Adobe Reader. So you need to add the control to your tool explorer. To do this;

*Tool->Choose Toolbox Items.
*Select the COM Components tab.
*Select - > Adobe PDF Reader
*Drag and drop it like any other control.


Use PDFSharp[^]

For .docs;

Word Control for .NET[^]

By using webbrowser control to open a word doc[^]

Create and open word documents by using c#[^]
Orcun Iyigun 11-Sep-15 10:33am
You are talking vaguely. You have to give some details. And do you know the magic tool called debugger? Have you used a breakpoint walk through your code?
Abhinav Hiwanj 11-Sep-15 11:32am
does it work in WPF application
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

you can also use WebBrowser Control of .Net
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

You can use Window WebBrowser control to do such kind of thing..

Manfred R. Bihy 28-Nov-13 7:24am
So how is this a better or more relevant answer than solution #2?
Another thing I should mention is that it is over two years old.

What are trying to pull off here?
Member 11485102 8-Sep-15 1:45am
can i hide pdf options like save,print and all other options after navigating pdf to web browser control..


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 28 Nov 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100