Here's what we have done to print purchase orders using Optio (which does
not answer your question on how to obtain the printer at run-time, but might
give you a different perspective).
We created a customized version of R43500. We changed the version to:
* Force the printer to always be the Optio printer, irrespective of
the user's default OW printer (the user should not change the printer. Print
setup in the RDA when modifying the version to force the PDF to Optio for
all users).
* We then created a BSFN to get the user's default printer from the OW
printer tables.
* Modified the page header to list the printer in the PDF
* Mapped Optio to pick up the printer from the PDF.
* Optio then routes the report to the user's default printer.
In our environment this worked because the users who request the purchase
orders normally only have one printer they always print to. Does not give a
lot of flexibility, but it works. This also allowed us to only have one
version to be used at all the different locations (and not create a separate
version for each location). We used the same method for PO receivers and
payroll checks which print at several different locations.
Not sure how you are going to allow the user to change the printer at
submission time and then still route the PDF to Optio (which is just a
printer defined in OW). If you know how to do this, let us know. Maybe we
are missing something....
Hope this helps.
Hester
>
boertjie