Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ole & Word newbie problem
Message
 
To
18/05/1998 03:45:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00100028
Message ID:
00100272
Views:
38
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform