<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://openxmldeveloper.org/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>PresentationML - Recent Threads</title><link>http://openxmldeveloper.org/discussions/formats/f/15.aspx</link><description /><dc:language /><generator>Telligent Community 5.6.582.12783 (Build: 5.6.582.12783)</generator><item><title>Can the Presentation Builder be used without the USING() { } Statement?</title><link>http://openxmldeveloper.org/thread/160852.aspx</link><pubDate>Sat, 11 May 2013 22:59:33 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160852</guid><dc:creator>YasiduY3K</dc:creator><slash:comments>3</slash:comments><comments>http://openxmldeveloper.org/thread/160852.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160852/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been trying out the presentation builder code, and what I am aiming is to, instead of having USING statement, to directly load presentations from PowerPoint files as memory streams, perform cloning and then save the changes back to memory streams. The target is to allow manipulation of the PowerPoint object, even after the cloning is done and save it back at the desired point.&lt;/p&gt;
&lt;p&gt;But so far I&amp;#39;ve had only failure &amp;nbsp;n this aspect. &lt;/p&gt;
&lt;p&gt;Can this be done?&lt;/p&gt;
&lt;p&gt;I will attach a code sample &amp;#39;asap&amp;#39;, with more clarifications.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Using Custom UI Editor if statement when file name is .pptx</title><link>http://openxmldeveloper.org/thread/160843.aspx</link><pubDate>Thu, 09 May 2013 08:47:47 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160843</guid><dc:creator>y0gster</dc:creator><slash:comments>0</slash:comments><comments>http://openxmldeveloper.org/thread/160843.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160843/rss.aspx</wfw:commentRss><description>&lt;p&gt;i just found this Custom UI Editor while searching for a way to have an onload event on Powerpoint. Now I need is an if statement in the UI editor that would prevent it from running when the file extension is pptx. Here is the line of code im using in customui:
&lt;div&gt;&lt;span style="font-size:xx-small;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;
&lt;pre class="prettyprint"&gt;&amp;lt;customUI xmlns=&amp;quot;http://schemas.microsoft.com/office/2006/01/customui&amp;quot; 
onLoad=&amp;quot;onLoadCode&amp;quot; &amp;gt;
&amp;lt;/customUI&amp;gt;&lt;/pre&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/span&gt;I can write the code in vba but here in xml im totally lost. What I was thinking was something like this which I wrote in vba:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class="prettyprint"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;if right(filename,4) = &amp;quot;pptm&amp;quot; then
onLoad
=&amp;quot;onLoadCode&amp;quot; 
end if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>newMasterPart.SlideMaster.Preserve = false, is not working</title><link>http://openxmldeveloper.org/thread/160821.aspx</link><pubDate>Wed, 08 May 2013 11:37:26 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160821</guid><dc:creator>YasiduY3K</dc:creator><slash:comments>1</slash:comments><comments>http://openxmldeveloper.org/thread/160821.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160821/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to use the Preserve attribute of Slide Master, in order to clear unreferenced Slide Masters.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My aim is to clone all slides in a presentation(has only one slide) to a base presentation(has only one slide) and change the layout of the cloned slides to the layout of the base presentation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The approach I took was,&lt;/p&gt;
&lt;p&gt;(Base presentation denoted as &amp;nbsp;B, to be cloned presentation is denoted as C)&lt;/p&gt;
&lt;p&gt;Copy the slide part of the slide &amp;nbsp;of C into B.&lt;/p&gt;
&lt;p&gt;Copy the master of the C into B.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Set the SlideMaster.Preserve attribute to false in newly copied master.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Delete existing layout parts of the newly added slides pars in B(cloned slides from C).&lt;/p&gt;
&lt;p&gt;Add the required layout part from B to the newly added slide parts.&lt;/p&gt;
&lt;p&gt;Traverse through LayoutId&amp;#39;s and re order them to contain unique values.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;But when I open the resultant file, although there are no reference to the MasterSlide copied from C. It still exists.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Although i change the layout slide in the same code snippet, in practice it will be performed at a different execution path, hence not coping the MasterSlides of C is not an option.&lt;/p&gt;
&lt;p&gt;Base Presentation (B)&lt;/p&gt;
&lt;p&gt;&lt;img border="0" src="http://openxmldeveloper.org/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/15/6076.Base.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Master Slide of Base&lt;/p&gt;
&lt;p&gt;&lt;img border="0" src="http://openxmldeveloper.org/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/15/0537.MasterBase.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Clone presentation (C)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img border="0" src="http://openxmldeveloper.org/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/15/3364.ToBeCloned.JPG" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Master Slide of&amp;nbsp;Clone presentation&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img border="0" src="http://openxmldeveloper.org/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/15/1108.MasterToBeCloned.JPG" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Resultant Output&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img border="0" src="http://openxmldeveloper.org/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/15/5736.OutPut.JPG" alt=" " /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Master slides of Output&lt;/p&gt;
&lt;p&gt;&lt;img border="0" src="http://openxmldeveloper.org/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/15/2620.OutPutMaster.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Although there is no references to the second master slide, it still prevails even after setting the preserve attribute to false.&lt;/p&gt;
&lt;p&gt;A code sample is attaches as Post2.zip&lt;/p&gt;
&lt;p&gt;Files in Post2:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BaseSlide.pptx (basepresentation)&lt;/p&gt;
&lt;p&gt;ToBeCloned.pptx&amp;nbsp;(clone presentation)&lt;/p&gt;
&lt;p&gt;Out2.pptx (resulting presentation)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>How to group several Shapes into a GroupShape Object</title><link>http://openxmldeveloper.org/thread/160767.aspx</link><pubDate>Thu, 02 May 2013 07:46:54 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160767</guid><dc:creator>denlar</dc:creator><slash:comments>1</slash:comments><comments>http://openxmldeveloper.org/thread/160767.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160767/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hello OpenXML Developers,&lt;/p&gt;
&lt;p&gt;I am new to this forum , but I found a lot of usefull threads here yet.&lt;/p&gt;
&lt;p&gt;Today i haven&amp;#39;t found any answer to this question : How to build a GroupShape Object from several Shape objects ?&lt;/p&gt;
&lt;p&gt;Using the productivity tool, I built have explored some GroupShapes Object : &lt;/p&gt;
&lt;p&gt;
&lt;pre class="prettyprint"&gt;groupShape1.Append(nonVisualGroupShapeProperties14);
groupShape1.Append(groupShapeProperties14);
groupShape1.Append(shape64);
groupShape1.Append(shape65);
groupShape1.Append(shape66);
&lt;/pre&gt;
&lt;/p&gt;
&lt;p&gt;But I am not able to build properly the GroupShape Object from Several shapes.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If anyone has a proper solution it would be great.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the mean time I am trying and if i am sucessfull, i will give the answer here&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Copy SlideMasterlayout element into the Slide</title><link>http://openxmldeveloper.org/thread/160764.aspx</link><pubDate>Wed, 01 May 2013 10:52:01 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160764</guid><dc:creator>angelo.trozzo</dc:creator><slash:comments>1</slash:comments><comments>http://openxmldeveloper.org/thread/160764.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160764/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hi Guys,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am new of this technology and I am trying to complete a task in OpenXML: Generate a single slide presentation from an existing one, coping the layout information from the master layout directly into the slide. The target is to have a destination presentation with an empty master layout and a Slide that still looks like the original one that was using the original Master Layout.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This means I have to find the relation between the Slide and the master in a presentation, understand what is defined in the Master and what at Slide lavel , copy all these properties like placeholders and theme from the Master to the layout.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I really need help, is already a couple of weeks that I am struggling but on the net I can find just really simple example of presentation manipulations. I found on this web site a really interesting video about using &amp;nbsp;PresentationBuilder, but &amp;nbsp;isstill not really enough and I have no access to any source code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Angelo&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>The presentation builder corrupts a presentation</title><link>http://openxmldeveloper.org/thread/160744.aspx</link><pubDate>Sat, 27 Apr 2013 05:40:03 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160744</guid><dc:creator>YasiduY3K</dc:creator><slash:comments>2</slash:comments><comments>http://openxmldeveloper.org/thread/160744.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160744/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;My aim is to clone all slides in a presentation to a base presentation and change the layout of the cloned slides to the layout of the base presentation.&lt;/p&gt;
&lt;p&gt;The approach I took was,&lt;/p&gt;
&lt;p&gt;(Base presentation denoted as &amp;nbsp;B, to be cloned presentation is denoted as C)&lt;/p&gt;
&lt;p&gt;Copy the slide parts of each slide of C into B.&lt;/p&gt;
&lt;p&gt;Copy the masters of the B into C&lt;/p&gt;
&lt;p&gt;Delete existing layout parts of the newly added slides pars in B(cloned slides from C).&lt;/p&gt;
&lt;p&gt;Add the required layout part from B to the newly added slide parts.&lt;/p&gt;
&lt;p&gt;Traverse through LayoutId&amp;#39;s and re order them to contain unique values.&lt;/p&gt;
&lt;p&gt;The result presentation is a corrupted output. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then I did a bit more checking up and came across the presentation builder mentioned in &lt;a href="http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2013/01/14/quick-introduction-to-presentationbuilder.aspx"&gt;http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2013/01/14/quick-introduction-to-presentationbuilder.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2013/01/14/quick-introduction-to-presentationbuilder.aspx"&gt;&lt;/a&gt;The second option of the builder does what I&amp;#39;m after, although it clones both the slides into a new presentation as&amp;quot;&amp;nbsp;Out2.pptx&amp;quot;&lt;/p&gt;
&lt;p&gt;When I tried my files on it, it gives me the same corrupted message from PowerPoint.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need to figure out on why it&amp;#39;s happening and also how can I correct this?&lt;/p&gt;
&lt;p&gt;Base presentation:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://openxmldeveloper.org/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/15/4405.Base.JPG" border="0" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Clone presentation:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://openxmldeveloper.org/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/15/0410.Clone.JPG" border="0" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Error message:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://openxmldeveloper.org/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/15/4747.ErrorMsg.JPG" border="0" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Resulting output: (Out2.pptx)&lt;/p&gt;
&lt;p&gt;&lt;img src="http://openxmldeveloper.org/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/15/1832.Out2.JPG" border="0" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;1st slide gets corrupted!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The presentation builder code is attached as Post.zip&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The attached &amp;nbsp;try to clone both presentation documents to a new presentation document (built from scratch), but use the master and layouts of the first cloned presentation (base presentation) for all the slides.&lt;/p&gt;
&lt;p&gt;Files in builder:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Companies.pptx (basepresentation)&lt;/p&gt;
&lt;p&gt;Customer Content.pptx (clone presentation)&lt;/p&gt;
&lt;p&gt;Out2.pptx (resulting presentation)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Removing images from a PPTX (and not breaking any relations)</title><link>http://openxmldeveloper.org/thread/160712.aspx</link><pubDate>Fri, 19 Apr 2013 12:10:25 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160712</guid><dc:creator>duarte.aragao</dc:creator><slash:comments>3</slash:comments><comments>http://openxmldeveloper.org/thread/160712.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160712/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hi again!&lt;/p&gt;
&lt;p&gt;How can I remove a file (like an image) from a PPTX without breaking any relation?&lt;/p&gt;
&lt;p&gt;If i delete an image in a slide how do I confirm that there isn&amp;#39;t anymore relations to that image? Do I have to go through all the relation files listed in&amp;nbsp;[Content_Types].xml and confirm that the image that I want to delete is no referenced?&lt;/p&gt;
&lt;p&gt;Media files can have any amount of relation references to it?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>When to render text and when to inherent data from master and layout?</title><link>http://openxmldeveloper.org/thread/160676.aspx</link><pubDate>Mon, 08 Apr 2013 10:29:27 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160676</guid><dc:creator>duarte.aragao</dc:creator><slash:comments>2</slash:comments><comments>http://openxmldeveloper.org/thread/160676.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160676/rss.aspx</wfw:commentRss><description>&lt;p&gt;I am trying to parse the proper data from a slide.&lt;/p&gt;
&lt;p&gt;There are properties (for example for a shape) that are&amp;nbsp;inherited&amp;nbsp;from the layout and master slide, but when should I render a shape? I know that, I probably should only render text in the shapes represented in the slide, and ignore the ones that are in the master and layout, right?&lt;/p&gt;
&lt;p&gt;But if there is an image, even if that image is on the master or layout I should render it?&lt;/p&gt;
&lt;p&gt;How does the&amp;nbsp;inheritance&amp;nbsp;system works? What should I render or not render when only displaying a slide?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>add Slides dynamically based on Number of Images</title><link>http://openxmldeveloper.org/thread/160657.aspx</link><pubDate>Tue, 02 Apr 2013 07:20:55 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160657</guid><dc:creator>Gowtham.k</dc:creator><slash:comments>0</slash:comments><comments>http://openxmldeveloper.org/thread/160657.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160657/rss.aspx</wfw:commentRss><description>Hello every one, I have followed the below code to place images on PPT.
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;

 public static void PPTReplaceImageOnSlide(string fileName, string slideTitle, string imagePath) &lt;br /&gt;&lt;br /&gt;
        {
&lt;br /&gt;
&lt;br /&gt;
            try &lt;br /&gt;
            { &lt;br /&gt;
                const string presentationmlNamespace = &amp;quot;http://schemas.openxmlformats.org/presentationml/2006/main&amp;quot;; &lt;br /&gt;
                const string drawingmlNamespace = &amp;quot;http://schemas.openxmlformats.org/drawingml/2006/main&amp;quot;; &lt;br /&gt;
                const string relationshipNamespace = &amp;quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships&amp;quot;;&lt;br /&gt;
                string FilePath = HttpContext.Current.Server.MapPath(&amp;quot;~/PPtFile/Sample.pptx&amp;quot;);&lt;br /&gt;

                using (PresentationDocument pptPackage = PresentationDocument.Open(FilePath, true))&lt;br /&gt;
                {&lt;br /&gt;
                    PresentationPart presentationPart = pptPackage.PresentationPart;&lt;br /&gt;

                    //  Manage namespaces to perform Xml XPath queries.&lt;br /&gt;
                    NameTable nt = new NameTable();&lt;br /&gt;

                    XmlNamespaceManager nsManager = new XmlNamespaceManager(nt);&lt;br /&gt;
                    nsManager.AddNamespace(&amp;quot;p&amp;quot;, presentationmlNamespace);&lt;br /&gt;
                    nsManager.AddNamespace(&amp;quot;a&amp;quot;, drawingmlNamespace);&lt;br /&gt;
                    nsManager.AddNamespace(&amp;quot;r&amp;quot;, relationshipNamespace);&lt;br /&gt;

                    List slideParts = new List();&lt;br /&gt;
                    presentationPart.GetPartsOfType(slideParts);&lt;br /&gt;
                    presentationPart.AddNewPart(&amp;quot;image/jpeg&amp;quot;, &amp;quot;id1&amp;quot;);&lt;br /&gt;

                    foreach (SlidePart slidePart in slideParts)&lt;br /&gt;
                    {&lt;br /&gt;
                        XmlDocument slideDoc = new XmlDocument(nt);&lt;br /&gt;
                        slideDoc.Load(slidePart.GetStream());

                        XmlNode titleNode = slideDoc.SelectSingleNode(&amp;quot;//p:sp//p:ph[@type=&amp;#39;title&amp;#39; or @type=&amp;#39;ctrTitle&amp;#39;]&amp;quot;, nsManager);&lt;br /&gt;
                        if (titleNode != null)&lt;br /&gt;
                        {&lt;br /&gt;
                            string titleText = titleNode.ParentNode.ParentNode.ParentNode.InnerText;&lt;br /&gt;

                            if (string.Compare(titleText, &amp;quot;Image&amp;quot;, true) == 0)&lt;br /&gt;
                            {&lt;br /&gt;
                                List imageParts = new List();&lt;br /&gt;

                                slidePart.GetPartsOfType(imageParts);&lt;br /&gt;
                                foreach (ImagePart imagePart in imageParts)&lt;br /&gt;
                                {
                                    if (imagePart != null)&lt;br /&gt;
                                    {&lt;br /&gt;
                                        string oldRelID = slidePart.GetIdOfPart(imagePart);&lt;br /&gt;
                                        string imageFile = Path.GetFileName(imagePath);&lt;br /&gt;
                                        Uri newImageUri = new Uri(&amp;quot;/ppt/media/&amp;quot; + imageFile, UriKind.Relative);&lt;br /&gt;
                                        ImagePart newImagePart = slidePart.AddImagePart(ImagePartType.Jpeg);&lt;br /&gt;

                                        using (Stream outputStream = newImagePart.GetStream())&lt;br /&gt;
                                        {&lt;br /&gt;
                                            using (FileStream inputStream = new FileStream(imagePath, FileMode.Open, FileAccess.Read))&lt;br /&gt;
                                            {&lt;br /&gt;
                                                int len = Convert.ToInt32(inputStream.Length);&lt;br /&gt;
                                                byte[] bytes = new byte[len];&lt;br /&gt;
                                                int bytesRead = inputStream.Read(bytes, 0, len);&lt;br /&gt;
                                                if (bytesRead == len)&lt;br /&gt;
                                                {&lt;br /&gt;
                                                    outputStream.Write(bytes, 0, len);&lt;br /&gt;
                                                }&lt;br /&gt;
                                            }&lt;br /&gt;
                                        }&lt;br /&gt;
                                        string searchString = string.Format(&amp;quot;//p:pic//a:blip[@r:embed=&amp;#39;{0}&amp;#39;]&amp;quot;, oldRelID);&lt;br /&gt;
                                        XmlNode relNode = slideDoc.SelectSingleNode(searchString, nsManager);&lt;br /&gt;
                                        if (relNode != null)&lt;br /&gt;
                                        {&lt;br /&gt;
                                            relNode.Attributes[&amp;quot;r:embed&amp;quot;].Value = slidePart.GetIdOfPart(newImagePart);&lt;br /&gt;
                                        }&lt;br /&gt;
                                        slidePart.DeletePart(imagePart);
                                        break;&lt;br /&gt;
                                    }&lt;br /&gt;
                                }&lt;br /&gt;

                                slideDoc.Save(slidePart.GetStream());&lt;br /&gt;
                                break;&lt;br /&gt;
                            }&lt;br /&gt;
                        }&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;br /&gt;

            }&lt;br /&gt;
            catch (Exception ex)&lt;br /&gt;
            {&lt;br /&gt;

                throw ex;&lt;br /&gt;
            }&lt;br /&gt;

        }&lt;br /&gt;&lt;br /&gt;


Every thing is working fine , it is adding an image to the slide, now  i want to add images dynamically and also the number of slides, presently it has only one slide it is displaying one image.

Sorry for my bad english,
Thanks in advance.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>[newbie] looking for documentations</title><link>http://openxmldeveloper.org/thread/160631.aspx</link><pubDate>Tue, 26 Mar 2013 10:46:51 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160631</guid><dc:creator>medamine</dc:creator><slash:comments>1</slash:comments><comments>http://openxmldeveloper.org/thread/160631.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160631/rss.aspx</wfw:commentRss><description>&lt;p&gt;hello ,&lt;br /&gt;in my training i have to use the Open XML SDK , i have read some topics about WordprocessML , and i manupilate it a little bit .&lt;br /&gt;But the documentation about presentationMl in the internet is not that deep , i spent my last two days looking .&lt;br /&gt;all the topics in the internet or in microsoft blogs is about cr&amp;eacute;ation the parts , or how they are related , but none of them is talking about manupilation contents (textes , images ) and layouts , how realy we can create our pptx ,&lt;br /&gt;need your help plz&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>lumMod and lumOff color modifications</title><link>http://openxmldeveloper.org/thread/160606.aspx</link><pubDate>Tue, 19 Mar 2013 21:57:18 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160606</guid><dc:creator>snugpants</dc:creator><slash:comments>1</slash:comments><comments>http://openxmldeveloper.org/thread/160606.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160606/rss.aspx</wfw:commentRss><description>&lt;p&gt;I just started a project converting ooxml Powerpoint presentations to a proprietary format. &amp;nbsp;I&amp;#39;ve gotten a lot of useful information from other forum posts about correctly calculating the various color mods that are available but still have a couple of questions.&lt;/p&gt;
&lt;p&gt;1.) Is it possible to have a &amp;lt;a:lumOff&amp;gt; without a corresponding &amp;lt;a:lumMod&amp;gt;? &amp;nbsp;This goes for the other mod and off tags as well. &amp;nbsp;I haven&amp;#39;t been able to produce any examples with just a &amp;lt;a:lumOff&amp;gt; tag.&lt;/p&gt;
&lt;p&gt;2.) More generally, I&amp;#39;m having a hard time creating test documents for some of these modifications. &amp;nbsp;Specifically tint and shade. &amp;nbsp;Does anybody have any advice for how to generate pptx files with tint/shade? &amp;nbsp;I suppose I could hand-alter the xml and re-package it - but I&amp;#39;m looking for something more authentic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>How to bind data to a existing table in powerpoint using open xml</title><link>http://openxmldeveloper.org/thread/160572.aspx</link><pubDate>Wed, 13 Mar 2013 09:05:34 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160572</guid><dc:creator>dineshharaveer</dc:creator><slash:comments>1</slash:comments><comments>http://openxmldeveloper.org/thread/160572.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160572/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I using openxml to create a powerpoint from an web app.I created a ppt with charts and opened openxml sdk productivity tool and code was generated with that i modified the chart data which is coming from database,Code for which i created to modify the chart data as&lt;/p&gt;
&lt;p&gt;created a class for the code in the sdk,in that CreatePart() i added these links&lt;/p&gt;
&lt;p&gt;&amp;nbsp;ChartPart chartPart1 = slidePart1.AddNewPart&amp;lt;ChartPart&amp;gt;(&amp;quot;rId3&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GenerateChartPart1Content(chartPart1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This is below code added&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #if true&amp;nbsp;&amp;nbsp;&amp;nbsp; // Injects the chart part modification process&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var chartModifier1 = new ChartPartModifier();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chartModifier1.UpdateSecondChartPart(chartPart1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endif&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmbeddedPackagePart embeddedPackagePart1 = chartPart1.AddNewPart&amp;lt;EmbeddedPackagePart&amp;gt;(&amp;quot;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet&amp;quot;, &amp;quot;rId2&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GenerateEmbeddedPackagePart1Content(embeddedPackagePart1);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;and created a class for ChartPartModifier() &lt;/p&gt;
&lt;p&gt;public void UpdateSecondChartPart(ChartPart chartPart)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Searchs SeriesText and its Values to replace them with your dynamic data&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var seriesLabels = chartPart.ChartSpace.Descendants&amp;lt;SeriesText&amp;gt;().ToList();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var seriesValues = chartPart.ChartSpace.Descendants&amp;lt;Values&amp;gt;().ToList();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var categoryAxis = chartPart.ChartSpace.Descendants&amp;lt;CategoryAxisData&amp;gt;().ToList();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt; this._lineSecCharts.Count; ++i)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var yourLine = this._lineSecCharts[i];&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var label = seriesLabels[i].Descendants&amp;lt;NumericValue&amp;gt;().FirstOrDefault();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var values = seriesValues[i].Descendants&amp;lt;NumericValue&amp;gt;().ToList();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var categories = categoryAxis[i].Descendants&amp;lt;NumericValue&amp;gt;().ToList();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Replaces the label of the series&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label.Text = yourLine.Label;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Replaces the values of the series&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int valIdx = 0; valIdx &amp;lt; values.Count(); ++valIdx)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; values[valIdx].Text = yourLine.Plots[valIdx].Value.ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; categories[valIdx].Text = yourLine.Plots[valIdx].Category;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Like this is there any way to modify the data in the table &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Binding Data from DB to Powerpoint Chart using OpenXml in Asp.Net</title><link>http://openxmldeveloper.org/thread/160565.aspx</link><pubDate>Tue, 12 Mar 2013 06:16:03 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160565</guid><dc:creator>dineshharaveer</dc:creator><slash:comments>0</slash:comments><comments>http://openxmldeveloper.org/thread/160565.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160565/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;As i was new to OpenXML,i have seen some of the videos posted in the 
youtube,from those examples i have tried to save the ppt i was 
successfully done which i have copied the code from the openxml sdk v2.0
 productivity tool which i have opened an created ppt file contains a 
chart in that. Upto now the code runs fine but i tried to implement to 
get the dynamic data from db which i tried in two ways. FIrstly, i 
without using any array the data in the x-axis is showing only the 
lastly binded data. Secondly i have tried using object collection array 
it throws an error &amp;quot;Object is not set to an instance&amp;quot;.The code which i 
have written in the asp.net page.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;private void GenerateChartPart1Content(ChartPart chartPart1)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.ChartSpace chartSpace1 = new C.ChartSpace();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chartSpace1.AddNamespaceDeclaration(&amp;quot;c&amp;quot;, &amp;quot;http://schemas.openxmlformats.org/drawingml/2006/chart&amp;quot;);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chartSpace1.AddNamespaceDeclaration(&amp;quot;a&amp;quot;, &amp;quot;http://schemas.openxmlformats.org/drawingml/2006/main&amp;quot;);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chartSpace1.AddNamespaceDeclaration(&amp;quot;r&amp;quot;, &amp;quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships&amp;quot;);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Date1904 date19041 = new C.Date1904() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.EditingLanguage editingLanguage1 = new C.EditingLanguage() { Val = &amp;quot;en-US&amp;quot; };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.RoundedCorners roundedCorners1 = new C.RoundedCorners() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AlternateContent alternateContent1 = new AlternateContent();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alternateContent1.AddNamespaceDeclaration(&amp;quot;mc&amp;quot;, &amp;quot;http://schemas.openxmlformats.org/markup-compatibility/2006&amp;quot;);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AlternateContentChoice alternateContentChoice1 = new AlternateContentChoice() { Requires = &amp;quot;c14&amp;quot; };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alternateContentChoice1.AddNamespaceDeclaration(&amp;quot;c14&amp;quot;, 
&amp;quot;http://schemas.microsoft.com/office/drawing/2007/8/2/chart&amp;quot;);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C14.Style style1 = new C14.Style() { Val = 102 };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alternateContentChoice1.Append(style1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AlternateContentFallback alternateContentFallback1 = new AlternateContentFallback();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Style style2 = new C.Style() { Val = 2 };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alternateContentFallback1.Append(style2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alternateContent1.Append(alternateContentChoice1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alternateContent1.Append(alternateContentFallback1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Chart chart1 = new C.Chart();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.AutoTitleDeleted autoTitleDeleted1 = new C.AutoTitleDeleted() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.PlotArea plotArea1 = new C.PlotArea();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Layout layout1 = new C.Layout();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.LineChart lineChart1 = new C.LineChart();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Grouping grouping1 = new C.Grouping() { Val = C.GroupingValues.Standard };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.VaryColors varyColors1 = new C.VaryColors() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.LineChartSeries lineChartSeries1 = new C.LineChartSeries();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Index index1 = new C.Index() { Val = (UInt32Value)0U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Order order1 = new C.Order() { Val = (UInt32Value)0U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.SeriesText seriesText1 = new C.SeriesText();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringReference stringReference1 = new C.StringReference();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Formula formula1 = new C.Formula();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; formula1.Text = &amp;quot;Sheet1!$B$1&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringCache stringCache1 = new C.StringCache();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.PointCount pointCount1 = new C.PointCount() { Val = (UInt32Value)1U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringPoint stringPoint1 = new C.StringPoint() { Index = (UInt32Value)0U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue1 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue1.Text = &amp;quot;FY11&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringPoint1.Append(numericValue1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache1.Append(pointCount1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache1.Append(stringPoint1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringReference1.Append(formula1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringReference1.Append(stringCache1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; seriesText1.Append(stringReference1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Marker marker1 = new C.Marker();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Symbol symbol1 = new C.Symbol() { Val = C.MarkerStyleValues.None };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; marker1.Append(symbol1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.CategoryAxisData categoryAxisData1 = new C.CategoryAxisData();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringReference stringReference2 = new C.StringReference();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Formula formula2 = new C.Formula();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; formula2.Text = &amp;quot;Sheet1!$A$2:$A$5&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringCache stringCache2 = new C.StringCache();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.PointCount pointCount2 = new C.PointCount() { Val = (UInt32Value)4U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringPoint stringPoint2 = new C.StringPoint() { Index = (UInt32Value)0U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue2 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue2.Text = &amp;quot;Bikes&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringPoint2.Append(numericValue2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringPoint stringPoint3 = new C.StringPoint() { Index = (UInt32Value)1U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue3 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue3.Text = &amp;quot;Cars&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringPoint3.Append(numericValue3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringPoint stringPoint4 = new C.StringPoint() { Index = (UInt32Value)2U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue4 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue4.Text = &amp;quot;Cycles&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringPoint4.Append(numericValue4);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringPoint stringPoint5 = new C.StringPoint() { Index = (UInt32Value)3U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue5 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue5.Text = &amp;quot;Buses&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringPoint5.Append(numericValue5);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache2.Append(pointCount2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache2.Append(stringPoint2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache2.Append(stringPoint3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache2.Append(stringPoint4);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache2.Append(stringPoint5);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringReference2.Append(formula2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringReference2.Append(stringCache2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxisData1.Append(stringReference2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Values values1 = new C.Values();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumberReference numberReference1 = new C.NumberReference();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Formula formula3 = new C.Formula();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; formula3.Text = &amp;quot;Sheet1!$B$2:$B$5&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumberingCache numberingCache1 = new C.NumberingCache();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.FormatCode formatCode1 = new C.FormatCode();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; formatCode1.Text = &amp;quot;General&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.PointCount pointCount3 = new C.PointCount() { Val = (UInt32Value)4U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericPoint numericPoint1 = new C.NumericPoint() { Index = (UInt32Value)0U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue6 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue6.Text = &amp;quot;4.3&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericPoint1.Append(numericValue6);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericPoint numericPoint2 = new C.NumericPoint() { Index = (UInt32Value)1U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue7 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue7.Text = &amp;quot;2.5&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericPoint2.Append(numericValue7);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericPoint numericPoint3 = new C.NumericPoint() { Index = (UInt32Value)2U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue8 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue8.Text = &amp;quot;3.5&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericPoint3.Append(numericValue8);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericPoint numericPoint4 = new C.NumericPoint() { Index = (UInt32Value)3U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue9 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue9.Text = &amp;quot;4.5&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericPoint4.Append(numericValue9);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache1.Append(formatCode1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache1.Append(pointCount3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache1.Append(numericPoint1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache1.Append(numericPoint2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache1.Append(numericPoint3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache1.Append(numericPoint4);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberReference1.Append(formula3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberReference1.Append(numberingCache1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; values1.Append(numberReference1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Smooth smooth1 = new C.Smooth() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries1.Append(index1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries1.Append(order1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries1.Append(seriesText1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries1.Append(marker1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries1.Append(categoryAxisData1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries1.Append(values1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries1.Append(smooth1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.LineChartSeries lineChartSeries2 = new C.LineChartSeries();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Index index2 = new C.Index() { Val = (UInt32Value)1U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Order order2 = new C.Order() { Val = (UInt32Value)1U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.SeriesText seriesText2 = new C.SeriesText();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringReference stringReference3 = new C.StringReference();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Formula formula4 = new C.Formula();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; formula4.Text = &amp;quot;Sheet1!$C$1&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringCache stringCache3 = new C.StringCache();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.PointCount pointCount4 = new C.PointCount() { Val = (UInt32Value)1U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringPoint stringPoint6 = new C.StringPoint() { Index = (UInt32Value)0U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue10 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue10.Text = &amp;quot;FY12&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringPoint6.Append(numericValue10);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache3.Append(pointCount4);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache3.Append(stringPoint6);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringReference3.Append(formula4);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringReference3.Append(stringCache3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; seriesText2.Append(stringReference3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Marker marker2 = new C.Marker();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Symbol symbol2 = new C.Symbol() { Val = C.MarkerStyleValues.None };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; marker2.Append(symbol2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.CategoryAxisData categoryAxisData2 = new C.CategoryAxisData();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringReference stringReference4 = new C.StringReference();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Formula formula5 = new C.Formula();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; formula5.Text = &amp;quot;Sheet1!$A$2:$A$5&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringCache stringCache4 = new C.StringCache();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.PointCount pointCount5 = new C.PointCount() { Val = (UInt32Value)4U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringPoint stringPoint7 = new C.StringPoint() { Index = (UInt32Value)0U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue11 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue11.Text = &amp;quot;Bikes&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringPoint7.Append(numericValue11);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringPoint stringPoint8 = new C.StringPoint() { Index = (UInt32Value)1U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue12 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue12.Text = &amp;quot;Cars&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringPoint8.Append(numericValue12);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringPoint stringPoint9 = new C.StringPoint() { Index = (UInt32Value)2U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue13 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue13.Text = &amp;quot;Cycles&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringPoint9.Append(numericValue13);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringPoint stringPoint10 = new C.StringPoint() { Index = (UInt32Value)3U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue14 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue14.Text = &amp;quot;Buses&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringPoint10.Append(numericValue14);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache4.Append(pointCount5);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache4.Append(stringPoint7);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache4.Append(stringPoint8);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache4.Append(stringPoint9);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache4.Append(stringPoint10);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringReference4.Append(formula5);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringReference4.Append(stringCache4);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxisData2.Append(stringReference4);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Values values2 = new C.Values();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumberReference numberReference2 = new C.NumberReference();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Formula formula6 = new C.Formula();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; formula6.Text = &amp;quot;Sheet1!$C$2:$C$5&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumberingCache numberingCache2 = new C.NumberingCache();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.FormatCode formatCode2 = new C.FormatCode();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; formatCode2.Text = &amp;quot;General&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.PointCount pointCount6 = new C.PointCount() { Val = (UInt32Value)4U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericPoint numericPoint5 = new C.NumericPoint() { Index = (UInt32Value)0U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue15 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue15.Text = &amp;quot;2.4&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericPoint5.Append(numericValue15);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericPoint numericPoint6 = new C.NumericPoint() { Index = (UInt32Value)1U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue16 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue16.Text = &amp;quot;4.4000000000000004&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericPoint6.Append(numericValue16);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericPoint numericPoint7 = new C.NumericPoint() { Index = (UInt32Value)2U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue17 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue17.Text = &amp;quot;1.8&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericPoint7.Append(numericValue17);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericPoint numericPoint8 = new C.NumericPoint() { Index = (UInt32Value)3U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue18 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue18.Text = &amp;quot;2.8&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericPoint8.Append(numericValue18);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache2.Append(formatCode2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache2.Append(pointCount6);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache2.Append(numericPoint5);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache2.Append(numericPoint6);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache2.Append(numericPoint7);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache2.Append(numericPoint8);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberReference2.Append(formula6);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberReference2.Append(numberingCache2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; values2.Append(numberReference2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Smooth smooth2 = new C.Smooth() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries2.Append(index2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries2.Append(order2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries2.Append(seriesText2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries2.Append(marker2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries2.Append(categoryAxisData2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries2.Append(values2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries2.Append(smooth2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.LineChartSeries lineChartSeries3 = new C.LineChartSeries();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Index index3 = new C.Index() { Val = (UInt32Value)2U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Order order3 = new C.Order() { Val = (UInt32Value)2U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.SeriesText seriesText3 = new C.SeriesText();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringReference stringReference5 = new C.StringReference();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Formula formula7 = new C.Formula();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; formula7.Text = &amp;quot;Sheet1!$D$1&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringCache stringCache5 = new C.StringCache();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.PointCount pointCount7 = new C.PointCount() { Val = (UInt32Value)1U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringPoint stringPoint11 = new C.StringPoint() { Index = (UInt32Value)0U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue19 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue19.Text = &amp;quot;FY13&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringPoint11.Append(numericValue19);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache5.Append(pointCount7);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache5.Append(stringPoint11);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringReference5.Append(formula7);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringReference5.Append(stringCache5);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; seriesText3.Append(stringReference5);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Marker marker3 = new C.Marker();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Symbol symbol3 = new C.Symbol() { Val = C.MarkerStyleValues.None };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; marker3.Append(symbol3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.CategoryAxisData categoryAxisData3 = new C.CategoryAxisData();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringReference stringReference6 = new C.StringReference();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Formula formula8 = new C.Formula();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; formula8.Text = &amp;quot;Sheet1!$A$2:$A$5&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringCache stringCache6 = new C.StringCache();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.PointCount pointCount8 = new C.PointCount() { Val = (UInt32Value)4U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringCache6.Append(pointCount8);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //---&amp;gt;Newly Added&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PPTChartData obj = new PPTChartData();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataSet ds = obj.ChartData();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.StringPoint[] strPt = null;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue[] numVal = null;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; ds.Tables[0].Rows.Count; i++)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; strPt[i] = new C.StringPoint() { Index = (UInt32Value)0U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numVal[i] = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numVal[i].Text = ds.Tables[0].Rows[i][&amp;quot;ProductName&amp;quot;].ToString();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////C.StringPoint stringPoint12 = new C.StringPoint() { Index = (UInt32Value)0U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////C.NumericValue numericValue20 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////numericValue20.Text = &amp;quot;Bikes&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////stringPoint12.Append(numericValue20);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////C.StringPoint stringPoint13 = new C.StringPoint() { Index = (UInt32Value)1U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////C.NumericValue numericValue21 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////numericValue21.Text = &amp;quot;Cars&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////stringPoint13.Append(numericValue21);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////C.StringPoint stringPoint14 = new C.StringPoint() { Index = (UInt32Value)2U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////C.NumericValue numericValue22 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////numericValue22.Text = &amp;quot;Cycles&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////stringPoint14.Append(numericValue22);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////C.StringPoint stringPoint15 = new C.StringPoint() { Index = (UInt32Value)3U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////C.NumericValue numericValue23 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////numericValue23.Text = &amp;quot;Buses&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////stringPoint15.Append(numericValue23);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////stringCache6.Append(pointCount8);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////stringCache6.Append(stringPoint12);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////stringCache6.Append(stringPoint13);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////stringCache6.Append(stringPoint14);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ////stringCache6.Append(stringPoint15);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringReference6.Append(formula8);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stringReference6.Append(stringCache6);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxisData3.Append(stringReference6);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Values values3 = new C.Values();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumberReference numberReference3 = new C.NumberReference();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Formula formula9 = new C.Formula();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; formula9.Text = &amp;quot;Sheet1!$D$2:$D$5&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumberingCache numberingCache3 = new C.NumberingCache();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.FormatCode formatCode3 = new C.FormatCode();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; formatCode3.Text = &amp;quot;General&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.PointCount pointCount9 = new C.PointCount() { Val = (UInt32Value)4U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericPoint numericPoint9 = new C.NumericPoint() { Index = (UInt32Value)0U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue24 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue24.Text = &amp;quot;2&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericPoint9.Append(numericValue24);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericPoint numericPoint10 = new C.NumericPoint() { Index = (UInt32Value)1U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue25 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue25.Text = &amp;quot;2&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericPoint10.Append(numericValue25);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericPoint numericPoint11 = new C.NumericPoint() { Index = (UInt32Value)2U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue26 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue26.Text = &amp;quot;3&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericPoint11.Append(numericValue26);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericPoint numericPoint12 = new C.NumericPoint() { Index = (UInt32Value)3U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumericValue numericValue27 = new C.NumericValue();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericValue27.Text = &amp;quot;5&amp;quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numericPoint12.Append(numericValue27);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache3.Append(formatCode3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache3.Append(pointCount9);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache3.Append(numericPoint9);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache3.Append(numericPoint10);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache3.Append(numericPoint11);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberingCache3.Append(numericPoint12);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberReference3.Append(formula9);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberReference3.Append(numberingCache3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; values3.Append(numberReference3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Smooth smooth3 = new C.Smooth() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries3.Append(index3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries3.Append(order3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries3.Append(seriesText3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries3.Append(marker3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries3.Append(categoryAxisData3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries3.Append(values3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChartSeries3.Append(smooth3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.DataLabels dataLabels1 = new C.DataLabels();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.ShowLegendKey showLegendKey1 = new C.ShowLegendKey() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.ShowValue showValue1 = new C.ShowValue() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.ShowCategoryName showCategoryName1 = new C.ShowCategoryName() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.ShowSeriesName showSeriesName1 = new C.ShowSeriesName() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.ShowPercent showPercent1 = new C.ShowPercent() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.ShowBubbleSize showBubbleSize1 = new C.ShowBubbleSize() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dataLabels1.Append(showLegendKey1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dataLabels1.Append(showValue1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dataLabels1.Append(showCategoryName1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dataLabels1.Append(showSeriesName1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dataLabels1.Append(showPercent1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dataLabels1.Append(showBubbleSize1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.ShowMarker showMarker1 = new C.ShowMarker() { Val = true };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Smooth smooth4 = new C.Smooth() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.AxisId axisId1 = new C.AxisId() { Val = (UInt32Value)21315584U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.AxisId axisId2 = new C.AxisId() { Val = (UInt32Value)21317120U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChart1.Append(grouping1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChart1.Append(varyColors1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChart1.Append(lineChartSeries1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChart1.Append(lineChartSeries2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChart1.Append(lineChartSeries3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChart1.Append(dataLabels1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChart1.Append(showMarker1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChart1.Append(smooth4);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChart1.Append(axisId1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lineChart1.Append(axisId2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.CategoryAxis categoryAxis1 = new C.CategoryAxis();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.AxisId axisId3 = new C.AxisId() { Val = (UInt32Value)21315584U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Scaling scaling1 = new C.Scaling();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Orientation orientation1 = new C.Orientation() { Val = C.OrientationValues.MinMax };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scaling1.Append(orientation1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Delete delete1 = new C.Delete() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.AxisPosition axisPosition1 = new C.AxisPosition() { Val = C.AxisPositionValues.Bottom };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.MajorTickMark majorTickMark1 = new C.MajorTickMark() { Val = C.TickMarkValues.Outside };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.MinorTickMark minorTickMark1 = new C.MinorTickMark() { Val = C.TickMarkValues.None };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.TickLabelPosition tickLabelPosition1 = new C.TickLabelPosition() { Val = C.TickLabelPositionValues.NextTo };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.CrossingAxis crossingAxis1 = new C.CrossingAxis() { Val = (UInt32Value)21317120U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Crosses crosses1 = new C.Crosses() { Val = C.CrossesValues.AutoZero };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.AutoLabeled autoLabeled1 = new C.AutoLabeled() { Val = true };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.LabelAlignment labelAlignment1 = new C.LabelAlignment() { Val = C.LabelAlignmentValues.Center };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.LabelOffset labelOffset1 = new C.LabelOffset() { Val = (UInt16Value)100U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NoMultiLevelLabels noMultiLevelLabels1 = new C.NoMultiLevelLabels() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxis1.Append(axisId3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxis1.Append(scaling1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxis1.Append(delete1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxis1.Append(axisPosition1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxis1.Append(majorTickMark1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxis1.Append(minorTickMark1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxis1.Append(tickLabelPosition1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxis1.Append(crossingAxis1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxis1.Append(crosses1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxis1.Append(autoLabeled1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxis1.Append(labelAlignment1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxis1.Append(labelOffset1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; categoryAxis1.Append(noMultiLevelLabels1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.ValueAxis valueAxis1 = new C.ValueAxis();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.AxisId axisId4 = new C.AxisId() { Val = (UInt32Value)21317120U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Scaling scaling2 = new C.Scaling();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Orientation orientation2 = new C.Orientation() { Val = C.OrientationValues.MinMax };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scaling2.Append(orientation2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Delete delete2 = new C.Delete() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.AxisPosition axisPosition2 = new C.AxisPosition() { Val = C.AxisPositionValues.Left };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.MajorGridlines majorGridlines1 = new C.MajorGridlines();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.NumberingFormat numberingFormat1 = new C.NumberingFormat() { FormatCode = &amp;quot;General&amp;quot;, SourceLinked = true };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.MajorTickMark majorTickMark2 = new C.MajorTickMark() { Val = C.TickMarkValues.Outside };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.MinorTickMark minorTickMark2 = new C.MinorTickMark() { Val = C.TickMarkValues.None };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.TickLabelPosition tickLabelPosition2 = new C.TickLabelPosition() { Val = C.TickLabelPositionValues.NextTo };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.CrossingAxis crossingAxis2 = new C.CrossingAxis() { Val = (UInt32Value)21315584U };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Crosses crosses2 = new C.Crosses() { Val = C.CrossesValues.AutoZero };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.CrossBetween crossBetween1 = new C.CrossBetween() { Val = C.CrossBetweenValues.Between };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; valueAxis1.Append(axisId4);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; valueAxis1.Append(scaling2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; valueAxis1.Append(delete2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; valueAxis1.Append(axisPosition2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; valueAxis1.Append(majorGridlines1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; valueAxis1.Append(numberingFormat1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; valueAxis1.Append(majorTickMark2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; valueAxis1.Append(minorTickMark2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; valueAxis1.Append(tickLabelPosition2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; valueAxis1.Append(crossingAxis2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; valueAxis1.Append(crosses2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; valueAxis1.Append(crossBetween1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plotArea1.Append(layout1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plotArea1.Append(lineChart1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plotArea1.Append(categoryAxis1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plotArea1.Append(valueAxis1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Legend legend1 = new C.Legend();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.LegendPosition legendPosition1 = new C.LegendPosition() { Val = C.LegendPositionValues.Right };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Layout layout2 = new C.Layout();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.Overlay overlay1 = new C.Overlay() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; legend1.Append(legendPosition1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; legend1.Append(layout2);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; legend1.Append(overlay1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.PlotVisibleOnly plotVisibleOnly1 = new C.PlotVisibleOnly() { Val = true };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.DisplayBlanksAs displayBlanksAs1 = new C.DisplayBlanksAs() { Val = C.DisplayBlanksAsValues.Gap };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.ShowDataLabelsOverMaximum showDataLabelsOverMaximum1 = new C.ShowDataLabelsOverMaximum() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chart1.Append(autoTitleDeleted1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chart1.Append(plotArea1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chart1.Append(legend1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chart1.Append(plotVisibleOnly1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chart1.Append(displayBlanksAs1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chart1.Append(showDataLabelsOverMaximum1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.TextProperties textProperties1 = new C.TextProperties();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A.BodyProperties bodyProperties1 = new A.BodyProperties();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A.ListStyle listStyle1 = new A.ListStyle();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A.Paragraph paragraph1 = new A.Paragraph();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A.ParagraphProperties paragraphProperties1 = new A.ParagraphProperties();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A.DefaultRunProperties defaultRunProperties11 = new A.DefaultRunProperties() { FontSize = 1800 };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; paragraphProperties1.Append(defaultRunProperties11);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A.EndParagraphRunProperties endParagraphRunProperties1 = new A.EndParagraphRunProperties() { Language = &amp;quot;en-US&amp;quot; };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; paragraph1.Append(paragraphProperties1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; paragraph1.Append(endParagraphRunProperties1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; textProperties1.Append(bodyProperties1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; textProperties1.Append(listStyle1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; textProperties1.Append(paragraph1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.ExternalData externalData1 = new C.ExternalData() { Id = &amp;quot;rId1&amp;quot; };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C.AutoUpdate autoUpdate1 = new C.AutoUpdate() { Val = false };&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; externalData1.Append(autoUpdate1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chartSpace1.Append(date19041);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chartSpace1.Append(editingLanguage1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chartSpace1.Append(roundedCorners1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chartSpace1.Append(alternateContent1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chartSpace1.Append(chart1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chartSpace1.Append(textProperties1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chartSpace1.Append(externalData1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chartPart1.ChartSpace = chartSpace1;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Javascript libraries</title><link>http://openxmldeveloper.org/thread/160556.aspx</link><pubDate>Fri, 08 Mar 2013 17:45:08 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160556</guid><dc:creator>duarte.aragao</dc:creator><slash:comments>2</slash:comments><comments>http://openxmldeveloper.org/thread/160556.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160556/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;First, this site is amazing and I have been able to do something with OpenXML because of it, so thank you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am developing a small (and very modest) interface for Powerpoint OpenXML documents using only javascript (nodejs). I&amp;#39;m mostly interested in viewing and modifying PPTXs. I am using the ltxml library, which is a big help for handling the XML, but I am wondering if exists some library which would allow me to develop this at a higher level, something similar to the Apache.POI library but for js.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Anyone also doing stuff with js and openxml? Any good articles that you recommend?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I was already able to inspire myself in the C# code for string replacement on templates(http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2011/06/13/open-xml-presentation-generation-using-a-template-presentation.aspx), and make my version on JS, but I have a felling that, that is the most simple part, transforming a pptx to html is looking very hard. Any pointers and help is welcome.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>After editing, how to save as pptx file with different name at different location using OpenXml?</title><link>http://openxmldeveloper.org/thread/160474.aspx</link><pubDate>Wed, 20 Feb 2013 08:36:55 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160474</guid><dc:creator>Alpa</dc:creator><slash:comments>0</slash:comments><comments>http://openxmldeveloper.org/thread/160474.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160474/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;I have created one program in C# .Net using OpenXml, in which i am inserting a blank slide into my existing .pptx file and save it. but after adding new slide, i want to save that pptx file with different name at different location?&lt;/p&gt;
&lt;p&gt;Can anyone help me to solve this problem?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>how to insert a blank slide into .pptx file using OpenXml?</title><link>http://openxmldeveloper.org/thread/160463.aspx</link><pubDate>Tue, 19 Feb 2013 05:28:05 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160463</guid><dc:creator>Alpa</dc:creator><slash:comments>2</slash:comments><comments>http://openxmldeveloper.org/thread/160463.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160463/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I want to insert a new - blank slide at the end fo the .pptx file using OpenXml. &lt;/p&gt;
&lt;p&gt;Can anybody help me to find the solution?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Replacing all occurrences of one font with a different font</title><link>http://openxmldeveloper.org/thread/160451.aspx</link><pubDate>Mon, 18 Feb 2013 02:58:55 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160451</guid><dc:creator>JohnP</dc:creator><slash:comments>4</slash:comments><comments>http://openxmldeveloper.org/thread/160451.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160451/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;I am very new to Open XML development, and am looking forward
to learning more.&amp;nbsp; However, I would be
interested in hearing the community members&amp;rsquo; thoughts on the programmatic challenge
I am currently facing.&amp;nbsp; I&amp;rsquo;d like to know
if a solution would even be possible through an Open XML implementation.&lt;/p&gt;
&lt;p&gt;My goal is to create a tool that can take any existing PPTX
file, and create a new copy of the file where a particular font has been
replaced with different font.&amp;nbsp; For
example, swapping &amp;ldquo;Times New Roman&amp;rdquo; with &amp;ldquo;Arial&amp;rdquo; &amp;ndash; the actual fonts in question
are proprietary but I&amp;rsquo;m hoping that won&amp;rsquo;t make a difference.&amp;nbsp; Furthermore, the requirement specifies that &lt;em&gt;all&lt;/em&gt;
existing content be updated &amp;ndash; that is, slides, masters, layouts, charts,
tables, SmartArt, embedded Excel and Word tables, absolutely everything &amp;ndash; and the font size and formatting of the affected text (i.e., bold, italic, etc) must remain intact .&amp;nbsp; However, I suspect that for embedded objects,
the emf would need to be replaced with a temporary &amp;ldquo;double-click to update&amp;rdquo; image.&lt;/p&gt;
&lt;p&gt;Now a VSTO implementation was ruled out, mainly due to the embedded
object requirement &amp;ndash; programmatically opening every single object was deemed too
risky.&amp;nbsp; So I&amp;rsquo;m now attempting to learn if
an Open XML solution would even be viable.&amp;nbsp; I&amp;rsquo;d
be very interested in hearing the thoughts of more experienced Open XML
developers.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;John&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>how to convert ppt to html without office installed?</title><link>http://openxmldeveloper.org/thread/160333.aspx</link><pubDate>Sun, 03 Feb 2013 18:57:03 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160333</guid><dc:creator>manju</dc:creator><slash:comments>2</slash:comments><comments>http://openxmldeveloper.org/thread/160333.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160333/rss.aspx</wfw:commentRss><description>&lt;p&gt;I have a requirement of converting ppt to html without using MS office installed in my .NET application. I tried &lt;strong&gt;Aspose&lt;/strong&gt; but it is not supported audio,video and animation.
Can anyone suggest any other third party sdk which can fulfill this requirement? Or this can be achievable using open xml sdk?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Chart in powerpoint</title><link>http://openxmldeveloper.org/thread/160063.aspx</link><pubDate>Fri, 11 Jan 2013 10:52:21 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:160063</guid><dc:creator>nguyentruongky</dc:creator><slash:comments>7</slash:comments><comments>http://openxmldeveloper.org/thread/160063.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/160063/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hi everyone,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I want to display chart from powerpoint on WPF window. I have 2 solutions but I don&amp;#39;t know how to do them.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre;"&gt;	&lt;/span&gt;1. Save chart as a png picture and display as an image.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre;"&gt;	&lt;/span&gt;2. Load chart from powerpoint file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have any other solutions?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please help me.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks all.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Merging PowerPoint Decks</title><link>http://openxmldeveloper.org/thread/159865.aspx</link><pubDate>Sat, 01 Dec 2012 15:34:54 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:159865</guid><dc:creator>AliAmjad</dc:creator><slash:comments>13</slash:comments><comments>http://openxmldeveloper.org/thread/159865.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/159865/rss.aspx</wfw:commentRss><description>&lt;p&gt;I want to merge multiple PointPoint decks, the merging works fine when every deck contains 30 or less slides, If any deck contains more than 30 slides, PowerPoint issues a Repair message. I&amp;#39;m using the following code to do merging, Please help.&lt;/p&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;public&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span&gt;class&lt;/span&gt;&amp;nbsp;&lt;span&gt;SlideMerger&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
 
&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#region&lt;/span&gt;&amp;nbsp;variables
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;uint&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="GRcorrect"&gt;uniqueId&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;int&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="GRcorrect"&gt;partId&lt;/span&gt;&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;List&lt;/span&gt;&amp;lt;&lt;span&gt;string&lt;/span&gt;&amp;gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;mergingParts&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span&gt;new&lt;/span&gt;&amp;nbsp;&lt;span&gt;List&lt;/span&gt;&amp;lt;&lt;span&gt;string&lt;/span&gt;&amp;gt;()&amp;nbsp;{&amp;nbsp;&lt;span&gt;&amp;quot;&lt;span class="GRnoSuggestion GRcorrect"&gt;introPart&lt;/span&gt;&amp;quot;&lt;/span&gt;&amp;nbsp;,&lt;span&gt;&amp;quot;&lt;span class="GRcorrect"&gt;productsPart&lt;/span&gt;&amp;quot;&lt;/span&gt;,&amp;nbsp;&lt;span&gt;&amp;quot;&lt;span class="GRnoSuggestion GRcorrect"&gt;priceGridsPart&lt;/span&gt;&amp;quot;&lt;/span&gt;,&amp;nbsp;&lt;span&gt;&amp;quot;&lt;span class="GRnoSuggestion GRcorrect"&gt;closingPart&lt;/span&gt;&amp;quot;&lt;/span&gt;,&amp;nbsp;&lt;span&gt;&amp;quot;&lt;span class="GRcorrect"&gt;contactPart&lt;/span&gt;&amp;quot;&lt;/span&gt;&amp;nbsp;};
 
&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#endregion&lt;/span&gt;
 
&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#region&lt;/span&gt;&amp;nbsp;methods
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;public&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span&gt;void&lt;/span&gt;&amp;nbsp;MergeSlides&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span&gt;List&lt;/span&gt;&amp;lt;&lt;span&gt;MemoryStream&lt;/span&gt;&amp;gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;sourceDecks&lt;/span&gt;,&amp;nbsp;&lt;span&gt;MemoryStream&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;destDeck&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;foreach&lt;/span&gt;&lt;/span&gt;&amp;nbsp;(&lt;span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;var&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;sourcePresentation&lt;/span&gt;&amp;nbsp;&lt;span&gt;in&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;sourceDecks&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;MergeSlides&lt;/span&gt;&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;sourcePresentation&lt;/span&gt;,&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;destDeck&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;partId++;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;void&lt;/span&gt;&lt;/span&gt;&amp;nbsp;MergeSlides&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span&gt;MemoryStream&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;sourcePresentation&lt;/span&gt;,&amp;nbsp;&lt;span&gt;MemoryStream&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;destPresentation&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;int&lt;/span&gt;&lt;/span&gt;&amp;nbsp;id&amp;nbsp;=&amp;nbsp;0;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;&lt;span class="GRcorrect"&gt;Open&lt;/span&gt;&amp;nbsp;the&amp;nbsp;destination&amp;nbsp;presentation.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;using&lt;/span&gt;&lt;/span&gt;&amp;nbsp;(&lt;span&gt;PresentationDocument&lt;/span&gt;&amp;nbsp;DestDeck&amp;nbsp;=&amp;nbsp;&lt;span&gt;PresentationDocument&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Open&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;destPresentation&lt;/span&gt;,&amp;nbsp;&lt;span&gt;true&lt;/span&gt;))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;PresentationPart&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;destPresPart&lt;/span&gt;&amp;nbsp;=&amp;nbsp;DestDeck&lt;span class="GRcorrect"&gt;.&lt;/span&gt;&lt;span class="GRcorrect"&gt;PresentationPart&lt;/span&gt;;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;If&amp;nbsp;the&amp;nbsp;merged&amp;nbsp;presentation&amp;nbsp;doesn&amp;#39;t&amp;nbsp;have&amp;nbsp;a&amp;nbsp;SlideIdList&amp;nbsp;element&amp;nbsp;yet&amp;nbsp;then&amp;nbsp;add&amp;nbsp;it.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;if&lt;/span&gt;&lt;/span&gt;&amp;nbsp;(&lt;span class="GRnoSuggestion GRcorrect"&gt;destPresPart&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Presentation&lt;span class="GRcorrect"&gt;.&lt;/span&gt;SlideIdList&amp;nbsp;==&amp;nbsp;&lt;span&gt;null&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;destPresPart&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Presentation&lt;span class="GRcorrect"&gt;.&lt;/span&gt;SlideIdList&amp;nbsp;=&amp;nbsp;&lt;span&gt;new&lt;/span&gt;&amp;nbsp;&lt;span&gt;SlideIdList&lt;/span&gt;&lt;span class="GRcorrect"&gt;(&lt;/span&gt;);
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;Open&amp;nbsp;the&amp;nbsp;source&amp;nbsp;presentation.&amp;nbsp;This&amp;nbsp;will&amp;nbsp;throw&amp;nbsp;an&amp;nbsp;exception&amp;nbsp;if&amp;nbsp;the&amp;nbsp;source&amp;nbsp;presentation&amp;nbsp;does&amp;nbsp;not&amp;nbsp;exist.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;using&lt;/span&gt;&lt;/span&gt;&amp;nbsp;(&lt;span&gt;PresentationDocument&lt;/span&gt;&amp;nbsp;SourceDeck&amp;nbsp;=&amp;nbsp;&lt;span&gt;PresentationDocument&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Open&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;sourcePresentation&lt;/span&gt;,&amp;nbsp;&lt;span&gt;false&lt;/span&gt;))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;PresentationPart&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;sourcePresPart&lt;/span&gt;&amp;nbsp;=&amp;nbsp;SourceDeck&lt;span class="GRcorrect"&gt;.&lt;/span&gt;&lt;span class="GRcorrect"&gt;PresentationPart&lt;/span&gt;;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;Get&amp;nbsp;unique&amp;nbsp;&lt;span class="GRcorrect"&gt;ids&lt;/span&gt;&amp;nbsp;for&amp;nbsp;the&amp;nbsp;slide&amp;nbsp;master&amp;nbsp;and&amp;nbsp;slide&amp;nbsp;lists&amp;nbsp;for&amp;nbsp;use&amp;nbsp;later.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;uniqueId&lt;/span&gt;&amp;nbsp;=&amp;nbsp;GetMaxSlideMasterId&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;destPresPart&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Presentation&lt;span class="GRcorrect"&gt;.&lt;/span&gt;SlideMasterIdList);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;uint&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;maxSlideId&lt;/span&gt;&amp;nbsp;=&amp;nbsp;GetMaxSlideId&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;destPresPart&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Presentation&lt;span class="GRcorrect"&gt;.&lt;/span&gt;SlideIdList);
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;Copy&amp;nbsp;each&amp;nbsp;slide&amp;nbsp;in&amp;nbsp;the&amp;nbsp;source&amp;nbsp;presentation&amp;nbsp;in&amp;nbsp;order&amp;nbsp;to&amp;nbsp;the&amp;nbsp;destination&amp;nbsp;presentation.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;foreach&lt;/span&gt;&lt;/span&gt;&amp;nbsp;(&lt;span&gt;SlideId&lt;/span&gt;&amp;nbsp;&lt;span class="GRcorrect"&gt;slideId&lt;/span&gt;&amp;nbsp;&lt;span&gt;in&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;sourcePresPart&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Presentation&lt;span class="GRcorrect"&gt;.&lt;/span&gt;SlideIdList)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;SlidePart&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="GRcorrect"&gt;sp&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;SlidePart&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;destSp&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;SlideMasterPart&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;destMasterPart&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;string&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="GRcorrect"&gt;relId&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;SlideMasterId&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;newSlideMasterId&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;SlideId&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;newSlideId&lt;/span&gt;;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;Create&amp;nbsp;a&amp;nbsp;unique&amp;nbsp;relationship&amp;nbsp;id.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;id++;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;sp&lt;/span&gt;&amp;nbsp;=&amp;nbsp;(&lt;span&gt;&lt;span class="GRcorrect"&gt;SlidePart&lt;/span&gt;&lt;/span&gt;&lt;span class="GRcorrect"&gt;)&lt;/span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;sourcePresPart&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;GetPartById&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span class="GRcorrect"&gt;slideId&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;RelationshipId);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;relId&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;mergingParts&lt;/span&gt;&lt;span class="GRcorrect"&gt;[&lt;/span&gt;&lt;span class="GRcorrect"&gt;partId&lt;/span&gt;]&amp;nbsp;+&amp;nbsp;id;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;Add&amp;nbsp;the&amp;nbsp;slide&amp;nbsp;part&amp;nbsp;&lt;span class="GRcorrect"&gt;to&lt;/span&gt;&amp;nbsp;the&amp;nbsp;destination&amp;nbsp;presentation.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;destSp&amp;nbsp;=&amp;nbsp;destPresPart.AddPart&amp;lt;&lt;span&gt;SlidePart&lt;/span&gt;&amp;gt;(sp,&amp;nbsp;relId);
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;The&amp;nbsp;master&amp;nbsp;part&amp;nbsp;was&amp;nbsp;added.&amp;nbsp;Make&amp;nbsp;sure&amp;nbsp;the&amp;nbsp;relationship&amp;nbsp;is&amp;nbsp;in&amp;nbsp;place.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;destMasterPart&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;destSp&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;SlideLayoutPart&lt;span class="GRcorrect"&gt;.&lt;/span&gt;SlideMasterPart;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;destPresPart&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;AddPart&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;destMasterPart&lt;/span&gt;);
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;Add&amp;nbsp;slide&amp;nbsp;master&amp;nbsp;to&amp;nbsp;slide&amp;nbsp;master&amp;nbsp;list.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;uniqueId++;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;newSlideMasterId&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span&gt;new&lt;/span&gt;&amp;nbsp;&lt;span&gt;SlideMasterId&lt;/span&gt;&lt;span class="GRcorrect"&gt;(&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;newSlideMasterId&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;RelationshipId&amp;nbsp;=&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;destPresPart&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;GetIdOfPart&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;destMasterPart&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;newSlideMasterId&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Id&amp;nbsp;=&amp;nbsp;&lt;span class="GRcorrect"&gt;uniqueId&lt;/span&gt;;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;Add&amp;nbsp;slide&amp;nbsp;to&amp;nbsp;slide&amp;nbsp;list.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;maxSlideId++;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;newSlideId&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span&gt;new&lt;/span&gt;&amp;nbsp;&lt;span&gt;SlideId&lt;/span&gt;&lt;span class="GRcorrect"&gt;(&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;newSlideId&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;RelationshipId&amp;nbsp;=&amp;nbsp;&lt;span class="GRcorrect"&gt;relId&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;newSlideId&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Id&amp;nbsp;=&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;maxSlideId&lt;/span&gt;;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;destPresPart&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Presentation&lt;span class="GRcorrect"&gt;.&lt;/span&gt;SlideMasterIdList&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Append&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;newSlideMasterId&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;destPresPart&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Presentation&lt;span class="GRcorrect"&gt;.&lt;/span&gt;SlideIdList&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Append&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;newSlideId&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;Make&amp;nbsp;sure&amp;nbsp;all&amp;nbsp;slide&amp;nbsp;&lt;span class="GRcorrect"&gt;ids&lt;/span&gt;&amp;nbsp;are&amp;nbsp;unique.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;FixSlideLayoutIds&lt;/span&gt;&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;destPresPart&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;Save&amp;nbsp;the&amp;nbsp;changes&amp;nbsp;to&amp;nbsp;the&amp;nbsp;destination&amp;nbsp;deck.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;destPresPart&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Presentation&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Save&lt;span class="GRcorrect"&gt;(&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;void&lt;/span&gt;&lt;/span&gt;&amp;nbsp;FixSlideLayoutIds&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span&gt;&lt;span class="GRcorrect"&gt;PresentationPart&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="GRcorrect"&gt;presPart&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;Make&amp;nbsp;sure&amp;nbsp;all&amp;nbsp;slide&amp;nbsp;layouts&amp;nbsp;have&amp;nbsp;unique&amp;nbsp;ids.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;foreach&lt;/span&gt;&lt;/span&gt;&amp;nbsp;(&lt;span&gt;SlideMasterPart&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;slideMasterPart&lt;/span&gt;&amp;nbsp;&lt;span&gt;in&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;presPart&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;SlideMasterParts)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;foreach&lt;/span&gt;&lt;/span&gt;&amp;nbsp;(&lt;span&gt;SlideLayoutId&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;slideLayoutId&lt;/span&gt;&amp;nbsp;&lt;span&gt;in&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;slideMasterPart&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;SlideMaster&lt;span class="GRcorrect"&gt;.&lt;/span&gt;SlideLayoutIdList)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;uniqueId++;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;slideLayoutId&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Id&amp;nbsp;=&amp;nbsp;(&lt;span&gt;&lt;span class="GRnoSuggestion GRcorrect"&gt;uint&lt;/span&gt;&lt;/span&gt;&lt;span class="GRcorrect"&gt;)&lt;/span&gt;&lt;span class="GRcorrect"&gt;uniqueId&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;slideMasterPart&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;SlideMaster&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Save&lt;span class="GRcorrect"&gt;(&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;uint&lt;/span&gt;&lt;/span&gt;&amp;nbsp;GetMaxSlideId&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span&gt;SlideIdList&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;slideIdList&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;Slide&amp;nbsp;identifiers&amp;nbsp;have&amp;nbsp;a&amp;nbsp;minimum&amp;nbsp;value&amp;nbsp;of&amp;nbsp;greater&amp;nbsp;than&amp;nbsp;or&amp;nbsp;equal&amp;nbsp;to&amp;nbsp;256&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;&lt;span class="GRcorrect"&gt;and&lt;/span&gt;&amp;nbsp;a&amp;nbsp;maximum&amp;nbsp;value&amp;nbsp;of&amp;nbsp;less&amp;nbsp;than&amp;nbsp;2147483648.&amp;nbsp;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;uint&lt;/span&gt;&lt;/span&gt;&amp;nbsp;max&amp;nbsp;=&amp;nbsp;256;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;if&lt;/span&gt;&lt;/span&gt;&amp;nbsp;(&lt;span class="GRnoSuggestion GRcorrect"&gt;slideIdList&lt;/span&gt;&amp;nbsp;!=&amp;nbsp;&lt;span&gt;null&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;Get&amp;nbsp;the&amp;nbsp;maximum&amp;nbsp;id&amp;nbsp;value&amp;nbsp;from&amp;nbsp;the&amp;nbsp;current&amp;nbsp;set&amp;nbsp;of&amp;nbsp;children.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;foreach&lt;/span&gt;&lt;/span&gt;&amp;nbsp;(&lt;span&gt;SlideId&lt;/span&gt;&amp;nbsp;child&amp;nbsp;&lt;span&gt;in&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;slideIdList&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Elements&amp;lt;&lt;span&gt;SlideId&lt;/span&gt;&amp;gt;())
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;uint&lt;/span&gt;&lt;/span&gt;&amp;nbsp;id&amp;nbsp;=&amp;nbsp;child&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Id;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;if&lt;/span&gt;&lt;/span&gt;&amp;nbsp;(id&amp;nbsp;&amp;gt;&amp;nbsp;max)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;max&lt;/span&gt;&amp;nbsp;=&amp;nbsp;id;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;return&lt;/span&gt;&lt;/span&gt;&amp;nbsp;max;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;uint&lt;/span&gt;&lt;/span&gt;&amp;nbsp;GetMaxSlideMasterId&lt;span class="GRcorrect"&gt;(&lt;/span&gt;&lt;span&gt;SlideMasterIdList&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;slideMasterIdList&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;Slide&amp;nbsp;master&amp;nbsp;identifiers&amp;nbsp;have&amp;nbsp;a&amp;nbsp;minimum&amp;nbsp;value&amp;nbsp;of&amp;nbsp;greater&amp;nbsp;than&amp;nbsp;or&amp;nbsp;equal&amp;nbsp;to&amp;nbsp;2147483648.&amp;nbsp;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;uint&lt;/span&gt;&lt;/span&gt;&amp;nbsp;max&amp;nbsp;=&amp;nbsp;2147483648;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;if&lt;/span&gt;&lt;/span&gt;&amp;nbsp;(&lt;span class="GRnoSuggestion GRcorrect"&gt;slideMasterIdList&lt;/span&gt;&amp;nbsp;!=&amp;nbsp;&lt;span&gt;null&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;//&amp;nbsp;Get&amp;nbsp;the&amp;nbsp;maximum&amp;nbsp;id&amp;nbsp;value&amp;nbsp;from&amp;nbsp;the&amp;nbsp;current&amp;nbsp;set&amp;nbsp;of&amp;nbsp;children.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;foreach&lt;/span&gt;&lt;/span&gt;&amp;nbsp;(&lt;span&gt;SlideMasterId&lt;/span&gt;&amp;nbsp;child&amp;nbsp;&lt;span&gt;in&lt;/span&gt;&amp;nbsp;&lt;span class="GRnoSuggestion GRcorrect"&gt;slideMasterIdList&lt;/span&gt;&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Elements&amp;lt;&lt;span&gt;SlideMasterId&lt;/span&gt;&amp;gt;())
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;uint&lt;/span&gt;&lt;/span&gt;&amp;nbsp;id&amp;nbsp;=&amp;nbsp;child&lt;span class="GRcorrect"&gt;.&lt;/span&gt;Id;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;if&lt;/span&gt;&lt;/span&gt;&amp;nbsp;(id&amp;nbsp;&amp;gt;&amp;nbsp;max)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="GRcorrect"&gt;max&lt;/span&gt;&amp;nbsp;=&amp;nbsp;id;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span class="GRcorrect"&gt;return&lt;/span&gt;&lt;/span&gt;&amp;nbsp;max;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#endregion&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Accessing ActivePresentation object with OpenXML</title><link>http://openxmldeveloper.org/thread/159710.aspx</link><pubDate>Mon, 29 Oct 2012 16:25:32 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:159710</guid><dc:creator>peatpeat</dc:creator><slash:comments>1</slash:comments><comments>http://openxmldeveloper.org/thread/159710.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/159710/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m working on a powerpoint plugin, so we need to be able to access the ActivePresentation&amp;#39;s XML. I know there are various functions to deal with shapes etc. with the native ActivePresentation interface, but I need lower-level serialisation. Right now I&amp;#39;m resorting to outputting the PPTX file and opening the parts using System.IO.Packaging, but I can&amp;#39;t seem to figure out a way to access the ActivePresentation directly, as Open() and Create() do not apply. Any method that could get an active slide&amp;#39;s XML or insert a file into an open presentation would be a god-send!&lt;/p&gt;
&lt;p&gt;Any pearls of wisdom? Thanks in advance!&lt;/p&gt;
&lt;p&gt;J&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Copy VB code of one Marco enabled document to another macro enabled document</title><link>http://openxmldeveloper.org/thread/159630.aspx</link><pubDate>Thu, 04 Oct 2012 13:51:01 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:159630</guid><dc:creator>franferns</dc:creator><slash:comments>1</slash:comments><comments>http://openxmldeveloper.org/thread/159630.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/159630/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have 2 pptm files.&lt;/p&gt;
&lt;p&gt;1. PPTM file contains VB code in it.&lt;/p&gt;
&lt;p&gt;2. PPTM file does not contain any code at all&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now i need to have the same vb code to be copied in the 2nd PPTM file . I try the below code &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre class="prettyprint"&gt;&lt;pre class="prettyprint"&gt;&lt;pre class="prettyprint"&gt;//--------------------------------------------------------------------------
        internal static void ImportCustomVBACode(Stream templateDocumentFile, string convertDocumentFile)
        {
            using (PresentationDocument myDoc = PresentationDocument.Open(templateDocumentFile, true))
            {
                VbaProjectPart vbaPart = FindPart(myDoc);
                AddCustomVBAPart(convertDocumentFile, vbaPart);
            }
        }
        //--------------------------------------------------------------------------
        private static VbaProjectPart FindPart(PresentationDocument mainPart)
        {
            if (mainPart != null)
            {
                foreach (IdPartPair partPair in mainPart.PresentationPart.Parts)
                {
                    if (partPair.OpenXmlPart.RelationshipType == _wnsRelationShip.NamespaceName)
                    {
                        return partPair.OpenXmlPart as VbaProjectPart;
                    }
                }
            }
            return null;
        }
        //--------------------------------------------------------------------------
        private static void AddCustomVBAPart(string convertDocumentFile, VbaProjectPart vbaPart)
        {
            using (PresentationDocument myDoc = PresentationDocument.Open(convertDocumentFile, true))
            {
                VbaProjectPart extendedPart = FindPart(myDoc);

                if (extendedPart != null)
                    myDoc.PresentationPart.DeletePart(extendedPart);
                if (vbaPart != null)
                    myDoc.PresentationPart.AddPart&amp;lt;VbaProjectPart&amp;gt;(vbaPart, &amp;quot;SomeId&amp;quot;);
            }
        }
        //--------------------------------------------------------------------------&lt;/pre&gt;
&lt;br /&gt;&lt;/pre&gt;
This code works fine when i do it for Word document or SpreadSheet with littlle changes like PresentationDocument changes to SpreadSheetDocument etc it works fine but im not able to achive this for the PPT file&lt;br /&gt;Any suggestions as to how can i copy only the vb part of the code to another macro enabled file for the Presentation (pptm )type of files ?? &lt;br /&gt;&lt;br /&gt;Thanks ,&lt;br /&gt;Francis P.&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Copy slide only without its master to another presentation</title><link>http://openxmldeveloper.org/thread/159625.aspx</link><pubDate>Thu, 04 Oct 2012 01:41:37 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:159625</guid><dc:creator>Penrose</dc:creator><slash:comments>4</slash:comments><comments>http://openxmldeveloper.org/thread/159625.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/159625/rss.aspx</wfw:commentRss><description>&lt;p&gt;I am merging several slides together and I have been successful in doing that but the resulting slide has got all the masters of the several slides am merging together. Meaning if I merge hundred slides I end up with a hundred slide masters and layouts. Is there a way to copy only the side and its information so that it inherits the destination slide&amp;#39;s master and theme. &amp;nbsp;Any help will be greatly appreciated. Am using the following code I got from microsoft website&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;pre class="prettyprint"&gt;static void MergeSlides(string presentationFolder, string sourcePresentation, string destPresentation)
    {
        int id = 0;

        // Open the destination presentation.
        using (PresentationDocument myDestDeck = PresentationDocument.Open(presentationFolder + destPresentation, true))
        {
            PresentationPart destPresPart = myDestDeck.PresentationPart;

            // If the merged presentation doesn&amp;#39;t have a SlideIdList element yet then add it.
            if (destPresPart.Presentation.SlideIdList == null)
                destPresPart.Presentation.SlideIdList = new SlideIdList();

            // Open the source presentation. This will throw an exception if the source presentation does not exist.
            using (PresentationDocument mySourceDeck = PresentationDocument.Open(presentationFolder + sourcePresentation, false))
            {
                PresentationPart sourcePresPart = mySourceDeck.PresentationPart;

                // Get unique ids for the slide master and slide lists for use later.
                uniqueId = GetMaxSlideMasterId(destPresPart.Presentation.SlideMasterIdList);
                uint maxSlideId = GetMaxSlideId(destPresPart.Presentation.SlideIdList);

                // Copy each slide in the source presentation in order to the destination presentation.
                foreach (SlideId slideId in sourcePresPart.Presentation.SlideIdList)
                {
                    SlidePart sp;
                    SlidePart destSp;
                    SlideMasterPart destMasterPart;
                    string relId;
                    SlideMasterId newSlideMasterId;
                    SlideId newSlideId;

                    // Create a unique relationship id.
                    id++;
                    sp = (SlidePart)sourcePresPart.GetPartById(slideId.RelationshipId);
                    //relId = sourcePresentation.Remove(sourcePresentation.IndexOf(&amp;#39;.&amp;#39;)) + id;
                    relId = &amp;quot;runtId&amp;quot; + id++;
                    // Add the slide part to the destination presentation.
                    destSp = destPresPart.AddPart&amp;lt;SlidePart&amp;gt;(sp, relId);

                    // The master part was added. Make sure the relationship is in place.
                    destMasterPart = destSp.SlideLayoutPart.SlideMasterPart;
                    destPresPart.AddPart(destMasterPart);

                    // Add slide master to slide master list.
                    uniqueId++;
                    newSlideMasterId = new SlideMasterId();
                    newSlideMasterId.RelationshipId = destPresPart.GetIdOfPart(destMasterPart);
                    newSlideMasterId.Id = uniqueId;

                    // Add slide to slide list.
                    maxSlideId++;
                    newSlideId = new SlideId();
                    newSlideId.RelationshipId = relId;
                    newSlideId.Id = maxSlideId;

                    destPresPart.Presentation.SlideMasterIdList.Append(newSlideMasterId);
                    destPresPart.Presentation.SlideIdList.Append(newSlideId);
                }

                // Make sure all slide ids are unique.
                FixSlideLayoutIds(destPresPart);
            }

            // Save the changes to the destination deck.
            destPresPart.Presentation.Save();
        }
    }

    static void FixSlideLayoutIds(PresentationPart presPart)
    {
        // Make sure all slide layouts have unique ids.
        foreach (SlideMasterPart slideMasterPart in presPart.SlideMasterParts)
        {
            foreach (SlideLayoutId slideLayoutId in slideMasterPart.SlideMaster.SlideLayoutIdList)
            {
                uniqueId++;
                slideLayoutId.Id = (uint)uniqueId;
            }

            slideMasterPart.SlideMaster.Save();
        }
    }

    static uint GetMaxSlideId(SlideIdList slideIdList)
    {
        // Slide identifiers have a minimum value of greater than or equal to 256
        // and a maximum value of less than 2147483648. 
        uint max = 256;

        if (slideIdList != null)
            // Get the maximum id value from the current set of children.
            foreach (SlideId child in slideIdList.Elements&amp;lt;SlideId&amp;gt;())
            {
                uint id = child.Id;

                if (id &amp;gt; max)
                    max = id;
            }

        return max;
    }

    static uint GetMaxSlideMasterId(SlideMasterIdList slideMasterIdList)
    {
        // Slide master identifiers have a minimum value of greater than or equal to 2147483648. 
        uint max = 2147483648;

        if (slideMasterIdList != null)
            // Get the maximum id value from the current set of children.
            foreach (SlideMasterId child in slideMasterIdList.Elements&amp;lt;SlideMasterId&amp;gt;())
            {
                uint id = child.Id;

                if (id &amp;gt; max)
                    max = id;
            }

        return max;
    }

    static void DisplayValidationErrors(IEnumerable&amp;lt;ValidationErrorInfo&amp;gt; errors)
    {
        int errorIndex = 1;

        foreach (ValidationErrorInfo errorInfo in errors)
        {
            Console.WriteLine(errorInfo.Description);
            Console.WriteLine(errorInfo.Path.XPath);

            if (++errorIndex &amp;lt;= errors.Count())
                Console.WriteLine(&amp;quot;================&amp;quot;);
        }
    }&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>How to read word art text from slides PresentationML</title><link>http://openxmldeveloper.org/thread/159556.aspx</link><pubDate>Mon, 24 Sep 2012 10:33:31 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:159556</guid><dc:creator>raminsha77</dc:creator><slash:comments>1</slash:comments><comments>http://openxmldeveloper.org/thread/159556.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/159556/rss.aspx</wfw:commentRss><description>&lt;p&gt;Hi, when I extracted all text from slide, its not displaying word art text. How can I read these shapes. Please reply. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Generating native, editable .pptx file with tables/charts created in web app built with Javascript/HTML/CSS/JSON front-end </title><link>http://openxmldeveloper.org/thread/159426.aspx</link><pubDate>Wed, 29 Aug 2012 23:54:23 GMT</pubDate><guid isPermaLink="false">1ff61f26-0981-41c7-ad52-ff725e9b1da8:159426</guid><dc:creator>blueliner</dc:creator><slash:comments>3</slash:comments><comments>http://openxmldeveloper.org/thread/159426.aspx</comments><wfw:commentRss>http://openxmldeveloper.org/discussions/formats/f/15/t/159426/rss.aspx</wfw:commentRss><description>&lt;p&gt;I am building a web app where I need to be able to provide the user with the ability to do the following:&lt;/p&gt;
&lt;p&gt;1) User will generate tables and charts created in front-end screens built with Javascript/HTML/CSS which generates a JSON object (this is already built).&lt;/p&gt;
&lt;p&gt;2) Once the user has the table/chart configured, provide them with the ability to drag and drop the tables/charts generated in the the web app into a widget that will display thumbnails of slides with the tables/charts so they can build a PowerPoint presentation. (need a solution for this)&lt;/p&gt;
&lt;p&gt;3) Once they have the slides they want with the tables/charts, need to provide them with the ability to convert the slides into a native, editable .pptx format and export the .pptx file to save on their hard drive or on the server that they can open and edit within PowerPoint. (need a solution for this).&lt;/p&gt;
&lt;p&gt;I have researched this and found Apache POI and Aspose but from the information I found neither solution can provide the above functionality. I would appreciate any suggestions on possible solutions (ideally open source if available) and/or if there aren&amp;#39;t any currently available I would appreciate advice/suggestions on the simplest and fastest way to develop this from any developers with experience in this area.&lt;/p&gt;
&lt;p&gt;Thanks very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>