Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a document based on some template
Message
From
12/02/2002 17:22:43
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00619135
Message ID:
00619188
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Hilmar,
>
>Do you have something like this, so you can send me an example? I did part of what you suggested, but I'm not sure, what should I do for this table... to save in a template...
>
>Thanks a lot in advance.

No, I don't have any sample. I would simply create the table (in the template) with 1 row and 3 columns (or however many you need), and make each column the correct width.

Then, when opening the document with automation, if you need 6 rows of variable information, run a loop to insert a row (except on the first iteration), and insert data into the appropriate columns. The standard key to go to the next cell is TAB. In interactive mode, TAB will a) go to the next column, b) if you are in the last column, add a row and select the first column. If you save macros, you will probably get two different results for both cases.

And now, I am really logging off. See you tomorrow, at 11:00 UTC.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform