Hi!
I tried the latest build from trunk and it looks like it works, but I'm not
sure, because the default behavior when you click a slide is to go to the
next slide, even when there is no link.
How would you change your code to make it go to slide #3 instead of 2? What
does the number 1 in the href mean?
Thanks a lot!

2012/10/23 Yegor Kozlov <[email protected]>

> Please try with the latest build from trunk. I've just re-checked my
> code and it works OK for me. I'm using MS Office 2010.
>
> Yegor
>
> On Fri, Oct 19, 2012 at 10:00 PM, Márcio Albuquerque
> <[email protected]> wrote:
> > Hi Yegor,
> > Thank you for the reply.
> > I use poi-3.8-20120326.jar. I copied your code but no hyperlink is
> > generated when I set type = InteractiveInfoAtom.LINK_SlideNumber.
> > Do I have to get the last build from trunk?
> > Thanks!
> >
> > 2012/10/19 Yegor Kozlov <[email protected]>
> >
> >>         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]
> >>
> >>
> >
> >
> > --
> > 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]
>
>


-- 
Marcio Brandão Albuquerque
Analista de Sistemas
LOGANN Soluções Especiais
(31) 2512-0965

Reply via email to