Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 10 MAY 2002 09:04:11PM S Botes wrote:

With OI16 we could manage the ssp Printsetup and intercept the printer name and port. Now in OI4.01 it seems that the Utility call Printsetup goes directly to the API? Is there anyway to get the printername and port that the user has selected. We need to associate different printers with different parts of the application without the user having to switch manually. For example an invoice goes to one printer and a report to a different one. They both fire automatically when the invoice is created.


At 12 MAY 2002 02:36AM Donald Bakke wrote:

Steve,

If you are using the OIPI then the best way to handle this is to pass your printer/port information into the INIT message (Parm). We maintain report/printer associations in an INI file for a while and then read this information and pass it to the OIPI.

[email protected]

SRP Computer Solutions, Inc.


At 13 MAY 2002 01:01PM S Botes wrote:

Thanks Don, but I am not using OIPI at this point. We do use it for reporting but this is strictly label printing to a label printer. I must pass the API the name and port of the printer. I looked at the devices parameter in OIPI but didn't want to start OIPI in this case.

Our software goes out to many different users and they change their printers constantly. Thus I need to allow them to select the printer that they want to go to, one I know nothing about, and then pass that printer name and port on to the printing application.


At 14 MAY 2002 03:19AM Donald Bakke wrote:

Steve,

We do use it for reporting but this is strictly label printing to a label printer.

Are these label printers being accessed with a Window's print driver? If so, then can use the OIPI for this type of printing (we do it right now.)

I must pass the API the name and port of the printer. I looked at the devices parameter in OIPI but didn't want to start OIPI in this case.

Okay, what "API" are you referring to?

Our software goes out to many different users and they change their printers constantly. Thus I need to allow them to select the printer that they want to go to, one I know nothing about, and then pass that printer name and port on to the printing application.

Ditto. This is what I was trying to describe. We provide a window that we call Printer Assignments. When launched, it displays a listbox of all reports and forms that are in the system. There is also a dropdown combobox that lists all the printer definitions that are currently installed in the running workstation. The end user is then permitted to link a printer to every report or form. We store this association in an INI file.

Then when the report or form is ran we pull the printer association from the INI file and pass that information into the OIPI INIT message. If no association has been made then it just goes to the Window's default printer.

[email protected]

SRP Computer Solutions, Inc.


At 14 MAY 2002 06:20AM Bob Watson wrote:

Try searching for printsetup_equates on this forum or have a look at it in the editor. This will provide the functionality you require.

Bob Watson

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/9b5b2eb191d9e5b688256bb60005e09c.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1