Jump to content

Search the Community

Showing results for tags 'MS Word table next line'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. It's so simple code, but I'm stuck! How can I enter next line in the word table? with "@CRLF" it creates new row, but not next line in the table I'm using MS Word 2013 (32bit) #include <Word.au3> #include <WordConstants.au3> Local $EQAddress = FileRead(@ScriptDir&"\Address.txt") Local $Rivona = FileRead(@ScriptDir&"\Rivona.txt") ; Create application object Local $oWord = _Word_Create() If @error Then Exit MsgBox(0,"ERROR","Error creating a new Word application object." & @CRLF & "@error = " & @error & ", @extended = " & @extended) ; Open the test document Local $oDoc = _Word_DocOpen($oWord, @ScriptDir & "\Extras\Test.doc", Default, Default, True) If @error Then Exit MsgBox(0,"ERROR","Error opening '.\Extras\Test.doc'." & @CRLF & "@error = " & @error & ", @extended = " & @extended) ; ***************************************************************************** ; Write the content of a 0-based two dimensional array to a Word table ; ***************************************************************************** Local $asArray[2][2] = [[$EQAddress,$Rivona],["",""]] Local $oRange = _Word_DocRangeSet($oDoc, -2) _Word_DocTableWrite($oRange, $asArray, 0) If @error Then Exit MsgBox(0,"","Error creating the table." & @CRLF & "@error = " & @error & ", @extended = " & @extended) ;~ MsgBox(0, "", "Table successfully added to the end of the document.") Address.txt Rivona.txt
×
×
  • Create New...