Link to home
Start Free TrialLog in
Avatar of colly92002
colly92002Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Server side printing of HTML generated by ASP at scheduled time

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.
ASKER CERTIFIED SOLUTION
Avatar of suramsureshbabu
suramsureshbabu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of colly92002

ASKER

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.
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!