Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS WORD, show all marks
Message
From
25/07/2001 19:15:36
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00535423
Message ID:
00535442
Views:
29
>How would I VFP open an ASCII file as Read only, using Word, and have the option of 'formatting marks: All'. I want the user to be able to see every space and carriage return.
>
>TIA,
>Jim

Jim,

Go into Word. Start recording a macro. Do the stuff you want to see. Stop the macro. Examine the code in the VBA Editor. You can use that code as a basis for what you need to do in VFP.

When I did that I got:
 Application.DisplayStatusBar = True
    Application.ShowWindowsInTaskbar = True
    Application.ShowStartupDialog = True
    With ActiveWindow
        .DisplayHorizontalScrollBar = True
        .DisplayVerticalScrollBar = True
        .DisplayLeftScrollBar = False
        .StyleAreaWidth = InchesToPoints(0)
        .DisplayRightRuler = False
        .DisplayScreenTips = True
        With .View
            .ShowAnimation = True
            .Draft = False
            .WrapToWindow = False
            .ShowPicturePlaceHolders = False
            .ShowFieldCodes = False
            .ShowBookmarks = False
            .FieldShading = wdFieldShadingWhenSelected
            .ShowTabs = False
            .ShowSpaces = False
            .ShowParagraphs = False
            .ShowHyphens = False
            .ShowHiddenText = False
            .ShowAll = True
            .ShowDrawings = True
            .ShowObjectAnchors = False
            .ShowTextBoundaries = False
            .ShowHighlight = True
            .DisplayPageBoundaries = False
            .DisplaySmartTags = True
        End With
    End With
Previous
Reply
Map
View

Click here to load this message in the networking platform