Results 1 to 7 of 7

Thread: trying to work out a REALLY easy way to batch create word reports

  1. #1
    daft ideas inc. scottyman's Avatar
    Join Date
    Jul 2003
    Location
    Charming and Exotic Bracknell
    Posts
    1,576
    Thanks
    2
    Thanked
    3 times in 3 posts

    trying to work out a REALLY easy way to batch create word reports

    hey guys-
    I've created a site to do performance reviews of staff - and am getting loads of lovely CSV files for each staff member - however - the nice easy way of generating reports based purely on numbers is out the window, and need to create Word docs to show lovely charts instead (management requirement)
    I'm trying to work out a fast, easy way of batching these reports, and have modified the data so I'm getting new "valid" responses for each question.
    i.e. grade staffer 1-5 for performance, or select 6 for can't comment (and stores N/A so it won't stuff up the averages)
    70-odd questions, with a dozen or so responses from each question - can generate the charts fine, but need a nice elegant way to batch process this into cute word docs

  2. #2
    sneaks quietly away. schmunk's Avatar
    Join Date
    May 2004
    Location
    Wiki Wiki Wild West side... of Sussex
    Posts
    4,424
    Thanks
    40
    Thanked
    163 times in 121 posts
    • schmunk's system
      • Motherboard:
      • Abit NF7-S v2.0
      • CPU:
      • AMD Athlon-M 2500+
      • Memory:
      • 1GB of Corsair BH-5 and 512MB of something else
      • Storage:
      • 160GB Seagate Barracuda
      • Graphics card(s):
      • ATI Radeon X800Pro, flashed to XT
      • PSU:
      • Hiper Type-M ~400W
      • Case:
      • Antec cheapy
      • Monitor(s):
      • AG Neovo F19 LCD
      • Internet:
      • Virgin Media 4MB/s
    Mail Merge?

  3. #3
    daft ideas inc. scottyman's Avatar
    Join Date
    Jul 2003
    Location
    Charming and Exotic Bracknell
    Posts
    1,576
    Thanks
    2
    Thanked
    3 times in 3 posts
    no, unfortunately won't play nicely - not to worry - will see how complicated I can make a spreadsheet to autogen it - then hopefully just work out someway to get it out as a word doc

  4. #4
    sneaks quietly away. schmunk's Avatar
    Join Date
    May 2004
    Location
    Wiki Wiki Wild West side... of Sussex
    Posts
    4,424
    Thanks
    40
    Thanked
    163 times in 121 posts
    • schmunk's system
      • Motherboard:
      • Abit NF7-S v2.0
      • CPU:
      • AMD Athlon-M 2500+
      • Memory:
      • 1GB of Corsair BH-5 and 512MB of something else
      • Storage:
      • 160GB Seagate Barracuda
      • Graphics card(s):
      • ATI Radeon X800Pro, flashed to XT
      • PSU:
      • Hiper Type-M ~400W
      • Case:
      • Antec cheapy
      • Monitor(s):
      • AG Neovo F19 LCD
      • Internet:
      • Virgin Media 4MB/s
    Quote Originally Posted by scottyman
    hey guys-
    I've created a site to do performance reviews of staff - and am getting loads of lovely CSV files for each staff member - however - the nice easy way of generating reports based purely on numbers is out the window, and need to create Word docs to show lovely charts instead (management requirement)
    I'm trying to work out a fast, easy way of batching these reports, and have modified the data so I'm getting new "valid" responses for each question.
    i.e. grade staffer 1-5 for performance, or select 6 for can't comment (and stores N/A so it won't stuff up the averages)
    70-odd questions, with a dozen or so responses from each question - can generate the charts fine, but need a nice elegant way to batch process this into cute word docs
    Having looked back through this - 70-odd questions? Do you work for the Inquisition?

  5. #5
    IRN-BRU(tm)
    Join Date
    Aug 2004
    Location
    Milton Keynes
    Posts
    484
    Thanks
    8
    Thanked
    9 times in 7 posts
    look in to using VBA macros - you should be able to interchange your data fairly easily without too much fanying around

  6. #6
    daft ideas inc. scottyman's Avatar
    Join Date
    Jul 2003
    Location
    Charming and Exotic Bracknell
    Posts
    1,576
    Thanks
    2
    Thanked
    3 times in 3 posts
    was thinking about that - might have a fiddle later on.
    if you mean am i working for the (dramatic pythonesque pause) "Spanish Inquisition" - then no - merely an HR company who know what they like, and like to have pretty documents - rather than graphs and charts generated automatically in PHP (which frankly is much easier - considering you're only dealing with arrays) but - getting word documents out of PHP appears harder! and frankly - for something that they'll be running themselves - it's really not worth the tech support time!

  7. #7
    IRN-BRU(tm)
    Join Date
    Aug 2004
    Location
    Milton Keynes
    Posts
    484
    Thanks
    8
    Thanked
    9 times in 7 posts
    seriously VBA - you could have a word document named say "Make reports for dumb people.doc" which when opened, runs a macro that reads your output file and generates lots of word docs using similar (but not that similar) code to
    exl = createObject("Excel.appliction")
    exl.importFile("CSV output.dat", msoFormatCommaDelimited)
    mygraph = exl.createGraph(A, staffoffset, AE, recordlength)
    mygraph.makepretty
    mydoc = createObject("Word.Document")
    mydoc.addShape(mygraph)
    mydoc.savefileas("monkeys" + staffname + date)
    mydoc.print

    look in to the Application class, the createObject function, Collections (the structure of the docs is based on this), and the Shape ob and Shapes collection in word. Good luck

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. easy way to work out duff harddrive?
    By streetster in forum PC Hardware and Components
    Replies: 12
    Last Post: 05-01-2004, 09:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •