wordpress hit counter
(Info)Adding Date/Time,Slide Number,Footer to a Presentation Document - PresentationML - Formats - OpenXML Developer

(Info)Adding Date/Time,Slide Number,Footer to a Presentation Document

Formats

Discussions about working with different Open XML Formats

(Info)Adding Date/Time,Slide Number,Footer to a Presentation Document

  • rated by 0 users
  • This post has 3 Replies |
  • 0 Followers
  • Date,footer text and slide number can be added to a slide from,'Header and Footer' button of the 'Text' group in the 'Insert' tab.

    In a Slide the above three fields form a slide part just like the Title or the SubTitle of the slide.The onlyy differance would come in the Place Holder type of the Slide part,which would be,'dt' in case of Date,'sldNum' in case of Slide number and 'ftr' in case of a Footer.

    You can add the following as a slide part to add date in your slide,

    <p:sp>

          <p:nvSpPr>

               <p:cNvPr id="4" name="Rectangle 3" />

                <p:cNvSpPr>

                     <a:spLocks noGrp="1" />

          </p:cNvSpPr>

                <p:nvPr>

                     <p:ph type="dt" sz="half" idx="10" />

          </p:nvPr>

     </p:nvSpPr>

       <p:spPr />

        <p:txBody>

            <a:bodyPr />

            <a:lstStyle />

              <a:p>

                 <a:fld id="{265C978C-CF21-41B6-B1B6-B0AB339D534B}" type="datetime1">

                     <a:rPr lang="en-US" smtClean="0" />

        </a:fld>

               <a:endParaRPr lang="en-US" />

       </a:p>

    </p:txBody>

     

    </p:sp>

     

     

    In the node ‘ph’,the attribute type,is ‘dt’,and attribute,’idx’ specifies a place holder index,size can be ‘full’, ‘half’ or ‘quarter’ of the body placeholder on the master.In the node 'fld' ,the attribute 'Id' is unique.

     

     

    There are 13 differant formats of Date/Time,and hence the types can range from 'datetime1' to 'datetime13'.

     

    To add Slide number add,

     

    <p:nvSpPr>

                    -----

                     <p:ph type="sldNum" sz="quarter" idx="12" />

          ----

         ----

     

                 <a:fld id="{265C978C-CF21-41B6-B1B6-B0AB339D534B}" type="slidenum">

                        -----

             </p:txBody>

      

    and finally to add Footer Text,

     

    <p:nvSpPr>

                    -----

                     <p:ph type="ftr" sz="quarter" idx="13" />

          ----

           ----

     

                 <a:p>

                            <a:r>

                 <a:rPr lang="en-US" smtClean="0" />

                                    <a:t>This is Footer</a:t>

                     </a:r>

                        <a:endParaRPr lang="en-US" />

               </a:p>

                      

             </p:txBody>

     

     

    Regards,
    Vijayeta

     

  • Hi Vijay!

    I saw your blogs for Power point its quite useful. But one I am more intereseted is to create presentation . In that when I create presentation and try to open in power point It always complain about the format of file and I checked the presentation is missing many files. It would be good if you provide some sample that work prefectly with power point.

    Thanks

  • Hi Sharad,

    Thanks,

    Well,the presentation files you've created have missing files because,the files such as 'viewProps.xml',and 'presProps.xml' are not really needed for the basic presentation file.

    You can download the file from,

    http://www.freefileupload.net/file.php?file=files/031106/1162538347/Presentation.pptx

    Regards,

    Vijayeta

  • Thanks Vijay for the reply but thing is after generating presentation power point complain about the format of the file. and when I say save as and open that file I find it adds those files(viewprops.xml etc). I need to create a simple example where I can read data and images from source and create slides out of it and it should open without any problem.

    I have done that for text only slides but if you some thing for me to share apart from example that you have uploaded that would cool.

    Thanks

    Sharad

Page 1 of 1 (4 items)