Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word LayoutMode doesn't work
Message
 
 
To
26/05/2008 16:28:54
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01319491
Message ID:
01319564
Views:
12
You're welcome.

>Thinks Sergey... is the solution.
>
>>
>>...
>>loDoc = loWord.Documents.Add()
>>loDoc.ActiveWindow.View.Type =  3	&& wdPrintView
>>...
>>
>>>
>>>In Word Application, in View Menu, the Normal option are selected.
>>>I need to change this selection to "Print Layout".
>>>
>>>But this instructions don't works.
>>>
>>>
>>>
>>>loWord = CreateObject("Word.Application")
>>>loWord.Documents.Add()
>>>loWord.Visible = .T.
>>>*loWord.Documents(1).PageSetup.LayoutMode = 0  && wdLayoutModeDefault
>>>loWord.Documents(1).PageSetup.LayoutMode = 1  && wdLayoutModeGrid
>>>*loWord.Documents(1).PageSetup.LayoutMode = 2  && wdLayoutModeLineGrid
>>>*loWord.Documents(1).PageSetup.LayoutMode = 3  && wdLayoutModeGenko
>>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform