0
I plan to create a survey that is taken at an on-line web page and that stores the results into an Access database. The answers are primarily drop-down, numeric or strings. The results are meant to populate a 30 page template document, thus so that I get a Office Word or Adobe PDF document back?
The survey --> backend --> document is basically a glorified mail merge. The limitations of a mail merge (being restricted to one data source, no objects) leave the project wanting in these two main areas:
The engine would need to deal with having a variable carrying a value of
[x|y|z]
, and to have the engine render different, but pre-defined paragraphs.In some cases there are branching survey variables where
if A = 1 -> ask B,C,D
(include more text for each in document);if A = 0 -> jump to E
(omit text forB,C,D
in document)The engine would need to know to not render a paragraph in such a way that it is cut off between pages, render headers/footers, etc (less necessary, as can be added by hand)
The questions that I have are:
What is involved in creating some kind of engine that can do this?
How do I better explain what I am looking for, in terms of an engine and a process?
Is there a particular language or piece of software that excels at this type of purpose?
Welcome to Super User! Your question is overly broad and could risk to be closed. We have the expectation from people to spend effort before asking a question because you would else require too much useless effort from us. The applications you mentioned are meant to view and edit documents and do some magic on it, but that's where it ends. While the magic is simple if you send a document to someone containing scripts and let him fill it in, the magic is hard do to this in a web & database centralized manner. It's near impossible...
– Tamara Wijsman – 2011-04-14T00:52:35.100So, you are left with the two options provided to you. Option one: As mentioned by Joe Internet, you either develop a web-based engine in a web-supporting language that: Takes your Questions, Paragraphs and Logic in an Excel file as input; processes the User Input; and outputs it to the Database. Then you develop a desktop-based application/script that requests the data from the Database and spits it out into your Word Template Document. Option 2: Use an existing survey like Google Docs as mentioned by Journeyman Geek. – Tamara Wijsman – 2011-04-14T00:56:26.143
1@Tom Thanks for the edit. This is a broad question, but I don't think it's overly broad insofar as, as you said, it has a very limited set of possible solutions. Also, it's not exactly vague; the criteria seem specific to me, if I'm wrong I'd love to clear up any loose ends. – mfg – 2011-04-14T02:23:01.637