Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Incorrect Page Size for Embedded Word Docs
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01420243
Message ID:
01420683
Vues:
38
Hi Marshal,

>Thanks Martina,
>
>This works..(Letter Size PaperSize = 2, not 7)...Only problem is that the Letter Size does not store in the General Field and everytime you Open the Word Doc the FPT file increases in size.

No, pagesetup are stored in general field alwyas...
Try append any doc do general field across dialog for inserting OLE object to general field and check "Show as Icon".


>
>Where is the Object Property documented?

Object Property in help

MartinaJ

>
>
>>Hi Marshal,
>>
>>OK, before it's problem...
>>
>>
>>thisform.ole1.DoVerb(-2)
>>thisform.ole1.object.windows(1).visible=.F.
>>thisform.ole1.object.pageSetup.PaperSize=7
>>thisform.ole1.object.pageSetup.SetAsTemplateDefault()
>>thisform.ole1.object.windows(1).visible=.T.
>>
>>
>>MartinaJ
>>
>>>Hi Martina,
>>>
>>>How do I set the Pagesize before showing the Word Doc?
>>>
>>>
>>>>Word document save as OLE in table get page size by OLE Bound Container size.
>>>>
>>>>If you want still use this way, you must save word document across "Insert Object Dialog Box" with option [x]"Display As Icon" or before showing word doc set original pagesize...
>>>>
>>>>MartinaJ
>>>>
>>>>>A Foxpro for Windows 2.6a Application which contains General Field Embedded Word Docs is being updated to VFP 9.
>>>>>
>>>>>In the older application there is code which opens the Embedded Word Doc via @SAY 0, 0 {General Field} Verb = "Edit". The Word Doc opens correctly.
>>>>>
>>>>>In VFP9, I'm using a form with and OleBoundControl and opening the Embedded Word Doc with a DoVerb(-2) command. Notice that the Word Document PageSize seems to depend on the Size of the OleBoundControl. Attempting to Open the Embedded Word Doc with the old @SAY syntax opens the Word Doc with PageSize set to "Custom" instead of LetterSize (8.5 x 11)
>>>>>
>>>>>Suspect this is an OLE1 (used by FPW) vs. OLE2 (used by VFP) issue.
>>>>>
>>>>>Any suggestions on how to deal with this problem?
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform