Click here to Skip to main content
15,917,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Question about PrimaryKey of DataTable Pin
Kschuler28-Jul-06 10:16
Kschuler28-Jul-06 10:16 
GeneralRe: Thanks. I didn't perform Fillschema. that's the reason. Pin
jgyie228-Jul-06 10:29
jgyie228-Jul-06 10:29 
QuestionListview Items - Formatting a column after data has been added Pin
eatwork28-Jul-06 6:47
eatwork28-Jul-06 6:47 
Questionsharing common data between 2 seperate applications Pin
mrmathews9928-Jul-06 6:40
mrmathews9928-Jul-06 6:40 
AnswerRe: sharing common data between 2 seperate applications Pin
Kschuler28-Jul-06 10:19
Kschuler28-Jul-06 10:19 
GeneralRe: sharing common data between 2 seperate applications Pin
Nouvand3-Aug-06 2:40
Nouvand3-Aug-06 2:40 
Questioncontrolling other applications from VB.NET Pin
mrmathews9928-Jul-06 6:39
mrmathews9928-Jul-06 6:39 
AnswerRe: controlling other applications from VB.NET Pin
hannesHTG28-Jul-06 23:46
hannesHTG28-Jul-06 23:46 
Hello mrmathesw99!

Well there is a couple of things to note here:

To start various applications, you could use Process.Start.

I have noticed however, that you mention you want to able to do many things with MS Word for example. In that case you could use Automation to do whatever you want with Word, Excel etc.

So, what you need to do is to add a Reference To the Microsoft Word Object Library (Just click References in the Solution Explorer, and say Add Reference, Select the COM tab, and scroll until you find it) You can add references to all MS Office programs like that.

Once that is done, you can create Word Apllication variables and manipulate Word through that. Amazing huh ¿
Here's a small sample :
Dim SSWord As New Word.Application 'word application

Dim SSWordDoc As Word.Document 'document object

SSWord = DirectCast(GetObject(, "Word.Application"), Word.Application)
SSWordDoc = SSWord.Documents.Add(, , 1, False) 'add a document
SSWord.WindowState = SSWord.WindowState.wdWindowStateMaximize 'maximise word window
SSWord.Activate() 'activate it
SSWord.ActiveWindow.ActivePane.View.ShowAll = True 'show / hide symbols = true

After using the Word objects, you need to set the Word Objects to Nothing

And Quit it as well

Hope it helps!

H T G
GeneralRe: controlling other applications from VB.NET Pin
mrmathews9930-Jul-06 18:02
mrmathews9930-Jul-06 18:02 
QuestionTab Control - Collection Order Problem Pin
directred28-Jul-06 5:10
directred28-Jul-06 5:10 
QuestionVB.net and SQlServer 2000 Pin
cayoaihuong8428-Jul-06 4:36
cayoaihuong8428-Jul-06 4:36 
AnswerRe: VB.net and SQlServer 2000 Pin
Colin Angus Mackay28-Jul-06 5:55
Colin Angus Mackay28-Jul-06 5:55 
QuestionChange color Pin
Sinchan Nikam28-Jul-06 4:01
Sinchan Nikam28-Jul-06 4:01 
AnswerRe: Change color Pin
hannesHTG28-Jul-06 23:49
hannesHTG28-Jul-06 23:49 
Questionwhy viewing report using crystal report is very slow Pin
muthvireak@yahoo.com28-Jul-06 2:36
muthvireak@yahoo.com28-Jul-06 2:36 
QuestionLoading Crystal Report is very slow Pin
GopanKallazhy28-Jul-06 1:00
GopanKallazhy28-Jul-06 1:00 
QuestionAdd combobox Pin
vidyashankar27-Jul-06 23:37
vidyashankar27-Jul-06 23:37 
QuestionFormatting data using a data grid Pin
ssbelfast27-Jul-06 23:06
ssbelfast27-Jul-06 23:06 
AnswerRe: Formatting data using a data grid Pin
Nouvand3-Aug-06 2:51
Nouvand3-Aug-06 2:51 
QuestionSplash Scree Pin
slSoftware27-Jul-06 22:49
slSoftware27-Jul-06 22:49 
AnswerSplash Screen Pin
Hesbon Ongira27-Jul-06 23:16
Hesbon Ongira27-Jul-06 23:16 
GeneralRe: Splash Screen Pin
slSoftware27-Jul-06 23:31
slSoftware27-Jul-06 23:31 
AnswerRe: Splash Screen Pin
hannesHTG28-Jul-06 0:43
hannesHTG28-Jul-06 0:43 
GeneralRe: Splash Screen Pin
slSoftware28-Jul-06 1:13
slSoftware28-Jul-06 1:13 
AnswerRe: Splash Screen Pin
hannesHTG28-Jul-06 1:54
hannesHTG28-Jul-06 1:54 

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.