Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5
This is the forum to discuss the Wrox book Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter Kit by David Sussman, Alex Homer; ISBN: 9780764588075
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 1st, 2006, 05:46 AM
Authorized User
 
Join Date: Mar 2006
Location: Pune, Maharashatra, India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating word doc. thru .dot or XML document

Hi,
 I have a business requirement to generate letters in word document format. Please suggest me, Should I use bookmarks method for pouplating the letters or should I use xml schema definations for the same mease generating the letter by creating its own xsd file.
Which one is better and efficient. Pl suggest me.

Thanks,
Manish Sharma


  #2 (permalink)  
Old March 1st, 2006, 06:32 AM
Authorized User
 
Join Date: Jan 2006
Location: , , .
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I suspect an ActiveX control or component of some type is the best answer - see:
http://www.softplatz.com/kw/opening-word-document/ or do a Web search for something like "open Word document". You could create the file as XML using the Word doc schema (I think MS provide this in the SDK), but it would be hard work and error-prone I suspect. But it would probably be the "purest" way for small documents. You could build the doc using the XmlDocument object, access the fileds you need to change using XPath queries or by populating them as you create the document, then save it out to a String to send to the client or write to disk.
  #3 (permalink)  
Old March 1st, 2006, 07:18 AM
Authorized User
 
Join Date: Mar 2006
Location: Pune, Maharashatra, India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your valuable suggestion,
But I am not suppose to create document in our own. I am creating .dot(template file) or xml schema file so that the appropriate data can be populated in that then finally I can get the output in .doc





Similar Threads
Thread Thread Starter Forum Replies Last Post
UnauthorizedAccessException when creating Word doc VerbatimBOT ASP.NET 2.0 Professional 2 November 3rd, 2008 06:56 PM
Creating XML doc ; writing string(xml format) into KamalRaturi XML 5 May 28th, 2008 05:51 AM
Extracting Custom Document Properties for Word Doc jayanth_nadig XSLT 2 October 30th, 2007 03:31 AM
Creating word doc - word behaviour mat41 Classic ASP Professional 2 April 29th, 2007 06:46 PM
Creating word doc in ASP.NET ghari ASP.NET 1.0 and 1.1 Basics 1 December 10th, 2005 04:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.