Use printer other than default?  how to hard code it?

Is it possible to make application to use specific printer but other than default? may be hard code it into application code?
For example I know the name of print service(the PATH to configured printer) and I want my application to use THAT printer most of the time. how can make it so that my application uses one printer which is other than default..
printDialog is not a good solutionin in my case I think because user might have 15 printers configured on his machine! and I do not want him to scroll PrintServices combobox looking for needed printer... why not show only 2 or printers out of 15?
or in my case I think it is even better to hard code couple of configured printers in an application code so that I user does not get tired of working with printDialog window every time he needs to print. When my application is released to client it will be used especially for printing porposes of one particular document so he does not need to see margins and printer settings everytime.

Basically the print dialog should offer this function without you having to code it. I don't know on Windows but on my Mac you can select printers other than default and get the computer to remember them.

Similar Messages

  • Resolv.conf's nameserver on other than default port

    Recently i've found out that it's not so easy to use port other than default (53) in DNS client specified in /etc/resolv.conf file, like
    nameserver IP.OF.DNS.SERVER:20
    where 20 is a number of the port.
    Is it even possible?
    Fast search returns it is not, in whole linux's world :-). Also not in Solaris, not in Mac, not in FreeBSD. But it is possible in OpenBSD.
    I have been thinking - what? why? why such an easy thing (at the first sight) to implement isn't done?
    It looks like i need some additional stuff like bind to make it right <sigh>
    Or maybe i'm wrong here?
    I would be very gratefull for any additional info on this topic

    If I understand you correctly, you are going to set up a nameserver outside of your firewalled network (listening on a non-standard port), and you want to have your arch box be able use it from within the network?
    This isn't a direct fix, but as a workaround, you can use pdnsd as a caching proxy, and it can be configured to query the remote server on whatever port you choose by adding
    port = your_port_goes_here
    in the server section of the pdnsd config file. Once you have it all set up, simply have your resolv.conf point to 127.0.0.1
    Hope this helps
    Last edited by b4data (2011-12-11 14:51:31)

  • How to install adobe X or XI in a directory other than default.

    Please,
    I need install Adobe reader in a diferent directory of default.
    How to install adobe X or XI in a directory other than default.
    best Regards.

    What OS? Why are you trying to install i a different directory. No matter what directory you install in, quite a bit must be installed on the boot drive. If you are running out of hard drive space, it is time to get a new hard drive.

  • I have a huge amount of my memory used by 'other' than photos and music - to my knowledge, there is nothing there apart from a few songs and photos and 5 podcasts. What could it be? How could I get rid of this 'other' stuff and get the memory back?

    I have a huge amount of my memory used by 'other' than photos and music - to my knowledge, there is nothing there apart from a few songs and photos and 5 podcasts. What could it be? How could I get rid of this 'other' stuff and get the memory back?

    See -> What is "Other" and what can I do about it? by Kappy.
    Clinton

  • Creating dictionary project in other than default datasource

    I want to create a dictionary project in other than default datasource . Every time I create a dictionary project and create archive and deploy it ...It creates tables in SAP default datasource MAXDB . I have created another datasource pointing to MSSQL in visual admin . I want dictionary project to be deployed to this datasource without making MSSQL  as default datasource . Can anyone please let me know how to do this ?
    Thanks in advance
    Bhat

    Hi Alka,
    from your post, it is not entirely clear to me what you are atempting to do.
    1) Do you need help with accessing tables in a non-default schema?
    2) Do you want to determine all tables in the default schema?
    If 1), please follow the hints given by Vladimir Pavlov.
    If 2), currently, the method DatabaseMetaData.getTables() is unfortunately not supported in Open SQL/JDBC. We are currently preparing a new download of the NetWeaver Java EE 5 edition. In this version, the getTables() method will be supported.
    Or do you just want to check for the existence of a specific database table in the default schema?
    I hope this helps,
    Best regards,
    Adrian

  • My ipod touch 64G doesnt do allow me to do anything in music app. But I can use all other apps.  How do I fix this?? Plse help me:(

    My ipod touch 64G doesnt allow me to do anything in my music app. I cant even play music or select anything.  But I can use all other apps.  How do I fix this??? PLS Help me:(

    Try the following:
    - A reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory settings/new iPod.
    If you still have the problem that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order

  • I am unable to facetime in India other than hometown.how to resolve

    i am unable to facetime in India other than hometown.how to resolve

    All of us on older iOS are having problem with Facetime since Apr 16 2014. If you search more on the forum, there are gazzilions discussion. Apple is forcing all of us to upgrade. Not only yours, but also the party that you are trying to contact must have the latest iOS.
    http://support.apple.com/kb/ts5419

  • I just updated my Apple ID to a current email address, it worked on my laptop but my phone is still using the old one and neither password works. I can't download or use anything other than phone calls and texting on my phone now. Help!

    I just updated my Apple ID to a current email address, it worked on my laptop but my phone is still using the old one and neither password works. I can't download or use anything other than phone calls and texting on my phone now. Help!

    go to settings
    then to store
    tap your id then click sign out
    then sign back in and you should be fine

  • HT5457 Cannot get ringtones other than default ringtones since downloading ios 6

    Cannot get ringtones other than default ringtones since downloading ios6

    I should also mention that I tried the posted trick of changing the year to 2013 and attempting to update or download apps. Yeah... that doesn't work.

  • In SAP Script how to hard code my Company address in footer window

    Hi All ,
    In SAP Script how to hard code my Company address in footer window .
    Ex : in YB_F140_ACC_STAT this script i want to keep my company address, i want to hard coad , i dont want to use any field from table.
    Please give me step by step.
    Thanks
    Sridhar

    Hi,
    You can make use of standard text...
    create a standard text in SO10 with your company address
    and in the footer window of your script.. use include text and provide the name of the standard text you created in SO10.
    In the text editor... goto insert > text> standard
    You get popup give the name of the text name id and language
    regards
    padma

  • Easy Cost Planning in a currency other than Cont Area and comp code curren

    Hi,
        I want to do the easy cost planning in a currency which is other than controlling area and company code currency.
      But I am getting the option of only these two currencies only.
    Any idea how to do it?
    Example:
      Controlling Area currency :INR
    Company Code Currency : AED
    Planning Currency to be used for Easy Cost Planning :USD
    Regards,
    B P Singh

    Hello,
    You may try to go to transaction CT04 - Characteristics. There in tab BASIC DATA you choose Data Type - Currency Format. In field Currency enter the required currency. Save the characteristic.
    Next step is to go to CKCM - Models for Easy Cost Planning. Open the Costing model and add line with the created characteristic.
    Good luck, Aleksandra

  • How to hard code a printer in a report using Crystal 2008

    Up through Crystal 10 you could save the Printer you wanted to use in the report itself.  Since Crystal 11, this feature is no longer working.  At print time, the default printer is being used.  We have a report that prints to a specific printer utilizing a 11X17 papersize.  How can I get this to save with the report so it always uses this printer and not the default printer?

    Hi Kelly,
    What runtime are you using and what Development language?
    If you design a report off of say the HP 4050 laser printer then as long as the end user has that printer installed then you can get the Printer info and the runtime will use the printer settings as saved in the report. In which case don't check the No Printer option on.
    If the Printer the report was designed against is not available then CR defaults to the default printer.
    Other option is to define a default printer with that paper size then CR will us it.
    Don

  • Online digital photo printing for site other than apple - how get photos easily onto site for uploading

    Want to use an online digital photo printing site (eg Kodak/Photobox) in conjunction with selection of photos in iphoto.  How do I get the photos from iphoto onto the "other"site?  Drage and Drop does not work.  Obviously not made easy to use a site other than Apple, but the price is better
    ijgsaw1984

    Have you tried these?
    http://www.shutterfly.com/prints/prints?cid=SEGOO.GENRL&mpch=ads
    http://fredmeyer.pnimedia.com/

  • HT2486 How do you assign a new contact to an account other than default account?

    I have multiple mail accounts (iCloud, exchange server, gmail) each with their own contacts. When adding a contact how do you assign it to the right account? I know you can assign a default account under settings but how can you assign it to an account other than the default?

    Apple allows you a deauthorize all option once every 12 months.
    iTunes Store: Authorize or deauthorize your Mac or PC
    Deauthorize all computers
    After you authorize two computers, you'll have the option to deauthorize all computers for your Apple ID. You can deauthorize all computers once a year.
    Just like deauthorizing a single computer, you won’t delete anything if you choose to deauthorize all computers. You just won’t be able to play content that you bought from iTunes on those computers. After you deauthorize all, you can easily authorize computers again one by one. Just follow the steps to authorize a Mac or PC.
    Here's when you should deauthorize all your computers:
    If a computer doesn't work anymore
    If you don't have one of your computers
    If you used 5 authorizations and want to authorize a new computer
    To deauthorize all your computers, follow these steps using one of your authorized computers:
    1.Click to open your account in iTunes (you may need to sign in with your Apple ID), or follow these steps:
         a. Open iTunes and click iTunes Store.
         b. Click Sign In and enter your Apple ID.
         b. Click your Apple ID and select Account.
    2. Click Deauthorize All.
    The Deauthorize All button appears only if you have more than two authorized computers.

  • JSLink not working when using any list ViewStyles other than default.

    Hi,
    I have a custom field and i am doing client side rendering of it using JSLink for ListView form. I started by applying the JSLink in custom field class.
    public override string JSLink
    get { return myJSLinkPath; }
    set { base.JSLink = value; }
    Everything seems to work fine and i can see my custom field get rendered properly. Till this point i was using the default sharepoint list view style. After sometime i decided to use the shaded listview style which is <ViewStyle ID="17"
    /> to get the alternating row color style in my list. After applying this style, my JSLink stopped working, infact it is not even registered on page now. I have tried different ways to set JSLink property like it is mentioned in the following link but it
    didnt worked.
    http://www.martinhatch.com/2013/08/jslink-and-display-templates-part-1.html
    So my question is, how to apply JSLink while using the shaded (or any other) viewstyle?

    Arham,
    When you register your display template, I'm guessing you're using both ListTemplateID and BaseViewID in the registration code?
    It's likely that the BaseViewID is different for the Shaded ViewStyle. You should still see your code registered on the page in the Head element, but when it runs I think the registration is getting ignored.
    Using the debugger in IE or chrome should allow you to step through the Display Template registration and double check what the value of BaseViewID should be.
    You can of course override this if you want, I use a similar method in a blog post on fixing the clash with multiple web parts and JSLink on a page which may help you.
    http://www.myfatblog.co.uk/index.php/2013/09/listview-web-part-issues-with-jslink-and-display-templates-a-solution/
    I'll give this a test on my dev environment when I get home and see if I get the same results when adding the JSLink through the webpart properties.
    ##EDIT##
    Ok, I tried this at home using a Field Display Template and it worked on all the different styles, however this was with the JSLink deployed through the list view web part properties, not declaratively in the field declaration.
    It does prove however that it's not the BaseViewID causing the problem.
    ##/EDIT##
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

Maybe you are looking for