[PrintService] Weird and different behavior on my Mac and my PC

Hi
I've been struggling with a printing problem for now more than 20 hours and i decided to go back to the beginning.
So first, before trying to print any random String, i want to check what can print my printers connected.
Since i was having problems, i am trying both on my Mac and my PC.
Both are connected to my network using Ethernet.
Here is my code
DocFlavor[] triedFlavors = {
                    DocFlavor.STRING.TEXT_PLAIN,
                    DocFlavor.STRING.TEXT_HTML,
                    DocFlavor.INPUT_STREAM.AUTOSENSE,
                    DocFlavor.STRING.INPUT_STREAM.TEXT_PLAIN_UTF_8,
                    DocFlavor.INPUT_STREAM.TEXT_PLAIN_UTF_8,
                    DocFlavor.INPUT_STREAM.STRING.TEXT_PLAIN
            InputStream is = new ByteArrayInputStream(test.getBytes());
            BufferedInputStream bis = new BufferedInputStream(is);
            PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet();
            printRequestAttributeSet.add(new Copies(1));
            printRequestAttributeSet.add(MediaSizeName.ISO_A4);
            DocAttributeSet docAttributeSet = new HashDocAttributeSet();
            //docAttributeSet.add(MediaSizeName.ISO_A4);
            for (Attribute attribute : docAttributeSet.toArray()) {
                System.out.println("Attribute Set:" + attribute.toString());
            for (DocFlavor flavor : triedFlavors) {
                System.out.println("Flavor chosen:" + flavor.toString());
                PrintService[] services = PrintServiceLookup.lookupPrintServices(flavor, docAttributeSet);
                System.out.println("Available printers for this flavor and this attribute set : " + services.length);
                for (PrintService service : services) {
                    System.out.println("Available: " + service.toString());
            }  I get with my PC:
Flavor chosen:text/plain; charset="utf-16"; class="java.lang.String"
    Available printers for this flavor and this attribute set : 0
    Flavor chosen:text/html; charset="utf-16"; class="java.lang.String"
    Available printers for this flavor and this attribute set : 0
    Flavor chosen:application/octet-stream; class="java.io.InputStream"
    Available printers for this flavor and this attribute set : 7
    Available: Win32 Printer : \\CATE\IMP_CATE
    Available: Win32 Printer : \\SRV-PRINT\4-XCOULEUR
    Available: Win32 Printer : \\SRV-PRINT\5-X-Couleur
    Available: Win32 Printer : \\SRV-PRINT\5-XCOULEUR
    Available: Win32 Printer : \\Srv-print\6-OPERA
    Available: Win32 Printer : \\Srv-print\6-RICOH
    Available: Win32 Printer : Microsoft Office Document Image Writer
    Flavor chosen:text/plain; charset="utf-8"; class="java.io.InputStream"
    Available printers for this flavor and this attribute set : 0
    Flavor chosen:text/plain; charset="utf-8"; class="java.io.InputStream"
    Available printers for this flavor and this attribute set : 0
    Flavor chosen:text/plain; charset="utf-16"; class="java.lang.String"
    Available printers for this flavor and this attribute set : 0  And with my Mac:
      Flavor chosen:text/plain; charset="utf-16"; class="java.lang.String"
    Available printers for this flavor and this attribute set : 2
    Available: IPP Printer : 6-OPERA
    Available: IPP Printer : 6-RICOH
    Flavor chosen:text/html; charset="utf-16"; class="java.lang.String"
    Available printers for this flavor and this attribute set : 0
    Flavor chosen:application/octet-stream; class="java.io.InputStream"
    Available printers for this flavor and this attribute set : 2
    Available: IPP Printer : 6-OPERA
    Available: IPP Printer : 6-RICOH
    Flavor chosen:text/plain; charset="utf-8"; class="java.io.InputStream"
    Available printers for this flavor and this attribute set : 2
    Available: IPP Printer : 6-OPERA
    Available: IPP Printer : 6-RICOH
    Flavor chosen:text/plain; charset="utf-8"; class="java.io.InputStream"
    Available printers for this flavor and this attribute set : 2
    Available: IPP Printer : 6-OPERA
    Available: IPP Printer : 6-RICOH
    Flavor chosen:text/plain; charset="utf-16"; class="java.lang.String"
    Available printers for this flavor and this attribute set : 2
    Available: IPP Printer : 6-OPERA
    Available: IPP Printer : 6-RICOH  As you can notice, i get totally different results between my PC and my MAC.
As a matter of fact, when i try to get all the flavors available on 6-OPERA, i get more or less 12 falvors available (when i try the test code from my PC) and 150 when i try the test code from my MAC.... i dont understand!!!
I want to get more flavors available for 6-OPERA on my PC!!!
so please help me understand this little problem
Edited by: nicdo77 on Jan 15, 2008 12:13 PM

Probably the easiest way to use an iPod on both Mac and Windows computers is to format the iPod (using iPod Updater) using the PC. This will force your iPod to use the Windows file system (FAT32) which both the Mac and PC can read from and write to without the help of additional software. Of course then all your software updates for the iPod will have to be done on Windows.

If you need to use a Mac (HFS+) formatted iPod on a Windows PC, you'll need to install some 3rd party software such as XPlay 2.0 (which you can get from MediaFour Software). This will enable your Windows PC to read a Mac-formatted iPod.

Similar Messages

  • How to change two different iCloud account from mac and iPhone?

    How to change two different iCloud account from mac and iPhone?

    Pick one to use, abandon the other.

  • I had a PC and now I have a MAC and I want to download my Adobe Acrobat XI Pro to my MAC

    I had a PC and now I have a MAC and I want to download my Adobe Acrobat XI Pro to my MAC

    Hi ndhsearch,
    I tired looking up your account using the Adobe ID/email address that you use here in the forums. I don't see any Acrobat purchases tied to that Adobe ID. Did you make your purchase or register Acrobat using a different Adobe ID? If so, please log in to www.adobe.com using that Adobe ID, click Manage Account, and the click Plans & Products. Your registered products should be listed there.
    Best,
    Sara

  • I wish to del one apple id and make one common for mac and i phone, please suggest

    i wish to del one apple id and make one common for mac and i phone, please suggest

    You cannot delete an Apple ID, you just stop using it. Understand that any apps purchased using that ID can only be updated with it. Apps are tied that ID used to purchase them. If you want to use a new ID for everything, you will need to repurchase any old apps using the new ID.

  • I have an ipod that is synced with an old PC, and now I have a Mac and I want the ipod to sync the photos on it with the Itunes on my Mac, but it says it was synced with another ipod.  How can I accomplish this?

    I have an ipod that is synced with an old PC, and now I have a Mac and I want the ipod to sync the photos on it with the Itunes on my Mac, but it says it was synced with another ipod.  How can I accomplish this?

    Is it the same user/iTunes account or...?
    Syncing to a new computer should give you the opportunity to replace the exisiting contents with the new.

  • Got new macbook pro. What is the best way to transfer my itunes from my old pc to my new mac? I want to be able to plug my iphones and ipad in to new mac and have redo anything

    Got new macbook pro. What is the best way to transfer my itunes from my old pc to my new mac? I want to be able to plug my iphones and ipad in to new mac and have redo anything

    See Here... This should transfer everything...
    Move iTunes Library from PC to MAC
    http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html

  • My macbook pro keeps saying I have 450 gigabytes out of 500 that are used.  But when I look on finder there are no files that are anywhere close to that amount.  I went through and deleted files from my mac and now I only have 10 gs free

    My macbook pro keeps saying I have 450 gigabytes out of 500 that are used.  But when I look on finder there are no files that are anywhere close to that amount.  I went through and deleted files from my mac and now I only have 10 gigabytes of additional space free. My mac now says I have 440 gigs of other that is used. But does not make sense, do I have a virus?

    Since you have not identified the OS your MBP is using, these extract may or may not assist you.
    http://pondini.org/OSX/LionStorage.html
    http://pondini.org/OSX/DiskSpace.html
    You may also download from the Internet OmniDiskSweeper (free) and open it it will show all of the files on your MBP and the respective sizes.
    ciao.

  • I bought elements 11 at COSTCO and downloaded on a laptop and PC!  PC died and I now have a MAC and wonder how I can transfer the program to my MAC?

    I bought elements 11 at COSTCO and downloaded on a laptop and PC!  PC died and I now have a MAC and wonder how I can transfer the program to my MAC?  I have the serial number from the purchase.

    Try downloading the PSE11 installer from Download Photoshop Elements products | 12, 11, 10
    Install then enter your serial number.

  • I have different icloud accounts on mac and phone, I have different icloud accounts on mac and phone

    When I bought my mac I set up a new icloud account. Later I wanted to access an old itunes library and synced with and old account on my phone. Now my phone won't talk to my mac.
    I want to delete the new account and restore the original but am worried about losing data. What should I do?

    You can log into both accounts on the Mac and copy your data to your old account. Do you use photostream and document syncing.

  • Can I use my Nike+ with 2 Different Computers: my home mac and work PC?

    I use my Nike+ with my Nano on my home iMac and track my runs on Nike+.com. Works great. However, I travel for work and will be back on the road next week with my work PC. I don't have itunes loaded on my work PC (not allowed - its not "corporate" software).
    So, will my Nike+ and Nano store a week's worth of workouts till I can get home and connect to my home iMac? Is it possible to somehow upload to Nike+.com from my windows PC without loading iTunes?
    I want to track all of my workouts, even when I travel.
    Thanks for your help!!

    I have the same question. On a regular basis I use my Nike+ with my desktop. However, I travel quite often and run while out of town, and would like to also use my laptop to send my run info to Nike+. I have looked on the Nike+ website and also found no answers. I do not want to sync my music on my laptop to my Nano, only the run info.
    Any ideas?
    Thanks!

  • Keeping Gmail email addresss and using Outlook 2011 for Mac and Exchange

    Hi,
    we use gmail for email at present with Outlook on a Mac. Having found that contacts and calendars cannot be synched between Oulook for Mac and Gmail I want to use exchange as a means of getting this sync working between my iPhne, iPad and OSX calendar and
    contacts.
    We actually want to continue with our gmail addresses (because it's too painful to change to anything else). I understand that gmail can forward messages to Exchange and presumably to be read in Outlook for Mac. How do we use Outlook for Mac and Exchange
    to send emails such that they are sent using our gmail email address.
    I.e people are not aware of what is going on in the background - they sent to our gmail address and receive a reply from the gmail address
    Many thanks
    Mike

    Good luck with that.
    You're not going to like this answer, but you should let Exchange be your e-mail system.  Move off Gmail to Exchange on-premises or Online.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • HT2513 I have a mac and an ipad.  when i create and ical event on my mac and then sync to my ipad, the event replicates;   however, when i create an ical event on my ipad and then sync, the ical event does not sync.

    Question:  I have a mac and an ipad.  when i create an ical event on my mac and then sync, the event transfers to my ipad. HOWEVER: when i create an ical event on my ipad and then sync, the event does not transfer.  what am i doing wrong???
    cadybill

    Greetings,
    Go to Apple > Software Update and install all available updates until no more are offered.
    On iPad go to Settings > General > Software Update and install any updates.
    Follow this article for issues with calendars: http://support.apple.com/kb/TS2481
    Hope that helps.

  • Did Mountain Lion break calendar and note sync between the Mac and iPhone?

    When I was running Lion, my calendars and notes synced properly between my Mac and iPhone (with notes going into Mail.app). After upgrading to Mountain Lion, the notes on my Mac were moved into Notes.app and my calendars appeared to be unharmed. I've recently noticed that neither my calendars nor my notes are syncing between my Mac and iPhone.
    I use iTunes to sync my data (either via USB or WiFi) and have no interest in moving to iCloud. I have tried the suggestion of enabling iCloud sync on my iPhone, then disabling, as well as telling iTunes to overwrite the calendar data on my iPhone. Neither of these approaches has solved my sync problem.

    I found a solution to my problem. Hopefully it helps someone else too.
    I deleted the following file and folder:
         ~/Library/Calendars/Calendar Cache
         ~/Library/Calendars/Calendar Sync Changes/
    When I synced my iPhone, I was presented with several sync conflicts to resolve. I resolved them and applied the changes immediately. Now my Mac and iPhone are in sync and I've confirmed that changes are syncing from my Mac to my iPhone (I'll confirm that it works the other direction tomorrow when I can look at my calendar at work).
    This is the thread that helped me:
    https://discussions.apple.com/message/19121379#19121379

  • Email and calendar app for both MAC and PC

    I have purchased a HP MediaSmart Server for my small home-based office. There will be 4 computers which access the server-2 macs (all running OS 10.5) and 2 PCs (1 running Vista and 1 running XP). Does anyone know of an email and calendar app which can be accessed by all computers? The server runs on MS Windows Home Server.
    Thanks for any suggestions.

    sorchard –
    Depends – if you are planning on connecting to an Exchange Server then I would suggest that you install Crossover (www.codeweavers.com) on your Mac’s and then Office 2003/Outlook. I am connecting to an Exchange Server running Windows Small Business Server 2003 and have not had any problems using Outlook and sharing Calendar data between my XP and Mac systems.
    If you are not planning on using Exchange and your mail usage is not that demanding (less than 20 messages daily) the you could use the basic Mail clients that come with OSX (Mail) and Windows (Outlook Express).
    Respectfully –

  • HT204266 I have two different iTunes balances between Mac and iPhone. How do I combine them?

    I have one balance for the App Store on my iPhone (ios 4), and my mac (Snow Leopard) iTunes and AppStore, and iPhone iTunes all share a different balance. When a purchase is made on one balance, the other balance is unaffected.
    How can I combine the two balances? Any idea what caused it?

    I don't think so. The only other ID I have is a developer id, and I didn't get that until several months after I got the phone. In addition purchases I made from the App Store onthe phone would sync up with It unes on the Mac meaning it would be the same id.
    However I looked at the AppStore on my phone while it was connected to the Mac with iTunes open, and now the balance has changed to the same as the others.

Maybe you are looking for

  • Diff. b/w Activity type and Statistical figures

    Hi,          Could any one explain difference b/w Activity type and Statisfical figures. I observed both usages & purposes r same and not find any difference. If so, why there is need of other.      Along with i also want to know what's internal orde

  • Pc user can't open my zip file

    Just today I sent my zip files to my co-worker, using a pc and she can't open them.  I've been sending them the same way for years and all the sudden this happens.  I'm using mac os x version 10.5.8, I would appreciate any ideas or help, could the pr

  • BBM problem pls help me.

    i upgrade my bbm to 7 then when i click it "associating bbm with your blackberry id" appears it stuck there., i waited for hours but nothing happens, before when i can use it but when i upgraded it it stuck there. what should i do so that i can use m

  • Can you tell me what is the music app in the iPad TV advert love?

    hi, there is a music app in the TV advert love in the scene where there are musicians and an electric guitar connected to the iPad. the app seems to have something like a rack of music equipment in different colours. i am uncertain as to the name of

  • I phone 4 hangs on to old Apple Id under i OS 5.0.1

    I upgraded my Apple Id and the new Id shows up on my iPhone 4 under settings >store but the iPhone presentst the old apple id when I try to upgrade the apps I have purchaded.  It wants an old pasword that the system refuses to retieve.  I've tried th