in reply to Number of Print Pages

Hi
I also noticed that when I choose 'print to file' option it prints to a *.prn file which has 'number of pages' at the bottom of the file.

How I can simulate in command line ?

thanks,
Artist

Replies are listed 'Best First'.
(wil) Re: Number of Print Pages
by wil (Priest) on May 01, 2002 at 09:06 UTC
    I am unaware of a way this can be done easily in Perl. Maybe there is something available in Javascript, or a Microsoft scripting language, however. Have you tried looking at the Microsoft Developer Network for more information on this?

    If that fails, then maybe you should snoop around or post a message to the newsgroup microsoft.public.internetexplorer.scripting. Good luck!

    - wil
Re: Re: Number of Print Pages
by Molt (Chaplain) on May 01, 2002 at 14:49 UTC

    Not certain how to do this, but may be able to give you a few hints. Internet Explorer has, I believe, got an OLE interface which can be linked with any scripting language- including Perl. Assuming this OLE interface allows you to do the 'Print to file' command scripted then you should be able to grab the output and throw a basic regexp at it to pull out the page count.

    I have had a quick look at the MS website, but couldn't find the documentation on IE's OLE interface. I suspect you should be able to find it at a website dedicated to a Win32 specific-language such as Visual Basic or somesuch though.