PC Review


Reply
Thread Tools Rate Thread

Building a Word 2003 Document with XML

 
 
FinallyInSeattle
Guest
Posts: n/a
 
      8th Mar 2005
I have an old product that generates a Word document using Word
Automation (tables, pictures, etc). The execution speed is quite slow
and I'm finally at the point where I can tell my customers that they
HAVE to have Office 2003.

That brings me to the potential of using .NET and building a Word
document using Word XML instead. The document won't have a specific
format - this product randomly produces a test by writing out question
groups, questions and answer choices. Some groups or questions may or
may not contain images. The answer area contains hidden text that
indicates the correct answer so that printing with hidden text turned
on produces the answer key.

In addition, the user enters the questions and answers in a rich text
box. So, formatting information such as font, color, bold, etc. is
embedded in a text string that I pull out of a
database.

Is doing something like this possible? Most of the examples I see
address filling in specific values in a template and not just
generating an entire document from scratch.

Also, can anyone recommend a good reference of the subject?


Thanks in advance!

 
Reply With Quote
 
 
 
 
=?Utf-8?B?aGVyYmVydA==?=
Guest
Posts: n/a
 
      9th Mar 2005
I've designed several computer-based questionnaires / test systems the way
you propose. Both with Windows Forms and Web Forms UI.

Test Generator creates questionnaire in XML format. This allows Windows
Forms, Web Forms and plain vanilla paper UI.
Results are stored in MS-SQL server. Reporting uses SQL Reporting Services.

You can create the XML file
a) with .NET XML classes (this is what I did up to now) or
b) wait for Visual Tools for Office 2003 in VS.2005 (I have no experience
with it) as this is a step towards what I call "server-based Office
automation".

I have not yet tested embedding Flash animations in XML files, it should be
possible. The Flash player control for .NET Windows Forms works ok.

Why do you bind your XML file to MS-Word as the target software to run the
tests?
Word doesn't give you enough control out of the box when running tests
(verify signature and decrypting the XML, test time limitation, ...)

I would design the XML file without Word in mind and offer Word as one of
the many user interface options. Think PDA and mobile network limitations!

Yet using Visual Tools for Office should cut your development time when
using Word-specific features (compared to manually coding using XmlWriter or
XmlSerializer...)

There is multimedia training material available for Visual Tools for Office
on MSDN -(wait for the 2005 updates if you have the time).

pls keep us updated about your design decisions!
best regards herbert



 
Reply With Quote
 
FinallyInSeattle
Guest
Posts: n/a
 
      12th Mar 2005
The software product generates test (in Word document form), it doesn't
have anything to do with administering them. The requirements for the
"editor" portion are to provide forms that allow the user to specify
questions and answers with rich text formatting and optional diagrams
(along with many other attributes such as group text & diagrams). The
requirements for the "test generator" are to take these questions and
produce a final test as a Word document (there's many different options
on how to generate the tests).

The technical question that I have is if I'm producing this kind of
"free-form" document with formatting embedded in rich text, is
WordProcessingML going to be of any use to me? I've gone through all
the articles that I can find on Word's XML features, but they're all
geared towards producing "report-style" documents.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Are Building Blocks embedded in the document (Word 2007) abc Microsoft Word Document Management 1 18th Mar 2009 08:55 PM
Automating document building using building blocks and content con =?Utf-8?B?QmlnIERhdmU=?= Microsoft Word Document Management 1 12th Jun 2007 07:01 PM
Building Excel File in Word Document DJH Microsoft Word New Users 3 30th Apr 2005 02:21 PM
Document edited with MS word-2003; MS-word crashes if that document is opened with older MS word versions qazmlp Microsoft Word Document Management 2 27th Apr 2005 07:11 AM
Building a Word 2003 Document with XML FinallyInSeattle Microsoft Dot NET Framework Forms 2 8th Mar 2005 06:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:53 AM.