SlideShow ppt = new SlideShow();

        Slide slideA = ppt.createSlide();
        Slide slideB = ppt.createSlide();

        TextBox textBox = new TextBox();
        String text = "Go to Slide #2";
        textBox.setText(text);
        textBox.setAnchor(new Rectangle(100, 200, 200, 50));

        String href = slideB._getSheetNumber() + ",1,Link";
        Hyperlink hyperlink = new Hyperlink();
        hyperlink.setAddress(href);
        hyperlink.setTitle(textBox.getText());
        hyperlink.setType(InteractiveInfoAtom.LINK_SlideNumber);
        int linkId = ppt.addHyperlink(hyperlink);

        textBox.setHyperlink(hyperlink);
        slideA.addShape(textBox);

        FileOutputStream out = new FileOutputStream("hyperlink.ppt");
        ppt.write(out);
        out.close();


On Fri, Oct 19, 2012 at 3:19 AM, Márcio Albuquerque
<[email protected]> wrote:
> Hi!
> I've seen in the hslf examples that it is possible to create a power point
> hyperlink to an URL using POI.
> I am wondering if it is also possible to create a hyperlink that points to
> another slide.
> Is it?
> Thanks in advance.
>
> --
> Marcio Brandão Albuquerque
> Analista de Sistemas
> LOGANN Soluções Especiais
> (31) 2512-0965

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to