Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Merge
Message
 
À
11/08/1998 09:23:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00125240
Message ID:
00125607
Vues:
8
>Kevin,
>Unfortunately caught to rem (* If you know ...). I even don't know how could it be done w/o using VFP but pure word. There doesn't seem to be a way other than opening separately, getting filepagesetup (to much work), closing,inserting and again filepagesetup. Well if applicable I would take the easy way and always use them as separate docs. If sending directly to printer it would work, for preview maybe masterdoc, subdoc could be a choice or opening all in its own window. I'm stucked at this point. Good luck.
>Cetin

Actually you gave me an idea! I got the FilePageSetup to work by doing the following:

oWord.FileOpen('C:\wtest\form1.DOC') && Form1 is 8.5x14
oword.endofdocument
oword.insertpagebreak
oword.filepagesetup(,,,,,,,,"11 in") && Set Form2 to be 8.5x11
oword.insertfile('C:\wtest\form2.DOC')
oword.startofdocument

This resulted in form 1 still being 8.5x14 and form 2 being 8.5x11!

Since all the templates I use are in a grid the user can select from, I can add fields for the margins and page height and width (for some reason the fonts pull in correctly). It would be even better, though, if I could just read the margins and page height and width from the individual documents. The Word Developers book says that FilePageSetup can also read values as well as change them and you mentioned it also. Do you know how to do this?

Once again Thanks!
Kevin Scott
kehvn@carolina.rr.com


Hey! It's not my fault. It's some General named Protection!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform