Re: Forms 4.5: getting available printers

From: Van Nieuwenhuyse <van_nieuwenhuyse_luytens_at_online.be>
Date: Fri, 18 Dec 1998 22:50:17 +0100
Message-ID: <75ejtv$lb4$1_at_trex.antw.online.be>


Steven, in the demo libraries you can find the d2kwutil.pll library. Attach this library and invoke the win_api.select_printername procedure, This procedure invokes the windows api to select a printer and returns the selected printer and port.
  win_api.select_printername(printername,port); This only works on windows of course, on Unix you have to code it yourself. DO NOT use the windows api when deploying your form for the web: the printer selection will be executed on your server!

Steven C. Kondolf heeft geschreven in bericht <367a08fc.1038646_at_news.frontiernet.net>...
>I'm working on a form where I need to call a reports 2.5 program and pass
>parameters from Forms 4.5. I want to run the report in asynchronous batch
>mode. This will be run on a Windows95 pc.
>
>I need to be able to pick an available printer to pass to the report via
>the DESNAME parameter. The application requires much repetitive printing
>requests to many different printers and I don't want to slow the user down
>by popping up the runtime parameter form each time the report is chosen.
>
>Since batch mode doesn't pop up any window allowing me to choose the
>printer, how do I get the list of of available printers defined on the pc
>I'm running the report on so I can pass this info?
>
>Thanks.
>Steve
>skondolf_at_hatespam.frontiernet.net
>skondolf_at_hatespam.compuserve.com
>
>*** email addresses altered to foil spammers !! ***
>*** Remove hatespam. from address before sending ***
Received on Fri Dec 18 1998 - 22:50:17 CET

Original text of this message