Jump to content

Program editing word documents and saving them to a new folder. Any ideas on how?

- - - - -

  • Please log in to reply
5 replies to this topic

#1
sindre82

sindre82

    Newbie

  • Members
  • Pip
  • 3 posts
Hi,

I have gotten a project from my supervisor which im struggeling on. If anyone have any ideas i would love to hear them.

This is what i am supose to do; I am suposed to write a script which asks the user for a project number, opens and edits the project numbers in a bunch of different word documents in windows xp, then saves them to a given folder containing this project number. This should all happen in windows.

First of all, does anyone know which programming language that would be prefered to get this done in Windows xp? I have done some python programming before, and also a bit java.. Second, does anyone have any ideas on how this could be done?

I am thankful for all the help i can get.

Sinjan

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
The Java POI library can probably let you do the work on the Word documents you need done. Saving/copying them would be fairly easy in most languages.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
sindre82

sindre82

    Newbie

  • Members
  • Pip
  • 3 posts
Thank you, but i started programming it in python. I am a bit more familiar with python programming. Also, i have been able to program so that it creates the folders and and sends different documents to different folders. I am wondering if anyone is fimiliar with a python function or module that is able to read and edit MS Word 97 - 2003 .doc files?

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
python ms word automation - Google Search
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
ReignInChaos

ReignInChaos

    Learning Programmer

  • Members
  • PipPipPip
  • 46 posts
Are the word documents you need to parse Microsoft Word Documents?

#6
sindre82

sindre82

    Newbie

  • Members
  • Pip
  • 3 posts
Yes.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users