Click here to Skip to main content
15,915,163 members
Home / Discussions / C#
   

C#

 
AnswerRe: butten_click event trigging a method in a different class? Pin
Heath Stewart11-Dec-03 3:49
protectorHeath Stewart11-Dec-03 3:49 
Generaldisplay word file on form Pin
hazzem elrefai10-Dec-03 22:33
hazzem elrefai10-Dec-03 22:33 
GeneralRe: display word file on form Pin
Stephane Rodriguez.10-Dec-03 23:05
Stephane Rodriguez.10-Dec-03 23:05 
GeneralRe: display word file on form Pin
hazzem elrefai10-Dec-03 23:55
hazzem elrefai10-Dec-03 23:55 
GeneralRe: display word file on form Pin
Stephane Rodriguez.11-Dec-03 0:39
Stephane Rodriguez.11-Dec-03 0:39 
GeneralRe: display word file on form Pin
hazzem elrefai11-Dec-03 1:03
hazzem elrefai11-Dec-03 1:03 
GeneralRe: display word file on form Pin
Vocjeny11-Dec-03 1:58
Vocjeny11-Dec-03 1:58 
GeneralRe: display word file on form Pin
Heath Stewart11-Dec-03 3:37
protectorHeath Stewart11-Dec-03 3:37 
Stephane's idea is probably the best way to embed a Word document in your application. There is another way, though, if you really want to go to all the work, but you should be very familiar with ActiveX programming interfaces.

The WebBrowser control (actually, MSHTML) can host the doc because it is a container. Making your application a valid ActiveX container is very difficult and requires that you implement many interfaces (most of which are not defined in the .NET base class library, so you either have to create an interop assembly or manually define the interfaces with all the right attributes and parameter marshaling). Just to name a view interface, you'll need to read about IOleContainer, IOleDocumentView, IOleWindow, and many more. You can use oleview.exe to examine the interfaces implemented by the Microsoft HTML Document COM object (mshtml.dll) for a list. Not all the interfaces have to be implemented, though.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: display word file on form Pin
Guillermo Rivero11-Dec-03 4:22
Guillermo Rivero11-Dec-03 4:22 
GeneralRe: display word file on form Pin
Guillermo Rivero11-Dec-03 4:28
Guillermo Rivero11-Dec-03 4:28 
GeneralRe: display word file on form Pin
hazzem elrefai12-Dec-03 10:29
hazzem elrefai12-Dec-03 10:29 
GeneralRe: display word file on form Pin
hazzem elrefai12-Dec-03 13:57
hazzem elrefai12-Dec-03 13:57 
GeneralRe: display word file on form Pin
Guillermo Rivero13-Dec-03 11:22
Guillermo Rivero13-Dec-03 11:22 
GeneralRe: display word file on form Pin
hazzem elrefai13-Dec-03 12:55
hazzem elrefai13-Dec-03 12:55 
Generalnamespace curiosity Pin
Member 76049710-Dec-03 21:39
Member 76049710-Dec-03 21:39 
GeneralRe: namespace curiosity Pin
Heath Stewart11-Dec-03 3:27
protectorHeath Stewart11-Dec-03 3:27 
General"database wizard" Pin
brain2cpu10-Dec-03 21:39
professionalbrain2cpu10-Dec-03 21:39 
GeneralRe: "database wizard" Pin
Heath Stewart11-Dec-03 3:24
protectorHeath Stewart11-Dec-03 3:24 
Generalopen forms in virtual display Pin
Günther Meusburger10-Dec-03 20:25
Günther Meusburger10-Dec-03 20:25 
General:: problem in use UPDATE statement :: Pin
Nazila Naderi10-Dec-03 16:08
Nazila Naderi10-Dec-03 16:08 
GeneralRe: :: problem in use UPDATE statement :: Pin
Heath Stewart11-Dec-03 3:10
protectorHeath Stewart11-Dec-03 3:10 
GeneralRe: :: problem in use UPDATE statement :: Pin
KevinMac11-Dec-03 10:20
KevinMac11-Dec-03 10:20 
GeneralPerl has made me soft. Pin
ambulopod10-Dec-03 14:25
ambulopod10-Dec-03 14:25 
GeneralRe: Perl has made me soft. Pin
Christian Graus10-Dec-03 15:07
protectorChristian Graus10-Dec-03 15:07 
GeneralRe: Perl has made me soft. Pin
ambulopod10-Dec-03 15:15
ambulopod10-Dec-03 15:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.