index > Visual Studio Tools for Office > MS-office and automation unreliability

MS-office and automation unreliability


I work for a company where documents need to be automatically created from Word templates; we produce thousands of these documents each day. In order to do this we have to automate the creation of Word content, and use 3rd party tools to get it to PDF format. We also convert Word docs that we receive from outside parties to PDFs. As you are probably well aware something as seeming simple sounding as this presents great challenges. We have developed some decent services that work remarkably well. But these services have to use Word automation which really negates system reliability, and consequently we have to baby these systems and constantly monitor them, so you could hardly call them industrial strength systems.

Hypercoder

Well, this question really doesn't have anything to do with VSTO technology. OTOH there isn't any forum or newsgroup you can go to ask a question of this nature and get an answer from MS... This issue has been addressed in the current version of Word (2003) and the approach has been extended in the next version, currently in beta (2007). The XML document format allows you to construct Word documents without needing to automate the application. And they can be converted to PDF format using a transform.

I suggest you read the material about the Office XML file formats on the MSDN website. And read Brian Jone's blog (going back to the 2002 archives for the full story).




-- Cindy Meister (Word MVP)
Cindy Meister

Outstanding! So generating word content on the sever realiably is finally going to be a reality, that covers half of my problem. Now regarding PDF conversion, I examined that blog and noted the MS ~ Adobe dispute, so now i'm confused...Is Office 2007 going to support PDF export? If so would it require the automation of the Word GUI on the server (I pray not!!!) or will there be a more simple way? In your post you mention "using a transform" how does that work exactly?

Thanks

Hypercoder
Hypercoder wrote:

Outstanding! So generating word content on the sever realiably is finally going to be a reality, that covers half of my problem. Now regarding PDF conversion, I examined that blog and noted the MS ~ Adobe dispute, so now i'm confused...Is Office 2007 going to support PDF export? If so would it require the automation of the Word GUI on the server (I pray not!!!) or will there be a more simple way? In your post you mention "using a transform" how does that work exactly?

To use the "Save as PDF", you'd have to automate Word, yes.

But there's nothing to stop you from transforming the Word XML to PDF's XML. I believe there are already third-party tools available for this (for the Word 2003 XML, in any case). And there's nothing to stop you from designing your own transform. Here's a third-party tool I saw advertised in a newsgroup, a few months ago, just as an example

"Altsoft Xml2PDF is a .NET based formatting engine for converting various XML-based formats to PDF. It supports XSL-FO, SVG, XHTML, WordML and XML+XSLT as an input and generates PDF as an output."




-- Cindy Meister (Word MVP)
Cindy Meister

This is officially not supported as the application isnt designed to work without interactive use and as such the Excel team and Infopath team are working on providing server services for this type of interaction with the Office 2007 release but without reverting to using 3rd party tools such as Aspose or TxControl the options are very limited albeit these two products are getting better and better.

Regards




Mike Walker MVP - Visual Developer VSTO - Please mark the best replies as Answers !
Mike Walker
reply 5

You can use google to search for other answers

 

More Articles

Need help on adding controls dynamically to Outlook.pages (LateBi...
Project server error
Outlook Add-In Installation works only in developer environment
Prolbems using webservices in the addin in Office
Unable to install VSTO 2005
Word.Docs in VB.Net
Outlook addin AutoUpdate
Is it possible to implement this button?
impossible to install VSTO
Stablish cursor position in Word
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

VSTO and Microsoft Office
Adding drop down list control to an Appo…
Outlook PST file extraction
Does the VSTO package come or not with C…
I think VSTO2005SE (Cypress) ... Bug??
Excel 2003 -The XML Maps in this workboo…
COM Addin, in frame work 1.1 , C# and o…
How to correct use of Pages object (Micr…
ServerDocument persistance object error
Picklist of public folders
Shared Add-Ins
How to deploy a VB .Net Shared Add-in
possibly code group error but not sure
VSTO2005 Beta2 : Caching Data with Serve…
VSTO - Couple Questions - Macros & S…

Hot Articles

Made a mistake...unable to uninstall!
How can I standardize SIGNATURES in OUTL…
Switching Documents & Action Pane
Soap Context missing in custom SharePoin…
Moving Outlook Add-in to VSTO 2005?
Excel copy/paste
VSTO 2005 Bookmark visibility
VSTO 2005 Won't Install on Vista build 5…
Possible Bug in Word 2000/XP add-in impl…
a problem in setting a custom color over…
Safe to obfuscate a VSTO solution?
Unable to uninstall
Word document Page count, word count, pa…
get an idispatch of active document
Deactivating cursor in excel ?

Recommend Articles

Excel file very slow to save
Does the VSTO package come or not with C…
MailItem Properties
How to hide print dialog while printing …
several people sign the same word docume…
Office Document Customization is not ava…
MS Access opening exclusivly
ExcelSheet deployment
Outlook Add-in Deployment
Populating a Word Document
Picklist of public folders
VSTO for Excel
Loop through all host control
Excel: show XML data horizontally
Problem while adding xml nodes to a word…