Sign In  Sign Up Live-Chat

Cell reference formula in graph labels and textboxes - Cells for Java

Last post 06-06-2007, 8:34 AM by Amjad Sahi. 5 replies.
Sort Posts: Previous Next
  •  06-05-2007, 9:08 AM 79379

    Cell reference formula in graph labels and textboxes - Cells for Java

    Is it possible to enter cell reference "formulas" in graph labels and textboxes?

    I can enter text like ='Sheet Reference'!A2 into the text of the label or textbox but it only shows as that text. It appears it has to be a special formula type and can only be a single reference and not any other formula types. (In Excel I tried to use Concatenate to string together several references and it gives an error)

    Thanks, Steve

     
  •  06-05-2007, 1:36 PM 79423 in reply to 79379

    Re: Cell reference formula in graph labels and textboxes - Cells for Java

    Hi Steve,

    We will figure it out.

    Could you try in the mean time:

    Workbook wb = new Workbook();
    Worksheet sheet = wb.getSheet(0);
    Cell cell = sheet.getCell("A2"); 

    ..... = cell.getValue();

     

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Nanjing Team
    Contact Us
     
  •  06-05-2007, 2:26 PM 79439 in reply to 79423

    Re: Cell reference formula in graph labels and textboxes - Cells for Java

    Hi Amjad,

    I just get back a null since the formula I want is not in a cell.

    What I want to do is to link a text box in my chart to a cell in my sheet.

    Do a search in the Excel help for "Link a title, label, or text box in a chart to a worksheet cell". This is what I want to be able to do from Aspose Cells for Java.

    Steve

     
  •  06-05-2007, 9:21 PM 79479 in reply to 79439

    Re: Cell reference formula in graph labels and textboxes - Cells for Java

    Attachment: Present (inaccessible)

    Hi Steve,

    Please try this version.

    Please use TextBox.setLinkedCell() method to make the text box linked to cell. See following code:

     index = chart.getTextBoxes().addInChart(0,0,200,200);
       TextBox textBox = chart.getTextBoxes().get(0);
       //textBox.setContent("dddd");
       textBox.setLinkedCell("Sheet1!C1");


    Warren Zhang
    Developer
    Aspose Nanjing Team
    About Us
    Contact Us
     
  •  06-06-2007, 8:15 AM 79564 in reply to 79479

    Re: Cell reference formula in graph labels and textboxes - Cells for Java

    Thanks Warren,

    That worked great!!!

    When will this be available in a released version?

    Steve

     
  •  06-06-2007, 8:34 AM 79572 in reply to 79564

    Re: Cell reference formula in graph labels and textboxes - Cells for Java

    Hi Steve,

    Thanks for considering Aspose.

    We will try to release our next official version (for Java) at the end of this week or so.

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Nanjing Team
    Contact Us
     
View as RSS news feed in XML