Solved

Server side printing of HTML generated by ASP at scheduled time

Posted on 2004-08-10
3
138 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
ID: 11764728
0
 
LVL 15

Author Comment

by:colly92002
ID: 11767394
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
ID: 11844729
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
can i write a webserver using http listener for this? 15 61
PHP parse error 7 57
How to analyze web traffic logs 10 101
site launch date and last modified date 3 83
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

867 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

13 Experts available now in Live!

Get 1:1 Help Now