Re: A reason to like Microsoft

Tech-Archive recommends: Fix windows errors by optimizing your registry



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);
>
>


.



Relevant Pages

  • Word 2003 KeyBindings Callback Issue to .NET Office Addin.
    ... which when called will then execute ... Word.WdKey.wdKeyAlt, ref objArg2, ref objMissing, ref objMissing); ... Public Sub SetupShortcut() ... Dim cmdBarControl As CommandBarControl ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: A reason to like Microsoft
    ... Sub Main ... Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP ... > Word.Document oDoc = new Word.DocumentClass; ... > ref objMissing, ref objMissing,ref objMissing,ref objMissing, ...
    (microsoft.public.dotnet.general)