How to set LineNumbering in Word Document with PERL.

Discussion in 'Perl' started by Achille, Jul 5, 2004.

  1. Achille

    Achille Guest

    Hi,
    I must insert Line Numbering (line Numbers) in word Document with script perl.

    The source code of the macro is:

    With ActiveDocument.PageSetup
    With .LineNumbering
    .Active = True
    .StartingNumber = 1
    .CountBy = 1
    .RestartMode = wdRestartPage
    .DistanceFromText = wdAutoPosition
    End With
    .Orientation = wdOrientPortrait
    .TopMargin = MillimetersToPoints(25.4)
    .BottomMargin = MillimetersToPoints(25.4)
    .LeftMargin = MillimetersToPoints(31.7)
    .RightMargin = MillimetersToPoints(31.7)
    .Gutter = MillimetersToPoints(0)
    .HeaderDistance = MillimetersToPoints(12.7)
    .FooterDistance = MillimetersToPoints(12.7)
    .PageWidth = MillimetersToPoints(210)
    .PageHeight = MillimetersToPoints(297)
    .FirstPageTray = wdPrinterDefaultBin
    .OtherPagesTray = wdPrinterDefaultBin
    .SectionStart = wdSectionNewPage
    .OddAndEvenPagesHeaderFooter = False
    .DifferentFirstPageHeaderFooter = False
    .VerticalAlignment = wdAlignVerticalTop
    .SuppressEndnotes = False
    .MirrorMargins = False
    .TwoPagesOnOne = False
    .BookFoldPrinting = False
    .BookFoldRevPrinting = False
    .BookFoldPrintingSheets = 1
    .GutterPos = wdGutterPosLeft
    End With

    Do you have any Idea?
    Thanks!
    Bye bye
    Achille - from Italy
    Achille, Jul 5, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. srk
    Replies:
    0
    Views:
    636
  2. srk
    Replies:
    0
    Views:
    606
  3. Michael G. Schneider

    Modifying a Word document without using Word Automation

    Michael G. Schneider, Dec 15, 2003, in forum: ASP General
    Replies:
    5
    Views:
    281
    el.c. - myLittleTools.net
    Dec 16, 2003
  4. Tony
    Replies:
    2
    Views:
    384
  5. Chakravarthy Bollapalli \(IFIN SCC AI\)

    searching a "text" in word document using perl

    Chakravarthy Bollapalli \(IFIN SCC AI\), Jan 28, 2005, in forum: Perl Misc
    Replies:
    0
    Views:
    84
    Chakravarthy Bollapalli \(IFIN SCC AI\)
    Jan 28, 2005
Loading...

Share This Page