Click here to Skip to main content
15,912,578 members
Home / Discussions / C#
   

C#

 
GeneralRichTextBox: Get the current text-cursor-position (pixel) Pin
kalwar11-Dec-03 0:34
kalwar11-Dec-03 0:34 
GeneralRe: RichTextBox: Get the current text-cursor-position (pixel) Pin
Heath Stewart11-Dec-03 4:08
protectorHeath Stewart11-Dec-03 4:08 
Questionbutten_click event trigging a method in a different class? Pin
thomasa10-Dec-03 22:51
thomasa10-Dec-03 22:51 
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 
Handling a word document the way you want it and showing it at the same time is best done in the context of a Word add-in, where you get both your freedom and the automation handle to play with.

I'll definitely would go that route, rather the opposite where you are asking for troubles.

Plenty of articles for writing your add-ins everywhere.

Troubles since :

  • As of date, winforms don't (directly) support active documents (ole container). Whidbey due in June is supposed to solve this, but I guess this is too late!
  • Internet explorer is a ole site for all sorts of things, including active documents. So if you host IE in your form, it can in turn act like a host for whatever OLE document including Word, Excel, ... But showing it is mostly the thing you can do with it. It's much harder to tunnel commands this way.
  • Although C# does COM interop, it's not very good at doing this, especially when you need both the visible stuff, and the automation stuff. What I mean is that there are a lot of problems when you the stuff to release well from the memory, to behave well when you click, etc.


Good luck!



  RSS feed
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 
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 

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.