Re: A reason to like Microsoft
- From: "Rob Windsor [MVP]" <rob.windsor.no.spam@xxxxxxxxx>
- Date: Fri, 6 Jan 2006 07:19:46 -0500
This is a perfect example of picking the right tool for the job. It's a
no-brainer to use VB when programming Office applications.
--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
http://msmvps.com/windsor/
"Cindy Winegarden" <cindy_winegarden@xxxxxxx> wrote in message
news:%23nqnv$nEGHA.740@xxxxxxxxxxxxxxxxxxxxxxx
>I appreciate a language where you can do this:
>
> Module Module1
> Sub Main()
> Dim FileOpen As String = "C:\Temp\Test.doc"
> Dim oWord As New Word.Application
> Dim oDoc As Word.Document = _
> oWord.Documents.Open(FileOpen)
> End Sub
> End Module
>
> --
> Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
> cindy_winegarden@xxxxxxx www.cindywinegarden.com
>
>
> "John A. Bailo" <jabailo@xxxxxxxxxx> wrote in message
> news:43BDA0C2.9090905@xxxxxxxxxxxxx
>> This way, I have a general purpose /placeholder/ for values in methods
>> that I would never use. For example,
>>
>> object FileOpen = (object) @"\Test.doc";
>>
>> Word.Application wordApp = new Word.ApplicationClass();
>> Word.Document oDoc = new Word.DocumentClass();
>>
>> oDoc = wordApp.Documents.Open(ref FileOpen,
>> ref objMissing, ref objMissing,ref objMissing,ref objMissing,
>> ref objMissing, ref objMissing,ref objMissing,ref objMissing,
>> ref objMissing, ref objMissing, ref objMissing, ref objMissing,
>> ref objMissing, ref objMissing);
>
>
.
- References:
- Re: A reason to like Microsoft
- From: Cindy Winegarden
- Re: A reason to like Microsoft
- Prev by Date: Re: How do you POST a file to a secure website using a digital certifi
- Next by Date: Estimates
- Previous by thread: Re: A reason to like Microsoft
- Next by thread: New to ASP.NET 2.0
- Index(es):
Relevant Pages
|