Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to write a table with 1 column and 1 row at word?
Message
From
26/07/1998 21:04:59
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00121293
Message ID:
00121524
Views:
29
>>If I call word in vfp:
>>
>>Public oWord
>>oWord= CreateObject('Word.basic') && I am not using Word 97!
>>oWord.Appmaximize()
>>oWord.TableInsertTable()
>>* it will add a table with 2 rows and 2 columns...
>>
>>Because I need to border the 1 cell with thick border!
>>
>>2nd, how to call the complex word macros?!
>>e.g. formattab at ruler setting.. too long and many parameters.. >_<
>>
>>Thanks
>
>Justok,
>
>The best way I have for learning how to do things with Word or Excel is to go to word open a document turn on the macro recorder and do what I want. Shut off the recorder and look at the macro it created. It does require that you make changes to meet VFP syntax, but it sure beats trying to find answers in the word documentation.



Well, I have done it but some of the syntax is too complex.
for simple highlight action, I can successful change the code!

e.g. Macros in Word:
lineup 1,1

Command in VFP:
oWord.lineup(1,1)

but I donno how to change the following word macros into VFP syntax:
TableInsertTable .ConvertFrom = "", .NumColumns = "1", .NumRows = "1", .InitialColWidth = "auto", .Format = "0", .Apply = "167"

which has many parameter setting!!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform