Sign In  Sign Up Live-Chat

Clone Tabs of Notes of a Slide dont work

Last post 08-29-2008, 3:14 AM by vland. 7 replies.
Sort Posts: Previous Next
  •  05-08-2008, 7:37 AM 126009

    Clone Tabs of Notes of a Slide dont work

    Hello,

    I'm using this function to clone the Notes of a Slide.

    sourceTabs.size() returns allways "0".

    Is there any solution? I found a hint to use "GetEffectiveTabs" for TextFrame, but Notes don't have (in Java).

    /**
    * Kopiert die Notizen.
    *
    * @param sourceSlide
    * ist das Source-Slide.
    * @param destSlide
    * ist das Destination-Slide.
    * @throws PptEditException
    */
    private void cloneNotes(Slide sourceSlide,
    Slide destSlide)
    throws PptEditException
    {
     Notes sourceNotes = sourceSlide.getNotes();

    if (sourceNotes != null)
    {
    Paragraphs sourceParagraphs = sourceNotes.getParagraphs();

    if (sourceParagraphs != null)
    {
    Notes destNotes = destSlide.addNotes();
    Paragraphs destParagraphs = destNotes.getParagraphs();
    destParagraphs.clear();
    //----------------------------------------------------------------------------------
    {
    TextRuler sourceTextRuler = sourceNotes.getTextRuler();
    TextRuler destTextRuler = destNotes.getTextRuler();
    // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {
    Tabs sourceTabs = sourceTextRuler.getTabs();
    log.debug("Tabs: size: " + sourceTabs.size());
    Tabs destTabs = destTextRuler.getTabs();
    {
    // Default:
    Tab destTab = new Tab(10, TabAlignment.LEFT);
    destTabs.add(destTab);
    }

    for (int tabPos = 0; tabPos < sourceTabs.size(); tabPos++)
    {
    Tab sourceTab = sourceTabs.get(tabPos);
    Tab destTab =
    new Tab(sourceTab.getPosition(),
    sourceTab.getAlign());
    log.debug("Tab: " + sourceTab.getPosition());
    destTabs.add(destTab);
    }
    }
    // ??? For tabulations in this ppt please check
    // TextFrame.GetEffectiveTabs function and EffectiveTabs class.
    }
    //----------------------------------------------------------------------------------
    for (int notePos = 0; notePos < sourceParagraphs.size(); notePos++)
    {
    Paragraph sourceNoteParagraph = sourceParagraphs.get(notePos);
    Paragraph destNoteParagraph =
    new Paragraph(sourceNoteParagraph);
    destParagraphs.add(destNoteParagraph);
    }
    }
    }
    }

    thx,
    vland

     
  •  05-08-2008, 1:55 PM 126083 in reply to 126009

    Re: Clone Tabs of Notes of a Slide dont work

    Dear vland,

     

    For cloning notes, you should see this thread.

    http://www.aspose.com/community/forums/thread/126081/copy-slide-notes-with-slides.aspx

     

    There you will see the code for cloning a slide along with its notes from source presentation into destination presentation.

     

    It first clones a slide then it copies notes from source slide to destination slide. You can also see the complete java code, source and output presentations which have been attached with different posts.


    Many Thanks and Kind Regards,

    Shakeel Faiz
    Support Engineer
    Aspose Tyumen Team
     
  •  05-09-2008, 1:37 AM 126154 in reply to 126083

    Re: Clone Tabs of Notes of a Slide dont work

    Attachment: Present (inaccessible)

    Hello,

    the code in the other thread is OK, I use a similar one.

    But the fomatings of the notes are not copied propertly and I cannot do it with the API functions.

    Please look at the attached PPTs in the ZIP: "Test Präsentation 6.ppt" is the original, "testCreatePresentation.ppt" is the generated copy.

    Is there any procedure to copy the notes propertly?

    vland

     
  •  05-11-2008, 7:48 PM 126417 in reply to 126154

    Re: Clone Tabs of Notes of a Slide dont work

    Dear vland,

     

    I can see the problem; you are unable to copy the proper tabs in notes. Do you have any other formatting issue, please let me know.

     

    For the tab issue, I think, it needs a fix so I have reported it. As soon as it is fixed, I will let you know by posting here.


    Many Thanks and Kind Regards,

    Shakeel Faiz
    Support Engineer
    Aspose Tyumen Team
     
  •  05-26-2008, 2:18 AM 128595 in reply to 126417

    Re: Clone Tabs of Notes of a Slide dont work

    Hello,
    any news about this issue? Our customer is still waiting for a fix.

     
  •  07-22-2008, 9:17 AM 136456 in reply to 128595

    Re: Clone Tabs of Notes of a Slide dont work

    Hello,
    msfaiz: Anything new about this issue?

    thanks
    vland
     
  •  07-27-2008, 12:58 PM 137074 in reply to 136456

    Re: Clone Tabs of Notes of a Slide dont work

    Dear Christian,

     

    We are trying to fix this problem but it is difficult for us to give you any timeframe. Sorry for inconvenience.


    Many Thanks and Kind Regards,

    Shakeel Faiz
    Support Engineer
    Aspose Tyumen Team
     
  •  08-29-2008, 3:14 AM 141730 in reply to 137074

    Re: Clone Tabs of Notes of a Slide dont work

    Hello,
    msfaiz: Anything new about this issue?

    thanks
    vland
     
View as RSS news feed in XML