Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00606798
Message ID:
00606821
Vues:
37
>I haven't made the move to vfp 7.0 figured I'd wait for the bugs to get worked out. Now that SP1 is out, maybe I'll give it a try.
>
>>>I'm doing some automation of word 2000 from foxpro. Two simple things I can't figure out
>>>
>>>How to insert a date with a particular format. This is what I get from the macro editor.
>>>
>>>Selection.InsertDateTime DateTimeFormat:="MMMM d, yyyy", InsertAsField:= _
>>>True, DateLanguage:=wdEnglishUS, CalendarType:=wdCalendarWestern, _ InsertAsFullWidth:=False
>>>
>>>InsertDateTime works great, I just can't get the format.
>>>
>>>Secondly, how to I move the cursor to the top of the document? I'm having problems with goto.
>>>
>>>Thanks!
>>
>>Have you tried to use VFP7 and intellisense on the word object to give you a clue as to what the parameter might be that Word wants?


I tried .InsertDateTime('MM/DD/YYYY') and it gave me 01/18/2002
I tried .InsertDateTime('MMMM d, yyyy')and it gave me January 18, 2002
I tried .InsertDateTime('DD/MM/YY') and it gave me 18/01/02

HTH
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform