<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 - Discussions by Tamkin</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Niners/Tamkin/Discussions/RSS"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 - Discussions by Tamkin</title>
		<link>http://channel9.msdn.com/Niners/Tamkin/Discussions</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Niners/Tamkin/Discussions</link>
	<language>en</language>
	<pubDate>Sun, 19 May 2013 15:39:52 GMT</pubDate>
	<lastBuildDate>Sun, 19 May 2013 15:39:52 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>0</c9:totalResults>
	<c9:pageCount>0</c9:pageCount>
	<c9:pageSize>0</c9:pageSize>
	<item>
		<title>Tech Off - Open Xml : How I can create Custom Connector??</title>
		<description><![CDATA[<p><br />I have to create a Custom Connector&nbsp;like a Custom Shape in a PPTX using OOXml. As, bent connector or curve connector bent on 90 degree only, so like a custom shape i have to create a custom connector, because my connector can go through any path. I download
 the &quot;OfficeOpenXML-DrawingMLGeometries.zip&quot; where i found a definition of preset Shapes on the file &quot;presetShapeDefinitions.xml&quot; , in this file Bentconnector2 is defined by:<br /><br />----------------------------------------------------------------------------------------------------<br />&lt;bentConnector2&gt;<br />&nbsp;&nbsp;&nbsp; &lt;rect l=&quot;l&quot; t=&quot;t&quot; r=&quot;r&quot; b=&quot;b&quot; xmlns=&quot;<a href="http://schemas.openxmlformats.org/drawingml/2006/main&quot;">http&#58;&#47;&#47;schemas.openxmlformats.org&#47;drawingml&#47;2006&#47;main&#34;</a> /&gt;<br />&nbsp;&nbsp;&nbsp; &lt;pathLst xmlns=&quot;<a href="http://schemas.openxmlformats.org/drawingml/2006/main&quot;">http&#58;&#47;&#47;schemas.openxmlformats.org&#47;drawingml&#47;2006&#47;main&#34;</a>&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;path fill=&quot;none&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;moveTo&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pt x=&quot;l&quot; y=&quot;t&quot; /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/moveTo&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;lnTo&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pt x=&quot;r&quot; y=&quot;t&quot; /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/lnTo&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;lnTo&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pt x=&quot;r&quot; y=&quot;b&quot; /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/lnTo&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/path&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/pathLst&gt;<br />&nbsp; &lt;/bentConnector2&gt;&nbsp; <br />-----------------------------------------------------------------------------------------------------<br />That means bent connector2 is being drawn in this way. But, now i want to create a custom connector like above one. My slide1.xml contain a connection shape like....<br /><br />----------------------------------------------------------------------------------------------------<br />&lt;p:cxnSp&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p:nvCxnSpPr/&gt;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p:spPr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a:xfrm &gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a:off x=&quot;3886200&quot; y=&quot;2362200&quot;/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a:ext cx=&quot;914400&quot; cy=&quot;914400&quot;/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/a:xfrm&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong> &lt;a:custGeom &gt;<br /></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rect l=&quot;l&quot; t=&quot;t&quot; r=&quot;r&quot; b=&quot;b&quot; xmlns=&quot;<a href="http://schemas.openxmlformats.org/drawingml/2006/main&quot;">http&#58;&#47;&#47;schemas.openxmlformats.org&#47;drawingml&#47;2006&#47;main&#34;</a> /&gt;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;pathLst xmlns=&quot;<a href="http://schemas.openxmlformats.org/drawingml/2006/main&quot;">http&#58;&#47;&#47;schemas.openxmlformats.org&#47;drawingml&#47;2006&#47;main&#34;</a>&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;path fill=&quot;none&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;moveTo&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;pt x=&quot;l&quot; y=&quot;t&quot; /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;/moveTo&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;lnTo&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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;&nbsp;&nbsp;&nbsp;<strong> &lt;/a:custGeom&gt;<br /></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p:spPr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p:style/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&lt;/p:cxnSp&gt;<br />-----------------------------------------------------------------------------------------------------<br />Rather than....<br />----------------------------------------------------------------------------------------------------<br />&lt;p:cxnSp&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p:nvCxnSpPr/&gt;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p:spPr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a:xfrm &gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a:off x=&quot;3886200&quot; y=&quot;2362200&quot;/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a:ext cx=&quot;914400&quot; cy=&quot;914400&quot;/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/a:xfrm&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>&lt;a:prstGeom prst=&quot;bentConnector2&quot;&gt;</strong>&nbsp; // Generally We define in this way to create a&nbsp;Predefined Connector<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a:avLst/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>&lt;/a:prstGeom&gt;<br /></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p:spPr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p:style/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&lt;/p:cxnSp&gt;<br />-----------------------------------------------------------------------------------------------------<br />&nbsp;But it gives always an error when open that pptx, It says pptx has been corrupted .....<br />&nbsp;Plz, help me how i can fix this problem...??? If it is not possible for you to help me rgarding this metter, then Where should i go ? where i can get the actual cause, Plz mention me....<br /><br />Thanks and Regards<br />Tamkin<br />SW ENG. (KAZ Software)<br />Bangladesh</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/460448-Open-Xml--How-I-can-create-Custom-Connector/460448#460448</link>
		<pubDate>Wed, 11 Mar 2009 06:29:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/460448-Open-Xml--How-I-can-create-Custom-Connector/460448#460448</guid>
		<dc:creator>Tamkin khan</dc:creator>
		<slash:comments>1</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Tamkin/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>