I'm currently trying to merge the contents of one powerpoint file into
another using the HSLF libraries.  Everything is working fine, except the
text is coming into the new file white.

Here's a snip of the Groovy code I've written:
if (incomingShape instanceof TextBox){
    TextBox inTextBox = incomingShape
    inTextBox.setSheet(targetSlide)
    inTextBox.getTextRun().supplySlideShow(TargetPPT)
    inTextBox.getTextRun().setSheet(targetSlide)
    inTextBox.getTextRun().getRichTextRuns().each {theRTR->
        println "DEBUG A current text run's color is
${theRTR.getFontColor()}"
        theRTR.setFontColor(Color.BLACK)
        println "DEBUG B current text run's color is
${theRTR.getFontColor()}"
    }
    heightAdjustShape(inTextBox)//local method to help layout
    targetSlide.addShape(inTextBox)
}
Before setting the sheet, DEBUG A was reporting the color as black, now it
reports as white. DEBUG B always reports as black. And, regardless, when
opening up the resulting ppt, the text is white.

Any ideas?

Thanks,

Jeff Lavezzo

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

Reply via email to