Win_api_dialog.select_printer

Hello all,
I have upgraded an app from 4.5 to 10gr2 and i have deployed webutil, now i needed to know if there's any utility in webutil that can substitute win_api_dialog.select_printer(PrinterName,Port).
Thanks in advanced
JA

Does this help?
Forms-Reports Web : Direct print a file to a local printer

Similar Messages

  • Printer selection in Forms 10g

    Hello,
    I am looking for a suggestion, to realize a printer selection in Forms 10g.
    For a migration I have to replace the command
    win_api_dialog.select_printer with something similar.
    Some threads suggest to implement a java class.
    Under
    How i select printer in Forms9i
    exist an example.
    The implementation there is based on the JDK 1.4.
    I need an implementation based on JDK 1.3.
    Inside of the JDK 1.3 exist only a simple printer dialog.
    (compare http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4645377 )
    Probably exist the option to use the C-API of WebUtil. The C-API could be used to start a printer dialog of a dll. I like to avoid this option, but if you an example for that option, I appreciate to see an example for that.
    In all other respects, I hope on your suggestions.

    I invest some more time on that topic, but did not found a solution to display a printer selection on the client.
    The only thing that i found in forum was that you can read the standard printer out the registry. But I would need all local installed printers.
    I hope on your help.

  • Runtime error in RWRBE60.EXE

    is there any bug in RWRBE60.EXE?
    When I send a report made in reports v.6i from forms v.6i, appear a message:
    RWRBE60 cause an error of invalid page in the module RWLIB60.DLL
    This occurr when the mode of the report is character and it send to Dot Matrix Printer, selected with the win_api_dialog.select_printer library and sent it via mode and destype parameter

    sorry, I used Mode and DesName parameters (not destype)
    I was doing various reports with several parameters and the error appear only when I use 'DESNAME' parameter with the mode character.
    Any body know why?
    do I need a patch or something else?

  • How to select the Printer in Oracle Reports 6i R2 (Windows 7)

    Hi,
    In a client site they have more than one printer suppose one is dot matrix and other one is laser printer or some other brands.
    They take printouts in both. Recently I installed Oracle Forms & Reports 6i R2 Runtimes in some Windows 7 32 bit PCs. In those PCs, its not allow to choose the printer, it print with windows default printer.
    So Is there any way to give an option to select the printer...??
    Thank You.

    Client/Server version:
    - D2KWUTIL.PLL library provides a 'Select Printer' dialog box to be used in Forms: WIN_API_DIALOG.SELECT_PRINTER
    http://guenter-huerkamp.dyndns.org/oracle-doc/docs/html/d2kwutil.html
    I suggest you to create a form to invoke the report, allowing user to select the printer and then pass it as parameter DESNAME

  • How i select printer in Forms9i

    Hi,
    In forms 6i running on the client/server mode we had the D2KWUTIL which had a procedure WIN_API_DIALOG.SELECT_PRINTER where I could get the printer dialog box.
    The requirment is that we need to select a printer and send a text file to the printer.
    I do not want to open this text file and send it to the printer because the file contains native printer landuage code and if we copy the file to the printer without opening it, the printer understands the language and prints the appropriate data. If I open the text file and send it to the printer by using the File-Print option then only junk characters will be printed.
    Is there any way we can make the printer dialog come up in forms 9i with the forms running on the web?
    Please help this is urgent.

    I've created by own printer dialog using a PJC. Here's my code:
    package yourpackage;
    import java.awt.Graphics;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;
    import java.awt.print.PrinterException;
    import java.awt.print.PrinterJob;
    import oracle.forms.ui.VBean;
    import oracle.forms.properties.ID;
    public class printDialog extends VBean
    private static final ID PRINTER = ID.registerProperty("PRINTER");
    public printDialog()
    class PrintObject implements Printable
    public int print (Graphics g, PageFormat f, int pageIndex)
         return NO_SUCH_PAGE;
    public Object getProperty(ID id)
    if (id == PRINTER) {
    PrinterJob job = PrinterJob.getPrinterJob();
    job.setPrintable(new PrintObject());
    if (job.printDialog())
    return job.getPrintService().getName();
    } else {     
    return null;
    } else {
    return null;}
    In your form, create a bean object and set it to call this PJC.
    I added this code in When-Button-Pressed trigger of a button:
    printer:= GET_CUSTOM_PROPERTY('PRINT_DIALOG_BEAN',1,'PRINTER');

  • How to select the printer and select the ICC profile for printing with VBScript?

    I try to automate my printing procedure in photoshop. The problem is that I don't know how to select the printer and select the icc profile for printing with vbscript like I manually do in the print-menu in photoshop?
    Anyone has done this before?
    Thanx!
    jus

    Client/Server version:
    - D2KWUTIL.PLL library provides a 'Select Printer' dialog box to be used in Forms: WIN_API_DIALOG.SELECT_PRINTER
    http://guenter-huerkamp.dyndns.org/oracle-doc/docs/html/d2kwutil.html
    I suggest you to create a form to invoke the report, allowing user to select the printer and then pass it as parameter DESNAME

  • How to select printer for reports 11g?

    I just upgraded my forms and reports from 6i to 11g, before printing the reports to printer,
    I was using
    WIN_API_DIALOG.select_printer(:DESNAME,:PORT,FALSE);to get printer name from network and set :DESNAME.
    This didn't work in 11g, what's the alternative function to perform this ?

    frank1018 wrote:
    I just upgraded my forms and reports from 6i to 11g, before printing the reports to printer,
    I was using
    WIN_API_DIALOG.select_printer(:DESNAME,:PORT,FALSE);to get printer name from network and set :DESNAME.
    This didn't work in 11g, what's the alternative function to perform this ?Hello Frank,
    Check this Oracle reports 10g output directly to printer
    Hope this works..
    Hamid

  • Open Printer dialog window

    Can I open the Windows Printer dialog window in Forms during runtime and then send the printer name that the user selected to Oracle Reports?

    Here is the code for showing the WINDOWS PRINTER DIALOG BOX. REMEMBER YOU HAVE TO ATTACH D2KWUTIL.PLL file for this to work.
    declare
    v_printer_name varchar2(1000) := null;
    v_port varchar2(1000);
    v_exception boolean;
    begin
    win_api_dialog.select_printer(v_printer_name,v_port,v_exception);
    wmessage('Printer is '| |v_printer_name);
    :b_selection.local_printer := v_printer_name;
    exception
    when others
    then
    :b_selection.local_printer := null;
    end;
    null

  • Printer Dialog Box with No. of copies & Print Range.

    I am trying to print a report(oracle) from a form (using a custom PRINT button) and wanted the printer dialog box to appear, for which I used the "WIN_API_DIALOG.SELECT_PRINTER(prtname, port, true)" API in the "When button pressed trigger".
    But this API only takes care of a printer change, my issue here is how do I capture the changes pertaining to Orientation, Number of Copies, Print range etc. I know there is the "Properties - Advanced" option in the printer dialog box but changing values there doesn't help, as I had already mentioned the API passes only printer name.
    So, if any one has faced a similar issue and has a solution,
    PLEASE RESPOND IMMEDIATELY !!!
    Thanks

    Unfortunatley there is no way to give Forms that information. The printer dialog in D2kwutil is only designed to get the printer name / port, none of the other information. Even it it could Forms does not expose an API to effect the PRINT; built-in.

  • Printer dialog box

    I need to use the default printer dialog box but somehow the Win_api_dialog.select_printer procedure does does not compile.
    Furthermore none of the Win_api_Environment,Win_api_session, Win_api_dialog packages seem to be working.
    Could someone please explain the useage of these components?

    It comes on the Demos disk, along with the D2kwut60.dll which needs to go into your forms \bin directory.
    You should pick up the latest copy from OTN:
    http://otn.oracle.com/software/products/forms/files/d2kwutil/d2kwutil_6_0_6_0.zip

  • Problem with "win_api_dialog.Save_File"

    Hi friends,
    I have a problem with this simple code in forms 6i (WinXP):
    DECLARE
         w_file varchar2(4000);
    BEGIN      
    w_file:= win_api_dialog.Save_File ('Hello);
    END;
    It compiles ok, but it doesn't work at runtime.
    I've read lot of posts in the forum about similar problems and the answer used to be about the d2kwut60.dll and d2kwut32.pll and .plx paths...
    Well, I've copied d2kwut60.dll to all /bin oracle directories :-p (so.. I think that's not the problem)
    I've copied d2kwut32.pll to the same directory of my .fmb file, and recompiled it.
    It doesn't work ... Any ideas?
    (I have to use "win_api_dialog.Save_File" instead GET_FILE_NAME or other solutions...: for the people who recommed that posibility)
    Thanks,
    Jose.

    Hi Jose,
    about win_api.preload... I have pasted a piece of D2KWUTIL.PLL:
        * PreLoad ->  Loads the DLL into memory
        *             DLL_Location argument allows you to explicitly load
        *             from a particular place
       PROCEDURE PreLoad;The problem sound like a DLL load problem. In same file you can read the search path to find DLL library:
      -- Search Path is:
      --  1. Preload override location set by WIN_API_PRELOAD.SET_LOAD_LOC
      --  2. D2KWUTILnn_PATH e.g. D2KWUTIL60_PATH
      --  3. D2KWUTIL_PATH
      --  4. Working Directory / O/S Path
      --  5. \Bin directory based in ..\bin
      --  6. %ORACLE_HOME%\BinWe have used this library regulary and it works fine.Feel free to send me a FMB test file at jcarmona arroba eprinsa.es in order to test it in my environment.
    Regards,
    Jose Carmona

  • Problem with Win_api_dialog.open_file

    I am trying to use win_api_dialog.open_file in a when-mouse-double-click trigger. I have attached the library (d2kwutil) to the form and placed the .dll files (d2kwut32.dll and d2kwut60.dll) in the bin. The code will compile cleanly but at runtime, I get FRM-40735/ORA-060508, saying that the function cannot be found. I think that this is a problem with the .dll files but cannot figure out why. I am on Forms 6i. I am presently using the get_file_name() function to perform the task, but I would like to use the api b/c you can change the dialog on the top of the box. Anyone know how to make it work? Thanks...
    KS

    Hi Jose,
    about win_api.preload... I have pasted a piece of D2KWUTIL.PLL:
        * PreLoad ->  Loads the DLL into memory
        *             DLL_Location argument allows you to explicitly load
        *             from a particular place
       PROCEDURE PreLoad;The problem sound like a DLL load problem. In same file you can read the search path to find DLL library:
      -- Search Path is:
      --  1. Preload override location set by WIN_API_PRELOAD.SET_LOAD_LOC
      --  2. D2KWUTILnn_PATH e.g. D2KWUTIL60_PATH
      --  3. D2KWUTIL_PATH
      --  4. Working Directory / O/S Path
      --  5. \Bin directory based in ..\bin
      --  6. %ORACLE_HOME%\BinWe have used this library regulary and it works fine.Feel free to send me a FMB test file at jcarmona arroba eprinsa.es in order to test it in my environment.
    Regards,
    Jose Carmona

  • Win_api_dialog

    Hello,
    Can anyone tell me, if there is a substitute for win_api_dialog.save_file in webutil?
    Thanks in advanced
    JA

    Hello,
    Webutil_File.FILE_SAVE_DIALOG()Francois

  • WIN_API_DIALOG.OPEN_FILE & GET_FILE_NAME both not working in 3-tier

    Dear Friends,
    I want to Use open Dialog window for client Machine,
    So that user can Select any file.
    I am using Form 6i as front end,
    This thing have to be done by any means in forms 6i only.
    So does anybody have any idea over this.
    I Have used Get_File_Name But It Doesn't work on Web,
    Beside this I have used D2kutil this works in the web but Open dialog window open in the Server even if it is called from client machine,
    I Want open dialog window in any machine from where the Application is Used
    So Please If Any body have worked on this, plz give me guidelines.
    Regards
    Piyush

    You must alway keep in mind that in 3 tier environment, whatever command you use to interect with the host file system or operating system, it's the application server's host that you are interacting with.
    In case you want to do that on the client machine you have two choices, using Webutil or PJC.
    My suggestion goes with Webutil since it is the whole package and the complete solution for client side interaction.
    You can download it from this link:
    http://www.oracle.com/technology/software/products/forms/files/webutil/webutil_106.zip
    Regards,
    Tony Garabedian

  • Copy file from SMB share to Desktop permissions

    I have connected to a SMB share point (Windows Server)and copy a file to my desktop (Mac OS X 10.6.4).
    The file on my desktop shows I have the read and write access, however, everyone has no access.
    I could not get the system administrator to change on the server side. Is it possible to make any changes from my machine to make at lease every has read only access?
    Thanks in advance.

    I downloaded D2KWUtil from the link suggested by you. It has very nice example demo form. But the documentation provided says following
    Using D2KWUTIL in Web Deployed Applications
    The use of this library is not supported with Web deployed applications.
    In a web deployment scenario not all functions within D2KWUTIL will work. Any function that interacts with the User Interface (such as those in the WIN_API_DIALOG package) will fail.
    Any interaction with the O/S by other functions will all be executed on the NT server and will act within, or return information pertinant to, the environment on that machine. For instance GET_COMPUTER_NAME will return the Server’s name, not the name of the computer that the Client browser is running on. Likewise COPY_FILE will copy files in the Forms Server not on the Client.
    Functions such as those in WIN_API_BITOP will continue to work without change.
    so this will not work in web deployed application.
    Any other suggestion?
    Thanks

Maybe you are looking for

  • How do i download the ios 4.3.

    how do i down load the ios to the i pod gen 1

  • IPhoto 04 can't show photos from iPhoto 06 photo DVD?

    On my iBook is still iPhoto 04, it takes photos on photo CDs only when they were created in iPhoto 04, newer burned CDs or DVDs with iPhoto 05 or iPhoito 06 doesn't load as photo CD in the sources area. Any ideas?

  • Bridge scripting learning curve

    I must admit I was a little confused when I first looked at Bridge scripting. I had some background writing photoshop scripts. This forum is an excellent resource to supplement the documentation. Anyway, I have figured out everything I needed to port

  • Having issues with upgrade ios 7

    Having issues with ios 7 upgrade.  It started the upgarde then gave me an error message halfway through the upgrade process.  Is this a service provider issue or an apple issue?

  • "oops... there was a problem" skype won't start

    i am using surface pro win8.1 and was running skype metro version quite well. once i created a new skype account from the same email id linked with the existing microsoft skype account from desktop pc. skype runs fine there but as i tried to run skyp