Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS WORD, show all marks
Message
De
25/07/2001 19:15:36
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00535423
Message ID:
00535442
Vues:
28
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform