[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Printer routing



Hello,


I have to make a report (workorder) that will print on different printer,
depending of the location of the labor.

I read some infos in the Maximo user guide and I also call supp. tech at
PSDI and they sent me some doc.  I made the small test program contain in
the document from PSDI.  There is :

begin-setup
end-setup


begin-heading 5
print '[#BEGIN]'          (1,1)
print $PRINTER-ROUTING-STR (+1,1)
PRINT 'WORK ORDER'         () CENTER
end-heading

begin-footing 4
print 'END OF REPORT' (1,1)
print '[#END]'        (+1,1)
end-footing

begin-program
input $where
do Main
end-program

begin-procedure Main
begin-select
WONUM          &WONUM
DESCRIPTION    &DESC
STATUS         &STAT
SUPERVISOR     &SUPER

  DO PRINTER_ROUTING
  print &WONUM   (1,1)
  new-page

FROM WORKORDER
WHERE [$where]
end-select
end-procedure


begin-procedure PRINTER_ROUTING
begin-select
DEVICE      &device
DRIVER      &driver
PORT        &port

FROM PRINTER
WHERE TBNAME = 'WORKORDER'
  AND COLNAME = 'SUPERVISOR'
  AND VALUE = &SUPER
end-select

MOVE '[#PRINT ' TO $PRINTER-ROUTING-STR
CONCAT &DEVICE WITH $PRINTER-ROUTING-STR
CONCAT ';' WITH $PRINTER-ROUTING-STR
CONCAT &DRIVER WITH $PRINTER-ROUTING-STR
CONCAT ';' WITH $PRINTER-ROUTING-STR
CONCAT &PORT WITH $PRINTER-ROUTING-STR
CONCAT ']' WITH $PRINTER-ROUTING-STR
end-procedure


I can compile this report and run it from MAXIMO.  But when I run the
report, I got this message "Printer routing not completed".

I followed all the steps,

1. I created a new type "tmp" in the Windows Explorer
2. I specified the routing info in MAXIMO
3. I also marked the report "as routable"

But still don't work,


Can anyone help me?

Thank,

Sylvain Leclair
CiM MAINTENANCE

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com