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

Click here to load this message in the networking platform