Solved

Server side printing of HTML generated by ASP at scheduled time

Posted on 2004-08-10
3
137 Views
Last Modified: 2010-05-18
Hello.  System is WIn2000 server, IIS 5, classic ASP, VBScript 5.6

I am trying to set up a system that will schedule an ASP script to run at a certain time of the day on the server and print of a report.

The reports is done, and the ASP script can be told to save a copy of the report to the servers file system, should I need to use VB or WSH to print it.

The report is HTML, so I want to parse the report preferably using IEXPLORE.exe.  I don't want any user interaction or dialogue boxes.

I can use the AT command to schedule something.

SO I am looking at possibly using a WSH script to run the ASP file to generate a HTML file, and then use IEXPLORE.exe to parse this file and send it to a printer.

Is this possible ?  I have got various constituent parts to this working but tieing it together is proving difficult.

Any help appreciated.
0
Comment
Question by:colly92002
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
suramsureshbabu earned 125 total points
Comment Utility
0
 
LVL 15

Author Comment

by:colly92002
Comment Utility
Thanks for that  suramsureshbabu, the third method described in your link looks very promising indeed.
 
I shall get back to you when I have tried it.
0
 
LVL 15

Author Comment

by:colly92002
Comment Utility
I have ended up writing a VB program to render the output of an ASP page and send it to the default printer.

The only fault with this is that to change the printer I have to temporarily change the default printer for that job.  This is OK for the moment though.


This can easily be scheduled using standrd Windows 200 scheduler.

Points for the link because this helped me decide what I needed to do.

Thanks surmsuresgbabu!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
XML problem with Internet Explorer 7 29
css help 3 92
ASCII Non-Printable characters/codes and their HTML equivalents 6 94
CSS HELP 6 74
It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to dynamically set the form action using jQuery.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now