Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incorrect Page Size for Embedded Word Docs
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01420243
Message ID:
01420676
Views:
26
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.

Where is the Object Property documented?


>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform