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]
