Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ole & Word newbie problem
Message
 
À
18/05/1998 03:45:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00100028
Message ID:
00100272
Vues:
37
oWordDocument=createobject("word.application") && Create word object
>with oWordDocument.wordbasic
> .appshow
> endwith
snip...

Thanks Cetin, I've had a chance to play with this. The only bit I couldn't get but can see why I'd want it is the "with..."

I have
objWDdoc.Font(gaFontArray(nCount))
objWDdoc.FontSize(12)
objWDdoc.Insert(ALLTRIM(gaFontArray(nCount)))
objWDdoc.NextCell
and I think this would be tidier (and faster) if put into the one statement.

Additionally - I create all my ole in macro's and then take into fox. I need to insert a table, in my case the default was fine so I could forget the parameters but how would you present this. I tried a with...endwith but it didn't seem to work, might have been my syntax.

TableInsertTable .NumColumns = "2" .NumRows = "1" .InitialColWidth = "Auto" .Format = "0" .Apply = "167"

Thanks - Sarah
PS adored your country when I visited a few years back, just did a triangle in the west: Istanbul, Gallipoli, Dalaman, Cappadocia (spelling?!) etc. Amazing place.
Sarah King
pcpropertymanager.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform