Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows C#4.0 Forms
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
Sandy
Posted 18-Apr-11 20:51pm
Rate this: bad
good
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.
 
-Or-
 
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#[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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

Solution 3

You can use Window WebBrowser control to do such kind of thing..
 
WebBrowser1.Navigate("file:///C:/file.pdf")
  Permalink  
v2
Comments
Manfred R. Bihy at 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?

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

  Print Answers RSS
0 OriginalGriff 410
1 Jochen Arndt 200
2 Richard MacCutchan 135
3 DamithSL 105
4 PIEBALDconsult 90
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,032
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,220


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 28 Nov 2013
Copyright © CodeProject, 1999-2014
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