Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Seeking Comments & Feedback on Word/PDF project

by jedikaiti (Friar)
on Mar 17, 2010 at 20:04 UTC ( #829263=note: print w/ replies, xml ) Need Help??


in reply to Re: Seeking Comments & Feedback on Word/PDF project
in thread Seeking Comments & Feedback on Word/PDF project

When I talk about using Word, I mean using Template Toolkit to generate a few XML files that get zipped into a Word .docx file.

If I kept LaTeX, I would still have to fight it to make it look like the existing Word template (the existing scripts use an outdated format).

I also have no choice in keeping LaTeX - nobody on my team wants anything to do with it, and being the temp, even if I did want it, I couldn't keep it.

Kaiti


Comment on Re^2: Seeking Comments & Feedback on Word/PDF project
Re^3: Seeking Comments & Feedback on Word/PDF project
by Marshall (Prior) on Mar 18, 2010 at 00:24 UTC
    It appears these folks like Word, have a standard template that will set margins, and paragraph formats, fonts and all that stuff. I would be thinking along the lines of using Win32::OLE and control WinWord from Perl to insert your data into their template. The result will be a standard WinWord doc that you can direct Word to print as .pdf, XML or whatever. Trying to create a Winword doc yourself is a nightmare as will creating a .pdf that will have same look as their document format.

    I don't know complex this data/project is, but in the past I had one project where I wrote a Word macro that imported my data file, whopped on it and produced a report. The pre-processing was just enough for this Word macro to do its job. So it wasn't necessary for me to write Perl to control Word, just make a file simple enough that my Word Macro could use. Just an idea to consider...

      I'll have to look into that, thanks! That's a really good idea, and one that hadn't even occurred to me.

      Kaiti

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://829263]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2014-12-25 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls