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

Re: Printer routing



        Sylvain,

        I am having the exact same problem.  I contacted PSDI and got the
same results.  I have a report that works great in Maximo 3.02. We have used
it for the past 15 months to route over 200 work order tickets per day to
ten different printers, but we are upgrading to 4.01, and it will not route
in 4.01.   I also posted the problem on the Maximo Users Group, but have
received no reply from anyone yet.
        Please let me know if you come up with a solution.  I will keep you
posted on any success we may have

        Bob
***************************

        Sylvain LeClair  wrote
                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