Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 2nd, 2004, 08:52 AM
Registered User
 
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to jewbask Send a message via MSN to jewbask Send a message via Yahoo to jewbask
Default how can I export a report to HTML ?

Guys and girls,

  I have a daily report that I create retrieving dynamically the data from a SQL database. But now I want to show the non-registered users the same report, and for obviously I don't want them to connect to the DB since too many users connected could affet its performance. So, Is there a way to export my data so I can, I mean, "click" and create the daily report so the non-registered users can see the static report

thank you in advance,
Carlos:D

Carlos Manuel Colina
Web Developer
Multipuerta, CA
http://www.multipuerta.net
[email protected]
phone: +58 212 2066314
SMS/mobile: +58 412 6139001
 
Old July 3rd, 2004, 12:20 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

SQLMail is the solution for you.

You need to have Microsoft exchange installed on server. It must have users also defined in it. Then SQL mail can be configured through enterprise manager of SQL 2000. Here is the stored procedure for you.

xp_sendmail @recipients='[email protected]', @subject='test', @message='test report from SQL mail', @query='select * from tbl_test_table', @dbuse='sa', @width=250

Alternatively, you can go to administer SQL Server option from SQL server.
Select "Publish to the web".
Choose the table / view.
Follow the instructions in the wizard.
You can also schedule publication (once in every week or so).

Hope that helps

Madhu
 
Old July 3rd, 2004, 06:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Carlos,

You can check your SQL Books Online for sp_makewebtask

This generates HTML output file for a given query, which you can run as a scheduled job everyday(once), and that can be provided as link to the non-registered users.

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Export HTML to Excel dbellavi C# 2005 3 December 19th, 2007 08:48 AM
Export Recordset as an HTML file EMB PHP How-To 0 August 16th, 2007 01:28 PM
Pdf to html conversion and export the checked para lohith ASP.NET 2.0 Professional 0 July 3rd, 2007 12:09 AM
Export HTML graph to Excel Jorge Classic ASP Basics 8 February 10th, 2005 01:54 PM
Pdf Crystal Report export Kristoff Crystal Reports 1 October 21st, 2003 09:38 AM





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