Looking for Script who count pages printed on one or more print servers



  • 1. VBScript help please
    first here is what i am trying to do: i have a batch file that creates a run once scheduled task that i am pushing out via Group Policy. I have a vbscript setup to simply call the batch file. What i want to be able to do is have the vbscript first check the systems time and make sure that it is prior to the scheduled tasks start time. if it is prior, install the scheduled task. if the system time is after the scheduled task start time, dont install the scheduled task. seems easy enough right?
  • 2. time compare
    i need an example of how to code a time comparison. i need to check to see if a value in a date/time column is greater than 10 minutes from the current time. i appreciate your help. thanks, mcnewsxp
  • 3. Invalid root in registry key ...
    I'm a noobie at scripting, but I'm going through a self paced learning guide and one of the scripts calls some very basic information from the registry using RegRead. It seems that any reg value that I try to read from "HKCU\Volatile Environment\" fails. An example of the error I receive: WshShell.RegRead: Invalid root in registry key "HKCU\Volatile Environment\LOGONSERVER" or WshShell.RegRead: Invalid root in registry key "HKCU\Volatile Environment\USERNAME" or WshShell.RegRead: Invalid root in registry key "HKCU\Volatile Environment\USERDNSDOMAIN" I can browse to this location in the registry. I have copied the key path from the registry so I know it isn't a spelling mistake. It seems as though I can pick up values from every other path. I'm running Windows 7 64 bit Thanks
  • 4. Spam

Looking for Script who count pages printed on one or more print servers

Postby LeGardois » Thu, 21 Dec 2006 22:42:11 GMT

Hello, :)

Sorry for my english,

Well, i look for an idea or better for a script for count by printer how 
many pages have been printed on a print server.
This script my be executed every hours or every days....

I want a result in a text file like eg:


If nooen have a begin of script, have you an idea in witch way  i can seek ?

Nothing more ..

Thanks  :):)

Similar Threads:

1.How to count the number of pages printed when printing a non-contiguous range of pages

I don't think there is an easy way to do this... but maybe someone has has
to deal with this before.

I am printing documents using the ActiveDocument.PrintOut method in VBA.
I'd like to know how many pages were sent to the printer so I can log the
print job.  It is easy if the user prints the entire document, but what if
they print a range of pages (e.g. ActiveDocument.PrintOut

Does anyone know if there is
i) a variable available that returns the number of pages that was printed
ii) a function for calculating the number of pages in the string "p2s2-p3s5"
iii) anything else?

Any input appreciated!
-Andrew Head

2.Multiple pages in print preview dialog but only one page prints

I am using a print preview dialog in my program and when there are multiple 
pages and you press the print button it only prints one page.  How can I get 
it to print all pages when you press the print button?

Thanks in advance.

3.Print Preview looks Great but Prints Blank Pages

4.Split Print Area - One Page Print

Is it possible to print two ranges in excel to one page.  For example...in my 
report template, I would like to print cells A164:P176,A201:P233 on one page. 

I have a dynamic report template in excel which allows users to 
select certain employee groups and displays the necessary info based on their 
selections. I am trying to exclude the section where the selections are made 
as it takes up a lot of space, and contains detail that is not needed in a 
final printed 

I'm not finding a lot of options in the page setup, or proerties within 
excel.Is their any other way to have a polished end user report print 
separate ranges on one tab. Any options in the Page setup, or suggestions on 
how to code this in VBA? 

5.List pages to print, select one page

I have a situation where the user may select one of several possible pages 
to print.  My idea (which may be off the mark, but it's what has occurred to 
me) is that each of the pages would contain a bookmark.  I have adapted some 
code Jay Freedman posted about a year ago to list bookmarks.  I run the code 
as a macro.

  Dim bkm As Word.Bookmark
  Dim doc As Word.Document
  Dim strBkm As String
  Set doc = ActiveDocument
  strBkm = ""

  For Each bkm In doc.Bookmarks
    strBkm = strBkm & bkm.Name & vbCrLf

  MsgBox strBkm

This produces a list of bookmarks in the document.  I realize the list as 
produced by this code is for display only, but what I hope is that the user 
can select from the list, thereby printing the page on which the bookmark 
appears.  I already have worked out some code that can identify the page 
number.  Maybe it would be something like:

Dim b1 as Long

    b1 = ActiveDocument.Bookmarks("MoreStart").Range _
   ActiveDocument.PrintOut _
      Range:=wdPrintFromTo, From:=CStr(b1), To:=CStr(b1)

This may not be the smoothest way to accomplish what I need.  For instance, 
maybe I can produce a list of bookmarks, and when the user selects one Word 
can go to that page, and I can use wdPrintSelection, or something like that. 
Or maybe there is another option I have not considered.

The main thing is that I would first need to have a user-selectable list to 
identify the page that needs to be printed. 

6. Count pages printed

7. Get the count of pages printed

8. Count pages printed.

Return to vbscript


Who is online

Users browsing this forum: No registered users and 87 guest