Print space

Hi, would any mind helping me in solving this problem?
Because I stuck now. The problem is to print a space in a binary tree (not binary search tree)
import java.util.*;
class BinaryTree
    public static void main(String args[])
        Scanner input = new Scanner(System.in);
        System.out.println("Enter the values to insert into the binary tree: ");
        String[] values = (input.nextLine()).split("\\s");
    TreeNode root = null;
    Queue queue = new LinkedList();
    TreeNode parent = null;
    for (int index = 0; index < values.length; index++)
        if (root == null)
                root = new TreeNode(values[index]);
        queue.add(root);
        else
        TreeNode node = new TreeNode(values[index]);
        if (index % 2 == 1) {
            parent = (TreeNode) queue.remove();
            parent.setLeft(node);
        else
            parent.setRight(node);
        queue.add(node);
    queue = new LinkedList();
    queue.add(root);
    int maxNodes = 1;
    int countNodes = 0;
    while (queue.size() > 0 )
        TreeNode node = (TreeNode) queue.remove();
        System.out.print(node.getItem().toString() + " ");
        countNodes++;
        if (countNodes == maxNodes)
        System.out.println();
                maxNodes = maxNodes * 2;
        countNodes = 0;
            TreeNode leftChild = node.getLeft();
        if (leftChild != null)
            queue.add(leftChild);
        TreeNode rightChild = node.getRight();
        if (rightChild != null)
            queue.add(rightChild);
    System.out.println();
}But from the code above, the result that I get is like this:
4 5 6 2 1 3 7 8 9
4
5     6
2     1     3     7
8     9
It can?t print like the real binary tree and I do not know how to make it accordingly.
Any suggestions?
Thanks a lot. =)

Actually the "/" symbol is not compulsory
and I am thinking about using a for loop statement to do the spacing (tab)
What the expected output is
             4
       7           8
    9    2      0    3
  1  5Here is my code contains 2 classes: TreeNode class and BinaryTree class
import java.io.*;
public class TreeNode
    public Object da;
    public TreeNode left;
    public TreeNode right;
    public TreeNode(Object newItem)
        da = newItem;
        left = null;
        right = null;
    public TreeNode(Object newItem, TreeNode leftNode, TreeNode rightNode)
        da = newItem;
        left = leftNode;
        right = rightNode;
    public void setItem(Object newItem)
        da = newItem;
    public Object getItem()
        return da;
    public void setLeft(TreeNode leftNode)
        left = leftNode;
    public TreeNode getLeft()
        return left;
    public void setRight(TreeNode rightNode)
        right = rightNode;
    public TreeNode getRight()
        return right;
    public int left (int i)
        return 2*i; 
    public int right (int i)
        return 2*i + 1; 
    public int parent (int i)
        return (i-1)/2;
import java.util.*;
class BinaryTree
    public static void main(String args[])
        Scanner input = new Scanner(System.in);
        System.out.println("Enter the values to insert into the binary tree: ");
        String[] values = (input.nextLine()).split("\\s");
    TreeNode root = null;
    Queue queue = new LinkedList();
    TreeNode parent = null;
    for (int index = 0; index < values.length; index++)
        if (root == null)
                root = new TreeNode(values[index]);
        queue.add(root);
        else
        TreeNode node = new TreeNode(values[index]);
        if (index % 2 == 1) {
            parent = (TreeNode) queue.remove();
            parent.setLeft(node);
        else
            parent.setRight(node);
        queue.add(node);
    queue = new LinkedList();
    queue.add(root);
    int maxNodes = 1;
    int countNodes = 0;
    while (queue.size() > 0 )
        TreeNode node = (TreeNode) queue.remove();
        System.out.print(node.getItem().toString() + " ");
        countNodes++;
        if (countNodes == maxNodes)
        System.out.println();
                maxNodes = maxNodes * 2;
        countNodes = 0;
            TreeNode leftChild = node.getLeft();
        if (leftChild != null)
            queue.add(leftChild);
        TreeNode rightChild = node.getRight();
        if (rightChild != null)
            queue.add(rightChild);
    System.out.println();
}Any suggestions?
Thanks a lot. =)

Similar Messages

  • Lightroom 4 Export sizes not accurate? Print Space website london

    Hi Guys,
    I'm currently exporting my images from lightroom 4 to get them printed at the print space in London
    i exported 3 files at A4 size in mm, i then uploaded them onto the print spaces website and all 3 images are very slightly off in dimensions
    i took all 3 pics with the same camera, same lens, and they are not cropped at all, all exported at 300 DPI, all exported into Jpeg, all export dims bang on
    i also exported another image which was 16"w x 22"h, again i uploaded to the website and same thing it stated the original file size was 16,9" x 23.2"
    i sent the guys a message but they only use photoshop, so not that clued up with lightroom, has anyone else experienced this problem
    when exporting an exact size and yet it comes out slightly different?
    could it be that lightroom 4's measurements are out? i find that unlikely as everyone would complain!
    i'm struggling for ideas on what else to try to solve this issue
    One thing the guy mentioned at the print space was that you can switch to custom sizes and enter what ever size you require the print to be
    but when you amend the width, it automatically changes the height... and vice versa, so you cant pick both custom H and W at the same time.
    who would have thought that printing in A4 would be so difficult !!! :-)
    Thanks for your time hopefully someone might be able to shed some light on this.
    Cheers
    Chris

    We'll need some details
    For one such photo, we need the exact pixel dimensions of the photograph (you said you didn't crop, so I want the pixel dimensions of the uncropped photo)
    We'll also need to know your exact settings in the Image Sizing dialog box (screen capture is best, but you can type these in if you need to)
    And since I'm an American and not familiar with A4, exactly what are the dimensions of an A4 piece of paper?

  • Reg : print spaces in pl/sql block

    Hi friends,
    How can i print spaces in pl/sql block .
    Eg :
    1
    'onespace '1
    '2 spaces'1
    '3spaces'1
    etc..
    Thanks in Advance,
    Chinnu.
    Edited by: chinnu on Jul 8, 2009 10:55 PM
    Edited by: chinnu on Jul 8, 2009 10:56 PM

    Can you please elaborate more on your requirement?
    What data is in your tables? What outcome do you expect?
    Use around your code to preserve formatting..
    Edited by: Alex Nuijten on Jul 9, 2009 8:00 AM                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to print space as thousand seperator and comma as decimal seperator

    Hi All,
    I have requirement where I need to print the amounts with space as thousand seperator and comma as decimal seperator.
    I have a field wrshb which is of type mhnd-wrshb. currently I am printing this. In the adobe layout I have declared this coloumn as Decimal field.
    Now in the output it is printing as comma as thousand seperator and dot as decimal seperator.
    For example ,currently the value is printing as 32,811.41
    but I want the amount as 32 811,41
    I have declared the variable as char16,  using write statement in the interface I moved the value from currency field to char field.
    Then in debugging i checked the value comes as 32,811.41 and it goes to dump with teh reason-cannot interpret as a number.
    Can anyone help me in fixing this?
    Thanks and Regards,
    Karthik Ganti.

    Hi Adam,
    As per initial requirement, I have set the format such that the amount is printing in below format as required.
    Locale---Italian.
    Space as thousand seperator and comma as decimal seperator.
    for example 1 234,45
    As some of the Currencies will not have decimals, now users would like to print amount without decimals. For example in my case amount  printing in KRW ( Korean currency ) is also similar to the above format which is wrong.
    for example Now amount is printing as 55 000,00. But actually it should be 550 000. Similarly for JPY currency also, as it doesnot haves decimals ( checked in TCURX table ).
    I have written some logic in the interface. below is the logic.
    WRITE:
        wa_mhnd1-wrshb to wa_item-wrshb CURRENCY WA_ITEM-WAERS.
    *READ TABLE lt_tcurx INTO lwa_tcurx WITH KEY currkey = wa_item-waers BINARY SEARCH.
      IF sy-subrc  = 0.
      IF lwa_tcurx-currdec = '0'.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      else.
       REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
        REPLACE ALL OCCURRENCES OF '.' in  wa_item-wrshb WITH ','.
    endif.
    ENDIF.
    a. when the write statement gets executed amount will be in ,. ( 1,234.45 )format. Then my logic gets executed correctly. In this company code is CH10 ( EUR ) and KR10.
    b. But sometimes after the write statement gets executed amount will be in ., format ( 1.234.45 ). In this case my logic works, but gives the wrong value. In this case company code is VN10 ( EUR )
    In both the cases currency is EUR.
    Will the decimal format change accordingly based on the company code code currency.Can you please tell me why write statement behaved differently.
    Do I need to change any locale in the adobe form, or any other logic to be written in interface. ?  I am trying it out from long time, but not able to fix it.
    Can  you please help me how to achieve this ?
    Thanks and Regards,
    Karthik Ganti.

  • Lf_fm_name  error if default printer space

    hı all
    l want send smartform like  pdf with mail   but if default printer name space   send_error or INTERNAL_ERROR  in lf_fm_name function and ı dont write default printer . how can ı solved no write default printer name . you can see my code below .
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname                 = 'ZSEFER_DETAY'
      VARIANT                  = ' '"
      DIRECT_CALL              = ' '"
      IMPORTING
        fm_name                   =   lf_fm_name
      EXCEPTIONS
        no_form            = 1
        no_function_module = 2
        OTHERS             = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *W_CTRLOP-no_open = 'X'.
    **W_CTRLOP-no_close = 'X'.
    W_CTRLOP-device = 'LP01'.
    W_CTRLOP-GETOTF = 'X'.
    W_CTRLOP-NO_DIALOG = 'X'.
    W_COMPOP-TDNOPREV = 'X'.
    CALL FUNCTION lf_fm_name
    EXPORTING
    CONTROL_PARAMETERS = W_CTRLOP
    OUTPUT_OPTIONS = W_COMPOP
    USER_SETTINGS = 'X'
    gt_1003 = zsd_st09_01
    IMPORTING
    JOB_OUTPUT_INFO = W_RETURN
    TABLES
    GT_1002 = GT_102
    GT_1001 = gt_1001
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    hı madruha
    W_CTRLOP-device = 'LP01'.
    W_CTRLOP-GETOTF = 'X'.
    W_CTRLOP-NO_DIALOG = 'X'.
    W_COMPOP-TDNOPREV = 'X'.
    *W_COMPOP-tdprinter = 'LP01'.
    W_COMPOP-tdnewid = 'X'.
    *W_COMPOP-TDNOARCH = 'X'.
    *W_COMPOP-tddest = 'LP01'.
            comm_val-adsmtp-smtp_addr = ismtp-smtp .
             call function 'CONVERT_COMM_TYPE_DATA'
               exporting
                 pi_comm_type      = 'INT'
                 pi_comm_values    = comm_val
               importing
                 pe_device         = w_ctrlop-device
                 pe_mail_recipient = mail_recipient.
    CALL FUNCTION lf_fm_name
    EXPORTING
    CONTROL_PARAMETERS = W_CTRLOP
    *OUTPUT_OPTIONS = W_COMPOP
    USER_SETTINGS = 'X'
    *mail_recipient = mail_recipient
    gt_1003 = zsd_st09_01
    yukleyen = yukle
    sofor1 = sofor1
    not1 = not1
    IMPORTING
    JOB_OUTPUT_INFO = W_RETURN
    TABLES
    GT_1002 = GT_102
    GT_1001 = gt_1001
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    okey applaying your solving but error sy-subrc 3 .
    regard sinan .

  • Extra blank space in formula and summary fields

    I have a report that gives text output. In that I have 3 fields which are numeric.
    One of them has source as summary column- numeric 3 digits(format mask 000) and other 2 has source as formula column- numeric format mask (0000.00)
    Here is my problem- When the value in my summary column is 3, it prints space(instead of 0) and 03,
    if the value is 56, it prints a space and 56. if the value is 139, it prints a space and 139. Now this increaases the size of my line by 1 space, which is acceptable to the system that we are feeding this data.
    Similar thing is happening for the formula columns, 1 space (instead of 0) and then 000.00 is printed, if the value is filling the format mask, then it will have an extra space before giving out the value 1234.56.
    Can somebody please help me with the situation.
    Thanks
    Anna

    Finally, I got the fix.
    Here is what I did: Instead of the format mask '000' or '099' or '0nn' I used '000Y'
    adding a Y supresses the extra space that is reserved for + or - sign. And supression need to be added at the end like I showed, not like 'Y000'.
    Now my data looks like this, which is what I wanted:
    04/23/20120020123.451234.5610/24/2008
    If you look close, there are no spaces now as compard to my previous data line.
    Thank you all both for spending some time and giving me pointers.

  • Problem with JPY and KRW currency in PDf printing

    Hello,
    we are printing the PDF account statement. Till today for KRW and JPY currencies, if the value is 30000 ( I mean more than 3 digits ), then it is printing as 30 000 ( space as seperator ). But we have tried to post a document and checked it for the value 300. in the output PDF, it is printing 300,00 which is wrong.
    It should print as 300 only as this dont have any decimals ( from TCURX table). I have declared the amount variable as char16. Because I had other requirement where I need to print space as thousand seperator and comma as decimal seperator ( eg: 1 221,85 ). Now everything is printing fine except for JPY and KRW currencies amounts.
    I understood that this problem is occuring only when the amount for JPY or KRW currency is less than or equal to 3 digits.
    I have checked some of the posts and gone through the some of the OSS notes, but i couldnot the exact one which could solve my issue.
    Can anyone please help me in fixing this issue ?
    Thanks in advance..!!!
    Best regards,
    Karthik.

    Hello Karthik
    You can explicitly multiply the amount by 100 for JPY KRW currency and display the rounded figure (use function trunc)
    Have you tried using FM FM  BAPI_CURRENCY_CONV_TO_EXTERNAL to format the currency amount.
    Regards
    Sandy

  • Dark prints using CS5 & Epson R2400 ongoing problem, now new PC and magenta cast

    Have tried every combination of set up in trying to solve problem. Had One Eye (now defunct lamp) various experts etc etc but compensated for dark prints by having screen lightened to bizarre point. Now having a new PC am faced with massive magenta cast. I really don't want to buy a new printer but have had the dark print problem since I got it. Have spoken to Adobe and Epson at length but eventually washed their hands. I feel it is something to do within the computer set up or Photoshop - don't think its printer problem. All drivers updated regularly. Thought it could be monitor problem but don't really think this is the case.
    Any ideas welcome as I think I have tried everything. Use Windows 7.
    Am retired and not very technically minded!  Serious amateur photographer.

    I have an Epson 1280 printer, and I have the same problem with prints. Part of the problem are the different color profiles in the monitor and the printer. The other problem to deal with is the type of photo paper used. While looking at web sites, I found that the ICC Color Profiles for the printer are on the install disc and are not automatically installed. One of the links describes which folder to install the profiles on both Mac & Windows computers.
    As station_two wrote, calibrate your monitor first.
    Below is a link about calibrating.
    http://dpexperience.com/2009/12/18/calibrating-your-monitor-to-your-printer/
    The next link is for printer tips
    http://www.normankoren.com/printers.html#Printer_tips
    And some more here
    http://www.digitaldog.net/tips/
    I do not have an exact answer for you because I have not figured it out myself, but here is what I have been doing on my prints. I might recommend that you work on a copy of the original.
    In the Layer floating window, create a New Adjustment Layer by clicking on the half black/half white circle, and choose Hue/Saturation or Color Balance or Selective Color. Because the prints come out too red, you want to increase the green sliders, which is the opposite of red, and/or decrease the red. (Layer>New Adjustment Layer>Color Balance) is another way to do it.
    Under the menu item Image>Adjust Levels. Move the center triangle at the bottom to lighten the mid-range, or use the center dialog box and change it to 1.20 or 1.30, for example.
    Now press Print with Preview (but you really are not going to print).
    When the dialog box comes up, make sure the Print Space: dropdown is set to Epson Paper or whatever you are using.
    I have been using Relative Colorimetric. Press Print. Another dialog box will come up. At the bottom will be a button for Preview, which will generate a preview of what the photo will look like if printed.
    Keep going back to the original and double click on the Adjustment Layer and adjusting it until the Print Preview looks ok.
    Be sure when you actually print that the paper and color settings in the Epson dialog box match your settings in Photoshop. There is a dropdown that has Print Settings or Color. Often they don't match unless you print several photos in a row. I have found printing at the lower settings (less than 360 dpi) also messes up the color.
    It is not an excellent solution, but until I can figure out more, I am in the same boat as you.
    I'd suggest saving the lightening and color adjustments as two different Actions.

  • Double profiling printing from in InDesign CS5 to an Epson 7800

    I had to print a collage of 28 images on one page. In the InDesign print dialogue where you choose the colour management in the options field in colour handling it says let InDesign determine Colours which is unachangeable, certainly on my machine. Under that it suggests you pick the printer profile that you wish to use. When I do this the print is all washed out and pink. I'm aware of the conflict warnings if you try and set stuff in the Mac print dialogue. However trying this I get this error message once I come out of the Mac dialogue and press print in the InDesign dialogue: "Printing error: The Adobe Print Engine has failed to uotput your data due to an unknown problem." Two things: my friend doesn't get this error message and can print away. I finally solved my print problem by choosing Adobe 1998 as my printer profile in InDesigns colour management dialogue!.
    My Mac is on 10.5.8 and my friends is on 10.6.8 so there is that. I'm also aware that its possible to get lucky with some files using Adobe 98 as a print space because I used to do it all the time years ago before I ever knew about colour management so I'm not convinced I have nailed this and using Adobe 98 as the printer profile in InDesign just seems stupid. I printed a single image through Photoshop that forms part of the collage and it perfectly matched my colour managed workflow.
    If anybody has any ideas i would be very grateful To hear them.
    Regards. Patrick.

    I wish I could help, but I just upgraded to CS5.5, and I'm also on Mac OS5.8. I've gone back to CS2 to print because, out of CS5.5 I get a poor b+w print. Adobe tech says my printer is old and suggested updating my printer driver, but I'm using a driver appropriate to my old HP OfficejetPro. My printer's been a workhorse, but they're so cheap, I may buy another printer. It makes no sense that CS5.5 should be so picky about printers.

  • Problem with Photoshop Elements Printing

    I have been using Photoshop Elements for a couple of years now and know it pretty well.  Today while attempting to print, a strange problem came up:  After going through the protocol to make a print, just before the image prints PE does a very fast auto correction that basically ruins all the color correction I have made on the image.  How do I disable this function?

    Hi and thanks for your reply. I checked the settings under "Print", "More Options", then "Color Management" and it only has "Print Space", none of the three options that you said I should have.  Am I looking in the wrong place?
    Date: Mon, 3 Sep 2012 11:14:57 -0600
    From: [email protected]
    To: [email protected]
    Subject: Problem with Photoshop Elements Printing
        Re: Problem with Photoshop Elements Printing
        created by 99jon in Photoshop Elements - View the full discussion
      Check your color management by clicking More Options in the print dialog There are basically three options:1) Printer Manages Color2) Elements Manages color3) No color Management Make sure everything is consistent e.g. if you choose Elements manages color make sure color management is switched off in the print driver. 
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4669848#4669848
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4669848#4669848. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Warning out of gamut for printing

    Hi I am not sure whether I have unintentionally changed some setting but I am unable to match the color of my image to the color of my webpage.
    I thought it might have something to do with the image, so I made a new image of solid color and put that in and it was better but still did not match perfectly the bg color of the webpage.  Colour is #fd5554.
    Then I noticed the little icon in my color picker panel, warning out of gamut for printing, so I googled the problem and have followed these instructions:
    Choose File > Print.
    Choose Color Management from the pop-up menu.
    For Color Handling, choose Photoshop Manages Colors.
    which did not fix the problem.
    Next I went to PS Preferences
    which did not fix the problem.  So I shut PS down to see if this would help and still the same problem.
    This is the image I am trying to insert
    If anyone knows how to fix this I would be eternally grateful!

    but I am unable to match the color of my image to the color of my webpage.
    If your Web page is filled with #fd5554
    and you fill an sRGB image in Ps (Photoshop) with #fd5554 and Save a .jpg (strip the profile)
    the page and image should match on your Web page (not accurate but "match" none the less).
    The problem on the Web test is likely you are embedding a profile in the Ps image (a color managed browser is using the .jpg profile) and the browser app is applying Monitor RGB to your page color — that's why they are mismatching in your first example.  Either that or you are using AdobeRGB in Photoshop and not Converting to sRGB...
    Ps, on the other test, is using the embedded profile (or applying its Working RGB, i.e. AdobeRGB, if you are not using the embedded sRGB profile) and Converting to your print space.
    I don't believe a "gamut" issue would cause a mismatch, if gamut was clipped or compressed they would be eqaually so affected.
    It is somewhat complicated to explain any further, but try your Web test AFTER converting your dog to sRGB, then fill #fd5554, then Save As sRGB .jpg (with no profile).
    Place that on your Web #fd5554 and the background and Ps will "match/blend" in most/any browser (Mac or PC)...
    Note: If you post any more Ps screenshots, be sure to include the selection for your Source Space so we know what Source Space you are using:

  • Why will my photos only print in black and white?

    My computer crashed a while ago and I had to re-install my photoshop elements 6. Since then, photos will only print in black and white through elements, even though they'll print in colour through other programs on my computer. This must be a settings issue in the elements program but I can't find anything that seems to work. Any help would be greatly appreciated!

    Hi toxryan,
    Thanks for taking the time to help. Issue definitely not resolved.
    In Organiser there is no direct print link so I click on 'file' then 'print'. There are no relevant options in the print box - options only deal with type of printer, size of paper etc. If I try 'page setup' there are no relevant options. If I try 'more options' the only mention of colour is 'colour management' where it asks if I want print space same as the source etc.
    This is driving me mad. Any ideas?
    Thanks
    Heather

  • Error Message:Can't print illustration. Color Management systems inconsistent.

    I am getting this error message, "Can't print illustration. Color management systems are inconsistent." I just upgraded to CS5(from CS2) on a Dell Studio using an Epson WorkForce 1100 or an Epson Sylus NX400. I am a rank amateur in AI & have no idea how to fix this. I do not seem to have the option to turn off color management in either of my printers to default to AI. All I am trying to print are some labels using regular fonts and a few smoke brushes for color. These are not wildly colorful or complicated. I KNOW I should be using a Mac but I do not have one...sigh...
    Thanks for ANY help.
    Marion.

    not sure I understand the core problem...but what happens if you Save As "Adobe PDF" and Convert to your Print Space there in Output (then print from Acrobat or place in InDesign, heck maybe even open the .pdf in Ai and try again):

  • Why can't I get Blue Colors to Print Correctly??? It prints violet/blue!!

    I'm runing Windows 7 - 64 Bitwith Adobe CS5 Master Collection. But ever since I allowed CS5 Photoshop to control my new printer (HP Photosmart Prem C310) to do a test print of a graphic that I created all of my Blues print a violet/blue color, no matter what color blue I try to print. It has even affected MS Word & MS Project when I try to print known blue colored fonts or Gantt Chart Blues will no longer print blue. but it will print the same violet/blue color. I've even tried a brilliant stock windows blue which all view great, but prints the same shades of violet/blue! All my color paletes and blues view perfect. My monitor is calibrated and I've reset my new printer several times and still the same problem. I never had this problem before until I installed CS5 Suite.
    A strange thing is that I can run the check printer test and the data and image that is stored in the printer willl print every color perfectly, including blues. Plus I've ran a full color copy directly from the scanner bed and the copy prints perfect as well. I almost feel as though Adobe CS5 has possessed my PC and Printer! So does anyone on here have the knowledge of getting this to print correctly like it did before installing CS5 Master Suite? Thanks to all who can take the time to respond back with solutions to my problem as I have been trying to correct it for nearly three weeks now! Could  the problem be in Adobes hidden files possibly??? Thanks....

    Dave,
    there are at least two explanations, why Blue appears Violet on a print:
    1. The printer isn't correctly calibrated or not calibrated at all.
    2. A difficult explanation, please look here at p.60,61:
    http://www.fho-emden.de/~hoffmann/cielab03022003.pdf
    (the doc may have 2MBytes)
    We are in the color space CIELab. A printer color space (gamut volume)
    looks like a fruit in CIELab.
    Pure (saturated) blue is mostly out-of-gamut for the printer space -
    it cannot be printed with correct appearance.
    A gamut compression is required. The blue has to be shifted towards
    the middle axis L* of CIELab, in order to make it less saturated.
    Correctly that should be done on a curved line (p.60, plane a*,b*),
    but often it's done on a straight line towards the middle axis (dashed).
    This straight line crosses areas which are not blue but slightly violet!
    Remedies:
    Use Softproofing for the appearance in the simulated prints.
    If it is photo, for instance a blue sky, then shift the sky blue slightly
    towards cyan.
    If it is a spot color or a strong RGB blue, then use something else.
    Related:
    Handling sky blue
    http://www.fho-emden.de/~hoffmann/skyblue14072008.pdf
    Gamut mapping
    http://www.fho-emden.de/~hoffmann/gamshow15052009.pdf
    Some illustrations are understandable without mathematics
    (p.18-21).
    Hope this helps a little.
    Best regards --Gernot Hoffmann
    Message was edited by: Gernot Hoffmann

  • Colours in 'Print with Preview' window are wrong

    I am using Photoshop CS on a Mac G4 (PPC) with OS X 10.4.11.
    I usually use 'Print with Preview' to print photographs. I used to get good results, but something seems to have changed (or I have accidentally changed a setting somewhere). When I open an image in Photoshop, the colours on my monitor (which I regularly calibrate) look right. But when I go to 'Print with Preview', the image shown in the small layout window is now much darker, reds are more brown and in general the colours look quite wrong. And what is even worse is that when I print, the results match the wrong colours in the Preview window and not the correct colors that I see when I look at the image directly in Photoshop.
    I attach a screenshot, showing (on the left) a colour test image opened directly in Photoshop CS and (on the right) how it looks in the Preview window.
    Can anyone suggest what may have gone wrong? I should be very grateful for suggestions.

    The words that helped [me] the most to understand Photoshop color management theory are:
    Color Management starts with a good monitor profile (to PROOF the color accurately on the monitor), and Color Management ends with a good target profile to PROOF the color accurately on the print.
    The file (the document's Source Color Space) is independent of Photoshop:
    The Color Management System CMS, Photoshop, ONLY uses the monitor profile for one thing: To PROOF source file on the monitor (the monitor profile has zero to do with how the file prints).
    The Color Management System CMS, Photoshop, ONLY uses the printer (target) profile Print Space for one thing: To PROOF source file on the paper (the printer profile Print Space has zero to do with how the file looks on the monitor).
    +++++
    While this simple PROOFING ANALOGY doesn't address the pitfalls of relying on a bad monitor to evaluate and adjust digital color, it does make two important facts about Photoshop and professional color-managed printing workflows:
    1) The printer can PROOF (print) the source file faithfully regardless of how right or wrong the monitor is set up, and
    2) The monitor can PROOF (display) the source file faithfully regardless of how right or wrong the printer is set up.
    Getting a known good file (like the Adobe RGB—or better yet the ProPhoto RGB—PDI Photodisc-GettyImages RGB reference image) into Photoshop allows me to evaluate the monitor alongside the print to help me identify where the problem is occurring.
    +++++
    BTW, thank you for the helpful and solved hits.

Maybe you are looking for