Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Printer List generated by iPrint manager

6 views
Skip to first unread message

VJ

unread,
Jul 21, 2006, 6:59:28 PM7/21/06
to
I would like to customize the HTML printer list automatically generated by
iPrint. (I only have one server, and therefore one iPrint Manager, one list
of printers.)

Basically, I'd like the ability to filter this page based on
information in the printer name and location fields.

I know that I can create my own custom HTML pages, but that requires, I
believe, individually specifying the IPP URL of each printer accessible to
iPrint - NOT something that I want to manage manually.
From the documentation:
"...you must use an HTML editor and create links to the the different
generated lists or create a Web page using the printer's IPP URL. This URL
is displayed when you enable IPP for a printer."

Any thoughts, examples, suggestions appreciated.

Vj.


iprintrox

unread,
Jul 24, 2006, 1:30:56 PM7/24/06
to
Using the api's available via the HTML interface, you can request a list of
printers complete with information, then dynamically create the list of
printers based on whatever criteria you like. It does require more work
than just the default page..

>>> On 7/21/2006 at 4:59 PM, in message
<k%cwg.1795$a27....@prv-forum2.provo.novell.com>, VJ<vaness...@ubc.ca>
wrote:

VJ

unread,
Jul 24, 2006, 3:11:38 PM7/24/06
to
Hi,
Any examples of this out there that you are aware of?

Thanks.

iprintrox

unread,
Jul 24, 2006, 3:27:04 PM7/24/06
to
None that I know of.. I have done test tools using the interface so I
know it is possible, however don't have anything exactly like this.
Also, limitation of the interface is using MS IE only. Not compatible with
other browsers, yet!!

>>> On 7/24/2006 at 1:18 PM, in message
<1153768298....@75g2000cwc.googlegroups.com>,

VJ

unread,
Jul 24, 2006, 4:46:41 PM7/24/06
to
Any HTML examples to get me started would be much appreciated!!

Vj

iprintrox

unread,
Jul 25, 2006, 11:08:17 AM7/25/06
to
Here is a snippet of javascript code that does the list. What is passed in
is the server address hosting the NDPS Print Manager. What is returned is
the list of printers.. The iPrintAccess is an object that is set up via
the <OBJECT> tag in html

<OBJECT ID=iPrintAccess
CLASSID=clsid:36723f97-7aa0-11d4-8919-FF2D71D0D32C></OBJECT>


// *********************************
// Function: ListPrinters
// sets up newPAlist which is the list of printers from the PSM
// *********************************
function ListPrinters(serveraddress)
{
var listReturn;
var paList;
//
opValue=serveraddress;
params = "&error-type=none";
paList = iPrintAccess.GetPrinterURLList2(opValue, params, 0);
if(DEBUG_ON)
alert("ListPrinters(GetPrinterURLList2)\n"+paList);
// what if this fails????
if(paList != "" && paList != null)
{
newPAList = paList.split("\n");
listReturn=newPAList.length-1;
}
else
{
newPAList = "NoPrinters"
listReturn=0;
}
return(listReturn);
}

Then for each printer in the list that is returned, you could do something
like

params = "printer-url=" + unescape(printer_name) +
"&result-type=object&error-type=object";
opValue="op-printer-get-status";
installed = iPrintAccess.ExecuteRequest(opValue, params);

which gets status and some basic information

OR


params = "printer-url=" + unescape(printer_name) + "&result-type=object";
opValue="op-dbg-printer-get-all-attrs";
getAllError=iPrintAccess.ExecuteRequest(opValue, params);

which gets all information on the printer

>>> On 7/24/2006 at 2:54 PM, in message
<1153774001.3...@m73g2000cwd.googlegroups.com>,

VJ

unread,
Jul 25, 2006, 6:57:15 PM7/25/06
to
Fabulous! I'm getting there......

For the line 'paList =iPrintAccess.GetPrinterURLList2 (...' in the
funcation ListPrinters, are there alternatives to 'GetPrintURLList2'?
(I've done a search, no results).

I'd like to pull more details for each printer in that one function...

At present, I am then taking each Printer Name from newPAList, and
using the operation 'op-printer-get-info' to get the printer location
information. This however, takes a LONG time to run, and ends up
killing my browser.

I only need Printer Name (derived from GetPrintURLList2) and location,
and am hoping to do it all in the one ListPrinters function.

Thanks very much for your replies.
VJ.

Message has been deleted

VJ

unread,
Jul 27, 2006, 3:36:27 PM7/27/06
to
Where, by the way, did you get details on 'GetPrinterURLList2'?

Thanks.

0 new messages