Getting printer properties

In my Java program I am able to get printer names by using the <code>PrintServiceLookup</code> class.
What I am now looking for is a method to gather other information belonging to a specific printer, e.g. <code>Description</code>, <code>Location</code>, <code>Printer Driver</code>. These properties are visible in the Windows Registry, but does anyone know how I get the values in my program?
Thanks in advance.

Querying fall all valid attributes gives:
class javax.print.attribute.standard.JobName
class javax.print.attribute.standard.RequestingUserName
class javax.print.attribute.standard.Copies
class javax.print.attribute.standard.Destination
class javax.print.attribute.standard.OrientationRequested
class javax.print.attribute.standard.PageRanges
class javax.print.attribute.standard.Media
class javax.print.attribute.standard.MediaPrintableArea
class javax.print.attribute.standard.Fidelity
class javax.print.attribute.standard.SheetCollate
class sun.print.SunAlternateMedia
class javax.print.attribute.standard.Chromaticity
class javax.print.attribute.standard.Sides
class javax.print.attribute.standard.PrinterResolution
so you're out of luck. Seems like what you're after is platform specific: I guess on other platforms 'Driver' might not be necessary - and certainly 'Port' doesn't make a lot of sense in the can of a LAN printer. I'd leave these details to the underlying OS.

Similar Messages

  • Text overflown is not getting printed in the next page in ADOBE

    Hi Experts,
    I have a text field, where the users can enter the comments. In this text field if the user enters more than a page, a scroll bar appears in the print preview where the users can view the complete text what they have entered, but while printing the text which exceeds more than a page is not getting printed in the next page.
    I have set the subform properties as "Flowed" and the check box "Allow Page Break within content" is also been enabled, but still the extra contents is not getting printed in the next page.
    Please help me regarding this.
    Thanks & Regards,
    Karthik MD

    Hi Lohitha,
    Even "Expand to fit" is been enabled.
    Thanks & Regards,
    Karthik MD

  • Text overflown in the first page is not getting printed in the next page

    Hi Experts,
    I have a text field, where the users can enter the comments. In this text field if the user enters more than a page, a scroll bar appears in the print preview where the users can view the complete text what they have entered, but while printing the text which exceeds more than a page is not getting printed in the next page.
    I have set the subform properties as "Flowed" and the check box "Allow Page Break within content" is also been enabled, but still the extra contents is not getting printed in the next page.
    Please help me regarding this.
    Thanks & Regards,
    Karthik MD

    Hi,
    This issue is in ADOBE, I think there is no concept of Window in ADOBE,
    The text box is placed inside a Subform.

  • Administrator cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2

    Hello, dear Colleagues.
    User with administrators rights cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2. 
    If to launch "Devices and Printers" on server, all printer properties on "Advanced" tab are inactive (see screen below). 
    But I can change it manually with "Print Management". Features become active.
    The main purpose - to uncheck "Enable advanced printing features"  with powershell
    scripts.
    $erroractionpreference = "continue"
    $colPrinters = Get-Wmiobject -Class win32_printer -computername print_server -Filter "Name like 'printer1' or Name like 'printer2' or Name like 'printer3' or Name like 'printer4' or Name like 'printer5' or Name like 'printer6'" # get printers on server and filter with names
    ForEach ($objPrinter in $colPrinters) { # get printer details from WMI
    If ($objPrinter.RawOnly -ne "True") { # check that Advanced printing fetaures is turned on
    Write-host $objPrinter.Name
    Write-Host $objPrinter.RawOnly
    $objPrinter.RawOnly = "True" # Untick and update the object in WMI
    $objPrinter.Put()
    It works on Windows 7 workstation, but does not on print server Windows Server 2012 R2 with error
    Exception calling "Put" with "0" argument(s): "Generic failure "
    At \\print_server\c$\DisableAdvancedPrintingFeatures.ps1:8 char:17
    + $objPrinter.Put()
    + ~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
    Can you help me with that? Look like somethings with rights.
    Thank you.

    Hello, Alan
    Morris.
    Thanks for your reply.
    I've tried to runs PS Script both locally and remotely, previously running Powershell ISE as Administrator.
    I've noticed interesting thing - if to
    check "Enable advanced printing features"
    manually thru Print Management snap-in, script works fine. But, time to time after some manipulations on print server, this advanced feature returns to enabled state automatically by system, I think. In this case PS Script does not work. Next, if to disable
    feature manually again (thru Print Management snap-in),
    and enable manually again, PS Script will work. Very strange situation.
    Thanks.

  • Issue with Print Properties button not responding in Adobe Reader 10.1.10

    We've recently been upgrading Adobe Reader 9.4.4 to 10.1.10 and started having a few reports of the Print -> Properties box in Adobe Reader not responding.  When this happens Adobe Reader will crash if you click on the Print button.  If you go into Devices and Printers and try and access the Printer Properties you are prompted to install the driver for the device.  It does seem to be quite random, it will work fine for days and the suddenly happen.  I've done testing and have been able to get it happen by opening Outlook, Word or Excel but it is completely hit and miss.  Sometimes the issue will happen and other times no matter how many times you open and close the various applications it's fine. 
    Fortunately it only seems to be an issue when accessing Properties, if you just print there are no options which is probably why we don't have more complaints.  Unfortunately this didn't come to light until we'd rolled it out to 2000+ machines across 8 locations.
    So far I've tried the following:
    1. Upgraded to Adobe Reader 11.0.9 and same issue
    2. Created a test print queue using a different print driver (my machine has a different driver again and is using a different print server)
    3. Uninstalled a number of applications that have caused us issues with Office 2010 due to dodgy addins (Workshare and HP Filesite)
    4. Rolled back to 9.4.4 and seems OK.  Problem here is that they receive PDFs in formats not compatible with older than X.
    System is Windows 7 Enterprise SP1 32bit, Office Professional 2010, printing is to Ricoh Equitrac (Follow You)
    Anyone have a fix for this or come across this before.  I'm going to try testing with a Postscript driver to see if that helps, which is the last item on Adobe's troubleshooting list.

    Select a PDF file, CMD+I, check the Open With section, and ensure that AR is selected. If not, then select it and click on the Change All button. Alternatively, select Preview, which is my default PDF reader.

  • Printing Properties for Acrobat 8.0 Pro not sticking

    Hi guys & gals,
    I have a user here that is running Windows 7 that has been having an issue with printing from Acrobat 8.0 Professional for some time and while it's not a huge issue, it is a bit annoying.
    Here's the scenario:
    She opens a PDF file, clicks on Print, selects the printer she wants to print to and clicks on "properties" to change it from say, 8.5"x11" to 11'x17" paper size, then she clicks "OK" which returns her to the main print window only to see that it still shows the original paper size. If she clicks "Properties" a 2nd time and changes the paper size again and hits OK then everything is fine until the next time she goes to print something and she has to go through changing the print properties twice again to get the settings to stick.
    It's not clear if this is an Acrobat issue or a Windows issue. Does anyone have any insights as to what might be going on here?
    Thanks!

    Hi Daniel,
    Thanks for the suggestions, but that didn't help. And yes Acrobat is updated and I even tried the "Repair Acrobat Installation" option all to no avail. 3 of us have looked into this issue and decided there is no fix. It's just something the user will have to live with. Oh and 1 correction, the computer is running Vista, not W7, however I don't think Vista is any worse at handling printing than 7 is, and since this happens regardless of if we print with the Postscript driver or the PCL6 driver, it's gotta be an Acrobat issue, not a Windows issue. Also just going into the list of printers and reselecting the already selected printer seems to also jolt it into suddenly showing the correct (changed) settings. Weird.

  • Strange characters / Wrong language in Print Properties (windows 8.1 pro 64-bit)

    Dear HP,
    When I open 'printer properties' from my Office Word 2013 I get the following.
    However, when I open 'printer properties'  via Control Panel, everything is OK.

    Hi Hakkelaar,
    Do these characters appear when you open the printer properties in other programs too, or just from Word 2013? I would suggest you do all of your Windows Updates and restart the computer. If the issue persists the next solution I propose is to delete the printer driver from the Printer Server Properties and then re-add it. Use the instructions below to accomplish this task.
    In the ‘Devices and Printers’ folder
    2. Choose ‘Print server properties’.
    Win XP – With no printer selected, click ‘File’ then ‘Server Properties’.
    Windows Vista – With no printer selected, press ‘Alt’ then click ‘File’ then ‘Server Properties’.
    Windows 7/8 and 8.1 – Select any printer in the ‘Devices and Printers’ folder and click ‘Print Server properties’ above.
    3. Click on the ‘Drivers’ tab at the top of ‘Print server properties’ window
    4. Choose the printer you want to uninstall and click ‘Remove’
    5. Choose 'Remove driver only'
    6. The next screen will give a warning, letting you know that deleting the driver package will remove it from the system. Click ‘Yes’ to say that you are sure you want to do this.
    If documents are stuck in the print spooler, you may see an error, cancel any documents pending in the print queue, or try restarting the print spooler, then try to remove the driver from ‘Print server properties’ again. If it still won’t remove the package, restarting the computer and the printer should resolve this ‘in use’ error and allow the driver to be removed.
    After the driver is removed, open Start > All Programs > HP folder > Printer folder > HP Setup and Software (or the printer icon).
    The Setup and software screen will open and you can click on Connect a new printer.
    Please let me know if this resolves the issue or if the issue lingers.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • How to set the spool retention period till 30 days(Printer Properties).

    Hi SAP Experts
    I need to setup a job which creates a spool. I want to set the spool retention period till 30 days(Printer Properties). But I have the option of keeping it only for 8 days or Do Not Delete at all. Can you please let me know how can I setup a job which creates a spool which wil be retained for 30 days and then will automatically get deleted?
    Advanced Thanks
    Thanks & Regards,
    Kishore.

    Hello Kishore,
    I can understand why you dont want to change the variant.
    However may be a slight change in the variant might help your cause though I am not sure whether you will like this suggestion or not.
    Create a dummy output device type to which all spools created for this report need to be assigned.
    Once this is done  make a small change in the variant for the field Output device in such a manner that all the spools belonging to this printer/output device are not deleted.
    Then create a new variant for this output device ensuring that only spools belonging to this output device and older than 29 or 30 days  are deleted.
    While this will  ensure that normal spool requests are deleted these ones are not.
    Really dont if this solution is acceptable or not.
    Regards.
    Ruchit.

  • Printer Properties in Windows Eight

    Hi,
    I have added a Win 8 ASUS laptop to my local network.
    It is working well sharing other network devices. I had to download drivers from HP to get the shared D7260 printer working.
    I wanted to see if the Printer Properties were set for automatic duplex option in Advanced > Printing defaults.
    and if the duplex unit was installed in Device Settings. The printer does have the Q5582A duplexer and it was present when the drivers were downloaded.
    Much to my surprise the printer properties show up as a storage device. I have no idea how this happened. They show correctly on the desktop and another laptop. I need advice on how to correct this situation
    Thanks
    Frank

    OK, you are looking at things in the Computer folder, where the card reader in the Photosmart will show up as a drive (empty in this case, probably no card inserted).  I have an Officejet 7410 on my network that show up as an empty drive letter in Computer, but also as a printer in the printers folder.  
    Try the following: go to Control Panel, Devices and Printers.  Does the HP Photosmart D7200 series show up here? I suspect it will, since you mentioned printing.  From there you can right click on the printer and select Properties... as mentioned in the previous post.  If not then click Add a printer and let the wizard search your network.  Most likely it will find the printer, if not click "The printer I want isn't listed", Add a local printer or network printer with manual settings, Create a new port, Standard TCP/IP port, Next, enter the IP address (192.168.1.115 in your case), Next, click on Windows Update and wait for a few minutes for the list to populate, then select HP for the manufacturer and HP Photosmart C7200 series for the printer.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • 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

  • Printing Properties do not properly save

    I am using Photoshop CS4 on Windows Vista, and an Epson R3000 printer. When I set the printing properties, assign a name to them, and save them, they 'save' but the properties change. Mostly the custom paper seize I used will revert to 8.5x11, and after a while the saved properties totally disappear from the drop down 'Select Setting' menu.
    This started happening only recently, Before that it would always save my custom settings properly.
    Any insight/help with this would be greatly appreciated!
    Many thanks,
    christian

    Kristian,
    I do have one solution I would like you to try.  There may be other ways, but my solution is to use the ePrint driver.  See the following link to download the driver for your operating system:
    http://h20331.www2.hp.com/hpsub/us/en/eprint/overview.html
    This driver is powerful by allowing you to connect to many printers.  Find your printer on the network, or even by ip address.  Then make sure to hit settings to set your job as you need, for instance 2 pages per sheet.  Then hit print!
    I hope this gets you printing quickly so you can focus on your prints rather than the task of printing.
    Regards,
    Christopher
    I am a Software Engineer. I innovate, coordinate, and code for HP.

  • Printer Properties does not open in PDF

    I have an PH Photosmart Premium c309g. I can get into the printer properties in every other system except pdf's. Even when I save properties to the printer they don't seem to apply when printing from pdf's either. For example I need to duplex some pdf's but it will only print how it wants, in the quality that it wants. Can't figure this one out. Any ideas besides reinstalling (no luck).

    OK, I have a C309a, Adobe Reader 9 and Win 7 x64 ultimate.  Do you have a "properties" tab available? Here is what I see, where the properties tab takes me to the printer properties.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Update printer properties with powerhsell error

    Hello, dear Colleagues.
    I'm trying to updates properties with powershell.
    Here is a script:
    $erroractionpreference = "continue"
    $colPrinters = Get-Wmiobject -Class win32_printer -computername print_server -Filter "Name like 'printer1' or Name like 'printer2' or Name like 'printer3' or Name like 'printer4' or Name like 'printer5' or Name like 'printer6'" # get printers on server and filter with names
    ForEach ($objPrinter in $colPrinters) { # get printer details from WMI
    If ($objPrinter.RawOnly -ne "True") { # check that Advanced printing fetaures is turned on
    Write-host $objPrinter.Name
    Write-Host $objPrinter.RawOnly
    $objPrinter.RawOnly = "True" # Untick and update the object in WMI
    $objPrinter.Put()
    It works on Windows 7 workstation, but does not on print server Windows Server 2012 R2 with error:
    Exception calling "Put" with "0" argument(s): "Generic failure "
    At \\print_server\c$\DisableAdvancedPrintingFeatures.ps1:8 char:17
    + $objPrinter.Put()
    + ~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
    Can you help me with that?
    Thanks you.

    Hi Fapw,
    I tested This script and it works on Server 2012 R2, so I recommend you can troublehsoot the Printer issue, why current user can't change the RawOnly property.
    For the printer issue, I recommend you can post in Printer Forum for more efficient support:
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverprint
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Printer Properties not displaying all settings.

    The Printer properties in Adobe Reader for Linux do not display all the available preferences for a given printer driver- and you are unable to edit the Printer Command in the Printer Properties window to get around this. This combo of limitations renders it useless in our environment.
    We have a Savin C6055 printer in a multi-tenant facility. Each print job needs User Code associated with it for accounting purposes. The CUPS drivers for Savin support this quite nicely and other Linux apps (Evince, OpenOffice, etc.) allow you to access this setting in the print dialog. Adobe Reader does not.
    This is a problem.

    Hi Patrick,
    This is something we're planning to fix in our upcoming major release of the Reader. To know about upcoming releases of the reader on Unix, stay tuned to the reader blog at http://blogs.adobe.com/acroread
    Thanks for reporting!
    Gaurav

  • Printer properties windows remains blank

    Hello,
    i'm using Adobe Acrobat for Linux ( 9.3.2 04/01/2010) with Suse Linux Enterprise Desktop (SLED10SP3). I have different printers and drivers installed (e.g. Kyocera-Mita KM5050, Xerox Phaser 6360, HP LaserJet 4250dtn and many more).
    When a document should be printed in double-sided mode (in german "duplex") this had to be choosen in the printer properties dialog. But the problem is, that this dialog window keeps blank. With older versions of Adobe Reader for Linux (e.g. 8.x) it works, but not with 9.x. On OpenSuse 10.x and 11.x with the same version of Adobe Reader for Linux installed, it works. I mean the printer properties window is filled with the necessary data, so i can choose the options for printing.
    Novell the distributor of SLED10 told me in a Service Request, that they can't do nothing cause Acrobat Reader is closed source 3rd party software where they don't offer Level 3 (code fixes) support for it. That means i won't get a bugfix if any defect appears in Acrobat Readers code. Therefore they recommend using opensource tools like evince or kpdf.
    Anybody out there who have the same problems?
    Regards
    wurschtsupp

    Hi,
    Do other users still work well?
    Locate to Services, find Print Spooler service and check if its startup type is set as Automatic.
    Have you cleared and reset your print spooler?
    Open Services, and stop the Print Spooler service.
    Navigate to the folder below, and open the PRINTERS.
    C:\Windows\system32\spool\PRINTERS
    Delete all files in the PRINTERS folder until it is empty,
    Re-start the Print Spooler service
    Andy Altmann
    TechNet Community Support

Maybe you are looking for

  • Print multiple pages on a single page in word or from a PDF

    I need to print multiple pages on a single page from a PDF (ie: pages 1 and 2 onto a single page, pages 3 and 4 on a single page etc.) Does anyone know how to do this? Thanks

  • Updated osx and flash storage for macbook air and now i can't start up

    I updated my macbook air, and now when it restarts I get a circle with a line through it, then the apple, then the screen turns blue, and then it takes me right to the disk utility.  It wont boot my desktop.  Help!

  • ADF-BC Adapter Documentation Guide

    Hi All, can anyone share any link about ADF-BC Adapter configuration? what is "RegistryName" in ADF-BC Adapter? Any suggestion would be helpful to me. Thanks, Sharmistha

  • HT4759 Incoming mail server reset

    My email on my Mac worked fine for years until a few days ago. I can see the emails in icloud and they are being sent to my iphone and ipad But not to my computer The system is asking me to name the incoming mail server but the box is greyed out and

  • NOKIA 6300 remove the menu

    hi! I would like to know how to remove the menu and have only the "go to", "menu" and "contact" buttons on the bottom. I know it's possible... Thank you