Detect Default Printer in 9iDS ??

Hi,
I will detect the default Printer from the Client
The Get_default_printer Function is not included in WEBUTIL
Exists an other possibility to detect the default Printer ?
Thanks Alfred

Default printer is an attribute of the Window. Unfortunately the version of Java supported by WebUtil (JDK 1,3) does not offer a method through which to get the window handle, so it is not possible to get the default printer by that route.
However, you can get the Default Printer by reading the registry using
Client_Win_API_Environment.read_registry('HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\WINDOWS','Device',false);
END;     Cheers, APC

Similar Messages

  • [SOLVED] Problems with setting default printer in Libreoffice

    Everytime I print in Libreoffice it complains about me not having set the default printer. Where do I do that in Libreoffice or is it refferring to my setup in cups? Also in systemsettings under KDE4 when I try to manage my printer and I try to set it as default I get the following error:
    Der opstod en fejl under CUPS-handlingen: "client-error-forbidden".
    EDIT: Fixed by setting default under cups administration.
    Last edited by fettouhi (2013-12-08 14:48:04)

    mahen wrote:
    bkadoctaj : this is actually exactly what I did as well. It works, although there is still a strange behaviour compared to under Ubuntu for instance :
    - The printer wasn't detected, I had to add it from the CUPS web interface
    - Libo complains about "no default printer" although I definitely set it as default in the aforementioned interface
    (I use cups-usblp and splix-svn due to my specific hardware)
    Hmm, weird... as far as I can tell LibO is using my CUPS-defined default printer as its default.  Thanks for the feedback - you made me glad that I wasn't posting something irrelevant lol.
    Possibly a stupid question but your user is a member of the lp group, right?  I don't have anything set for "Allowed Users" in CUPS but you could also try adding your user there.  Curious to hear of a solution if you find one.

  • 10.6.1 doesn't detect usb printer properly

    I have a Samsung SCX-4300 printer in my office connected to my MacBook running Snow Leopard (clean install, and upgraded to 10.6.1 right after setting up the system). When I tried to add the printer in System Preferences, the printer does not show up at all, even though the printer is on and connected, and clearly shows up under the USB tab in System Profile. I have tried resetting the printing system in System Preferences, fixing disk permissions both from within the system and from the installation DVD (incidentally, the permissions never seem to get fixed - even when the log says that they are fixed, when I run verification immediately after, the permissions are still broken), and zapping pram, but nothing works. Furthermore, I also have an HP F4280 all-in-one back at home, and the same MacBook only detects the printing function, but not the scanning function (no scan tab in printer preferences). Both the Samsung SCX-4300 and HP F4280 have drivers either supplied with Snow Leopard, or downloadable from Software Update.
    Message was edited by: piatigorsky

    piatigorsky,
    I can help with the HP, but not the Samsung since I don't know anything about it. There is a known issue with the Print queue potentially showing the Print and not the Scan tabs for devices with In-OS drivers. The work around seems to be to delete and re-add the print queue, this should cause the right association with the scanner to occur.
    Given the clean install nature of Snow Leopard (as apposed to the default upgrade install) I am surprised by the problems you are having.
    A couple of notes:
    1) A full installer for the HP device is available from [here|http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=al- 74802-1&lc=en&dlc=en&cc=us&lang=en&os=219&product=3390949]. This will give you an HP Scan application. It may help to track down the Scan problems with the In-OS drivers. It does not however contain the In-OS drivers.
    2) A good document from HP on configuring your printer can be found [here|http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01846935&lc=en&dlc=e n&cc=us&lang=en&os=219&product=3390949].
    3) A great document on setting up the device for using the In-OS Print and Scan drivers from Apple can be found [here|http://support.apple.com/kb/HT3771].
    4) Finally a generic document on Print and Scan drivers from Apple can be found [here|http://support.apple.com/kb/HT3669]. And it states that your Samsung drivers should be In-OS as well.
    Note one other thing you may want to try, if you've Reset your printing system, and your computer (restart) is to actually restart the device. This may help get the Samsung recognized.
    Just trying to help.
    Andrew

  • Laserjet Pro P1606dn running on a dell using XP Pro won't hold the default printer setting

    Laserjet Pro P1606dn printer
    OS is XP Pro
    set it as the default printer but that setting keeps changing
    How to fix this?
    thanks

    Yes, you need your own copy of WinXP (I used the one that came with VPC) but I'm afraid I have some good news/bad news to report. The good news is that WinXP does run a bit faster than VPC did on my dual processor G4 - the bad news is that XPs hardware detection DOES NOT - and I could find no way t force it - to recognize any USB or Firewire devices. Because I use Windows primarily to connect to USB GPS devices, this was a real letdown (and would be to users who need to, oh, I don't know, PRINT from Windows).
    I'd love to hear from anyone has Windows actually functioning under OpenOSX Wintel - the website only goes as far a getting it to install and running Explorer (which I was able to do). I also had numerous keyboard problems: sometimes Windows would accept no input from the keyboard, sometimes it would reverse the caps lock key (on produced lowercase letters, off all uppercase). It also does not recognize the Apple Mighty Mouse as a two-button mouse. A number of these problems were - somehow - fixed by VPC which I never had a problem with when it came to USB devices (at least it DOES recognize a 'network card' and I can use Internet Explorer - whoopee!).
    I'm going to play with this some more before throwing in the towel but I'm not so certain that I'm going to work towards the dual boot solution until I hear that Windows and Windows apps actually function - like being able to print or recognize a USB device.
    Just getting Windows to install and run is of little good if it doesn't actually provide simple functionality.
    I may copy and paste my original post in the Windows compatibility forum - see if any of those folks have found a working solution,

  • Default Printer Properties

    Hello,
    Is it possible to run a powershell command to identify the default printer on a system and then launch the "Printer Properties" to then modify the settings if need be?
    I know the command to identify the default printer is similar to below but am unsure about how to launch the properties after identifying that.
    Get-WmiObject-Query"
    SELECT * FROM Win32_Printer WHERE Default=$true"
    Thanks!

    Nevermind,
    I answered it on my own. For those wondering this is what worked.
    $Default = Get-WmiObject -Query " SELECT * FROM Win32_Printer WHERE Default=$true" | Select Name
    $OUTPUT2 = [System.Windows.Forms.MessageBox]::Show("$Default Printer has been detected." , "Default Printer Identified" , 1)
     if($OUTPUT2 -eq "OK")
      Control.exe Printers

  • I installed a new printer and set it as the Windows default printer but Thunderbird won't find it.

    Using Windows 8.1 - x64 - Thunderbird 31.3.0 (Firefox 34.0.5 has found the new default printer)
    I read about resetting printer.printer_printer and printer_printer but....
    printer.printer_printer did not exist in the file.
    Then I found printer_printer and chose "reset" closed and saved the file then closed and restarted Thunderbird.
    But now the printer_printer command has disappeared completely from the file and the old printer info was left unchanged.
    Then I went to the Windows "Printers and Devices" menu and deleted the old printer that Thunderbird was pointing to.
    Then I closed Thunderbird again restarted Thunderbird and now the "print" command in the file menu is greyed out.
    (Also the old printer info is still unchanged in the config file )
    I would reinstall Thunderbird and just start over except I have about a dozen email accounts on several servers and have spent a lot of time recently on reconfiguring them to work on upgraded servers. Also I don't know how to save my emails if I reinstall Thunderbird (Is it possible to do this?)
    I've googled for ideas but haven't found anything beyond the reset function.
    Any help would be appreciated. Thanks.

    I've rebooted numerous times, reloaded the software twice, spent 4 hrs on the phone with HP and 2 with Adobe. No luck. It simply doesn't show the new printer in the drop down menu for Pro or Reader and yet shows time in all in Office, Paint, Web options. Any suggestions would be greatly appreciated! Thanks!

  • How do I change my default printer to print in grayscale?

    How do I change my default printer to print in grayscale using a MacBook Air?  I have gone to "system preferences" and "printers & scanners."  However, there is absolutely no option to change the print color scale.  I see that option when I go to a document & print, but I don't want to go through the hassle of changing to "gray scale" every time I print.  Thanks so much in advance!! 

    Hi,What operating system you are using? What application you are printing from?

  • Ipad 4 unable to detect C4599 Printer already connected to WiFi network

    Hi All, I have a C4599 All in One Printer. I have just set this up sucessfully with a WiFi connection to my home router/ modem network (infrastructure mode). There are no error messages and I can print from a variety of Windows laptops (XP, Vista and 7). I have loaded the HP eprint app to my Ipad 4 but it cannot detect the printer. Note that the HP website says that this printer is compatible with the ePrint App.
    A second and possibly related issue is that I have registered with the HP eprint service website but I cannot obtain the code or email address for my printer. I cannot find any way of turning on the Web Services on the printer? (The HP website says this should be under Setup>Wireless on the printer but it is not. There are only options for turning the wireless on and off, testing the wireless and printing the network and printer wireless settings (which are all OK>PASS or just information).    
    Any ideas?
    Thanks
    This question was solved.
    View Solution.

    With the last update that was done to the ePrint app, some of the legacy printers lost the capability to use that app to print from. The printer would not have the option to print directly from the iPad to the printer either. That is a feature known as AirPrint. When one has the ability to use AirPrint, one has to place the device on the same network as the printer, pull up a photo, tap the action button on the iPad and then select print. The iPad will then give one an option of which printer to print from if there is more than one printer capable of of AirPrint on the network. 
    The printer cannot produce a code to signup and register for ePrint due to the age of the printer. Printers that have the ability to ePrint are a majority of the ones that were put into production from 2010 and later. Some Photosmarts that have the capability to use ePrint and AirPrint are the 7520,6520 and the 5520. To learn more about those printers, check out this link here. 
    I am a former employee of HP...
    How do I give Kudos?| How do I mark a post as Solved?

  • Set default printer in Photoshop CS4

    I'm a long-time Photoshop user (since Photoshop 3), upgraded to CS4 many months ago, and just updated my printer.  It is one of these all-in-one jobs that prints, copies, and faxes.  It has two printer device drivers: one for normal printing and one for the fax function.  The problem is (I think) that it seems to default in Photoshop to the fax function.  Therefore, when I try to print out a 4x6 photo @ 200ppi, it still defaults to 8 1/2 x 11 format (that you would get with a fax machine).
    In CS4, from the main menu, File > Print.  In the pop-up it says 8.5 ins x 11in.  I checked [X] Scale to fit Media, and now it says print resolution 109ppi (yikes ... I wanted 200ppi).  "Bounding Box" was checked as a default, so I left it checked (what is that, anyway)?  The 8.5 x 11 does not go away.  Clicked [Print].
    A Print menu pops up.  It says, for some strange reason, HP Officejet Pro 8500 A909g Series fax ... yikes ... in last screen it didn't say fax, so I selected the 8500 option without fax (presume that is the printer). Clecked Preferences, and got "Printing Preferences" popup.  My default printing shortcut was selected (which is for mornal B&W draft-quality text) -- so I checked Photo Printing-Borderles.  Paper size defaluted to Borderless 4x6in, HP Advanced Photo Papers, Best Quality, grayscale off, and changed orientation from landscape to Portrait.  Under "Features" Basic Options were HP Advanced Photo Papers, Best Quality, Portrait (instead of Landscape) ... paper size was set to Borderless 4x6in.  Print in Color.  Clicked OK. That closed the Popup and returned me to the Print panel.  Clicked "Print"
    Got a 1.25" wide by 2" high print ... NOT a 4x6.
    As I dig down into the menus, it appears to be initially defaulting to the "FAX" drivers for CS4, not the printer drivers.  That's probably why it keeps coming up 8 1/2 x 11 at 109ppi.
    What did I do wrong?
    Thanks !!

    Photoshop CS4 uses an old (introduced in Win16?) printing API that limits the printer name length to 30 or 31 characters. With your printer name, that gets you halfway into "Series" and anything past that will be ignored.
    The simple solution is to rename your printer to something shorter. Go into the control panel, printers and faxes, and right-click on the printer and choose "Rename" and rename the printer. That should resolve the problem.

  • How can I retrieve the IP address of the default printer from the windows registry

    I am using LabVIEW 7 on windows NT4 computers.
    I have a SubVI that I use to ping the network printer to make sure that the printer is on line prior to sending a print at the end of testing a unit.
    If LabVIEW does not get a reply to its ping data is saved locally and the user informed.
    I would like to modify the VI that pings the printer to ping the default printer of the computer on which the VI is running.
    I would be grateful if anyone can show me how to retrieve the default printers IP address.

    Hi Stuart,
    The registry entries for User's Default Printer are:
    Win 9x:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr​entVersion\Windows]
    NT/XP:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows]
    "Device"="Printer Name"
    The device is the name used to represent the printer in the registry. The name can be found in the [HKEY_CURRENT_USER\Printers\Settings] key.
    Machine name is part of the "Printer Name," which you can use to ping directly (i.e., w/out having to look-up its IP address).
    Hope this helps.
    Regards,
    Khalid

  • How to print report on client default printer ?

    I develop web application. I use jdev 10.1.3.4.0 . I can print report in PDF format.
    My Problem
    I can't print report on client default printer. when Client run application and print. Report is printed at server default printer
    How can I do.
    _My source code for print to PDF format._
    FacesContext context = FacesContext.getCurrentInstance();
    response = (HttpServletResponse)context.getExternalContext().getResponse();
    String urlSchema = "jdbc:oracle:thin:@localhost:1521:ORCL";
    String schemaName = "hr";
    String schemaPass = "hr;
    reportPath = "D:\\Project\\Reports";
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection(urlSchema, schemaName, schemaPass);
    reportPath = reportPath.endsWith("\\") ? reportPath : (reportPath + "\\");
    input = new File(reportPath + reportName + ".jasper");
    reportParameters.put("SUBREPORT_DIR", reportPath);
    reportParameters.put("P_IMAGE_PATH", reportPath);
    jasperPrint = JasperFillManager.fillReport(input.getPath(), reportParameters, conn);
    response.setContentType("application/pdf");
    response.addHeader("Content-Disposition", "attachment;filename=" + reportNameOutput + ".pdf");
    OutputStream outputStream = response.getOutputStream();
    JasperExportManager.exportReportToPdfStream(jasperPrint, outputStream);
    outputStream.flush();
    outputStream.close();
    conn.close();{code}
    _My source code for print to *printer*._
    {code}FacesContext context = FacesContext.getCurrentInstance();
    response = (HttpServletResponse)context.getExternalContext().getResponse();
    String urlSchema = "jdbc:oracle:thin:@localhost:1521:ORCL";
    String schemaName = "hr";
    String schemaPass = "hr;
    reportPath = "D:\\Project\\Reports";
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection(urlSchema, schemaName, schemaPass);
    reportPath = reportPath.endsWith("\\") ? reportPath : (reportPath + "\\");
    input = new File(reportPath + reportName + ".jasper");
    reportParameters.put("SUBREPORT_DIR", reportPath);
    reportParameters.put("P_IMAGE_PATH", reportPath);
    jasperPrint = JasperFillManager.fillReport(input.getPath(), reportParameters, conn);
    JasperPrintManager.printReport(jasperPrint, false);
    conn.close();Edited by: jaae251 on Jun 18, 2009 2:29 AM

    If you offer a PDF to the end user, they usually know what to do with it. OTOH, if you wish to provide software to facilitate the local printing, you might launch an application on the client side that accesses the JNLP API's PrintService - that can be done in a sandboxed application.
    A signed application might access the normal J2SE based print services. Though I heard that Sun had decided to make printing a 'prompt on first attempt' deal - even for sandboxed apps., from 1.5 plus (or was it 1.6 plus?).
    It would be a serious security bug if a web site could print on the client printer, without trust or active involvement from the end user.

  • Print Reports on Client Default Printer

    Hi All,
    I am using  Oracle Reports 11g Release 2 (11.1.2.2.0).
    I want to print oracle reports from ADF which is JEE base framework on client default printer. I am send just plane url to generate report to report server. In Oracle forms we have option to get job id of report, but in plain url i am not seeing any thing like that. In forms in am generating PDF wait untill job is finished and then send pdf to client printer by using job id.
    How it will be possible by using plain URL send to report server or any other idea to achieve this task.
    Thanks in advance.

    If you offer a PDF to the end user, they usually know what to do with it. OTOH, if you wish to provide software to facilitate the local printing, you might launch an application on the client side that accesses the JNLP API's PrintService - that can be done in a sandboxed application.
    A signed application might access the normal J2SE based print services. Though I heard that Sun had decided to make printing a 'prompt on first attempt' deal - even for sandboxed apps., from 1.5 plus (or was it 1.6 plus?).
    It would be a serious security bug if a web site could print on the client printer, without trust or active involvement from the end user.

  • Default printer and problem with printing Crystal Report

    Good morning
    I have SAP B1 and on the client the default printer is "AMM_4014DN_PCL6_domain-srv FRONTE-RETRO"
    Then i have another printer "AMM_4014DN_PS_domain-srv".
    Before the default printer were the "AMM_4014DN_PS_domain-srv".
    Now the default printer is "AMM_4014DN_PCL6_domain-srv FRONTE-RETRO".
    When i push the button "Print" in the menu bar to print for example an invoice, instead of printing on the default printer AMM_4014DN_PCL6_domain-srv FRONTE-RETRO is always printing on then AMM_4014DN_PS_domain-srv.
    The report to print was made with Crystal Report 2008 and on the report I also set the correct default printer (AMM_4014DN_PCL6_domain-srv FRONTE-RETRO).
    So what's the problem ? Why is continue to print to the older printer ?
    So i also delete the older printer (AMM_4014DN_PS_domain-srv) and very strange still printing on the old printer.
    I also shut down the client, but no effect.
    The operating system of the client is Win Vista and SAP B1 is host on a Win2008 server.
    Thanks in advance.
    Regards Gabriele

    hi,
    Check this SAP Notes
    [1030589 - Printing preference in document printing|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3030303130333035383926]
    [1609615 - Obtain printer settings from default printing layout|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3030303136303936313526]
    regards,
    Fidel

  • Any way to override default printer settings into a PDF

    Hi -- I work for a large organization that has lots of computers and printers and prints a lot of forms and documents.  We are moving towards more digitization of documents and records including printing forms as needed as opposed to having large sets of forms onhand.  This should save us a lot of time and money once complete as these forms often change and the old process would be to then trash much of these documents and re-print for just one change.  The majority of our printers do have letter & legal trays as well as duplex support, however due to the vast number of users the default printer settings tied to each user and/or computer may be slightly different.  While standardizing all the printer settings across all users/computers would be one solution, we don't anticipate doing this as depending on the job peformed the different settings may be more preferable / advantageous for that user.
    As such the other solution I can think of is to hardcode the specific printer settings needed to correctly print a large document into that PDF file which may differ from that computer's print settings.  For example, the default computer print settings may be to print on just 1 side but duplex would be encoded / scripted directly into the PDF so IRREGARDLESS of the computer/printer settings this document would always print duplexed.
    Is there anyway to do this?  I would need to do more than just duplexing -- ie some form sets would need to be both duplexed and 'fit to printable area' whereas some would need to be only on one page and 'shrunk to printable area', etc, etc.  Our current practice is to insert a 1 page coversheet at the front of each document with the printer settings that need to be used for that form set, however this has been difficult for some users to do and has caused unnecessary time with our IT troubleshooting form printing.
    -Brandon

    Hi Brandon,
    You can use the Print Presets in Acrobat for that purpose. Please follow the steps below:
    1. Open the PDF in Acrobat
    2. Open Document Properties dialog (using Ctrl + D)
    3. Select the "Advanced" tab
    4. In the "Print dialog Presets" section, you can choose DuplexMode as well as Page Scaling for this document.
    Please let us know if this works for you
    Thanks,
    -Shilpi

  • How to automatic print to default printer

    now i use this command
    web.show_document('http://servername:7778/reports/rwservlet?server='||
    'repserver&report='||Para_Repname||'&desformat=pdf&destype=cache&userid='||
    Get_Application_Property(USERNAME)||'/'||Get_Application_Property(PASSWORD)||'@'||Get_Application_Property(CONNECT_STRING)||
    v_parameter||'&paramform=no','_blank');
    it 's show pdf file in browser if i want to print i must click printer icon on browser, but i want it to automatic print to printer immediate
    someone has solution.

    Because the reports run on the server and not on the client machine, there really is no way to print to the client's default printer because the server has no way of knowing what this printer is.
    You could create a user parameter with a list of the printers that are normally used and have the users select which printer you wanted the output sent to.

Maybe you are looking for