Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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
 
Old July 7th, 2004, 01:33 PM
Authorized User
 
Join Date: Jun 2003
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default Show DataSet content in a WORD

There is a way to show the result of a sql query (sql that return a DATASET) direct in the Microsoft Word???

How can i do???

Thanks....

 
Old July 7th, 2004, 05:15 PM
tnd tnd is offline
Authorized User
 
Join Date: Jun 2004
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can export the DataSet to XML file and open it in Word. The method to call is WriteXML or something. I don't remember the exact syntax off hand. The result of course is in XML format. If you are looking for something more like an Excel format, you may want to write it out as CSV file. There is no WriteCSV method btw. Also you may want to override ToString method if you need any format that's not XML. This would be the way I would do it.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy txtBox content to Word zjankov Access VBA 0 August 20th, 2007 07:04 AM
How to read MS Word content from Classic ASP AcidBurn Classic ASP Professional 1 May 25th, 2007 06:51 AM
read content of MS Word file using PHP gokulnathan Pro PHP 0 November 25th, 2004 01:07 AM
read content of MS Word file using PHP gokulnathan PHP How-To 0 November 22nd, 2004 08:02 AM
How show Word Document in One of the Frames page Umashankar R VB.NET 2002/2003 Basics 1 September 12th, 2004 09:36 PM





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