Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
|
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS 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 November 30th, 2005, 08:37 AM
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default XMLHttp ... save it as Excel file ..

I am using XmlHttp object in my DTS script. Lets assume that I am hitting a URL and capturing the html source of that site to a variable. [Till this part I have done]. I need to know how to save the responseText as an excel worksheet?

For testing it easily I am testing using a simple HTML page with vbscript (which is given below)

Source code:

Function ScreenScrapping()
  URL == "UR site URL comes here"
  objXmlHttp.Open "POST", url, False
  objXmlHttp.onreadystatechange = getref("HandleStateChange")
  objXmlHttp.Send
End Function

Function HandleStateChange()
  If (ObjXmlHttp.readyState = 4) Then
    msgbox "Screenscrapping completed .."
    divShowContent.innerHtml = objXmlHttp.responseText
  End If
End Function

On click of a button i would call the method ScreenScrapping().

Btw, if at all I am posting this in a wrong area .. pls do let me know.

Best Regards
Vadivel

http://vadivel.blogspot.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Save a file in CSV format thru Excel VBA macro roli2712 Excel VBA 1 July 11th, 2007 03:05 AM
Save Excel file. dpkbahuguna ASP.NET 2.0 Basics 1 March 10th, 2007 07:47 PM
Excel Workbook Save: Trap Temp file creation Shasur Excel VBA 0 July 3rd, 2006 10:07 PM
Save PDF file as text file in VB.Net kvenkatu Classic ASP Basics 0 April 7th, 2006 01:09 PM
setTimeout, xmlHTTP, file posts wax ASP.NET 1.0 and 1.1 Professional 4 January 11th, 2006 09:53 AM





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