Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 1st, 2006, 04: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, 05: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, 06: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



 


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
UnauthorizedAccessException when creating Word doc VerbatimBOT ASP.NET 2.0 Professional 2 November 3rd, 2008 05: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 03:01 AM



All times are GMT -4. The time now is 07:27 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.