<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/2.4.2" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Coffee and Coding</title>
		<link>http://www.alocurto.com/blog4.php</link>
		<description></description>
		<language>en-US</language>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=2.4.2"/>
		<ttl>60</ttl>
				<item>
			<title>ScribeStation Beta Testing Open</title>
			<link>http://www.alocurto.com/blog4.php/DigitalPens/scribestation-beta-testing-open</link>
			<pubDate>Fri, 12 Feb 2010 22:24:14 +0000</pubDate>			<dc:creator>alocurto</dc:creator>
			<category domain="alt">C#</category>
<category domain="main">Digtial Pens</category>
<category domain="alt">Web Programming</category>			<guid isPermaLink="false">38@http://www.alocurto.com/</guid>
						<description>&lt;p&gt;&lt;a href=&quot;http://www.scribestation.com&quot;&gt;http://www.scribestation.com&lt;/a&gt;&lt;/p&gt;&lt;p&gt;ScribeStation.com has open beta testing of the new Livescribe acquisition client which can take data off of your Livescribe Pulse pen and convert it to many usable formats.  Go to &lt;a href=&quot;http://www.scribestation.com&quot;&gt;http://www.scribestation.com&lt;/a&gt; for more information and become a beta tester today!&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.alocurto.com/blog4.php/DigitalPens/scribestation-beta-testing-open&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p><a href="http://www.scribestation.com">http://www.scribestation.com</a></p><p>ScribeStation.com has open beta testing of the new Livescribe acquisition client which can take data off of your Livescribe Pulse pen and convert it to many usable formats.  Go to <a href="http://www.scribestation.com">http://www.scribestation.com</a> for more information and become a beta tester today!</p><div class="item_footer"><p><small><a href="http://www.alocurto.com/blog4.php/DigitalPens/scribestation-beta-testing-open">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.alocurto.com/blog4.php/DigitalPens/scribestation-beta-testing-open#comments</comments>
		</item>
				<item>
			<title>ASP .NET Session</title>
			<link>http://www.alocurto.com/blog4.php/WebProgramming/asp-net-session</link>
			<pubDate>Tue, 04 Aug 2009 23:35:30 +0000</pubDate>			<dc:creator>alocurto</dc:creator>
			<category domain="alt">C#</category>
<category domain="main">Web Programming</category>			<guid isPermaLink="false">37@http://www.alocurto.com/</guid>
						<description>&lt;p&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/magazine/cc300437.aspx&quot;&gt;http://msdn.microsoft.com/en-us/magazine/cc300437.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I deployed a multi-user web application today and for some reason the session was being SHARED between users.  Not sure what is causing this.  It was a simple application that only needed the session for some non-confidential data so I just threw them into a cookie for now.  I am across this interesting link that has some good information so I figured I would post it:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/magazine/cc300437.aspx#S1&quot; target=&quot;_blank&quot;&gt;http://msdn.microsoft.com/en-us/magazine/cc300437.aspx&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.alocurto.com/blog4.php/WebProgramming/asp-net-session&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/magazine/cc300437.aspx">http://msdn.microsoft.com/en-us/magazine/cc300437.aspx</a></p><p>I deployed a multi-user web application today and for some reason the session was being SHARED between users.  Not sure what is causing this.  It was a simple application that only needed the session for some non-confidential data so I just threw them into a cookie for now.  I am across this interesting link that has some good information so I figured I would post it:</p>

<p><a href="http://msdn.microsoft.com/en-us/magazine/cc300437.aspx#S1" target="_blank">http://msdn.microsoft.com/en-us/magazine/cc300437.aspx</a></p><div class="item_footer"><p><small><a href="http://www.alocurto.com/blog4.php/WebProgramming/asp-net-session">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.alocurto.com/blog4.php/WebProgramming/asp-net-session#comments</comments>
		</item>
				<item>
			<title>General Acquisition Client</title>
			<link>http://www.alocurto.com/blog4.php/DigitalPens/general-acquisition-client</link>
			<pubDate>Thu, 02 Jul 2009 13:46:53 +0000</pubDate>			<dc:creator>alocurto</dc:creator>
			<category domain="main">Digtial Pens</category>			<guid isPermaLink="false">36@http://www.alocurto.com/</guid>
						<description>&lt;p&gt;&lt;a href=&quot;http://www.scribestation.com&quot;&gt;http://www.scribestation.com&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I have been getting a lot of requests with people looking to remove the stroke data (X&amp;amp;Y) from the pen.  I am currently writing and releasing an acquisition client that will be available at &lt;a href=&quot;http://www.scribestation.com&quot;&gt;www.scribestation.com&lt;/a&gt; and allow users of the LiveScribe Pulse to easily access their stroke and image data on their pen.&lt;/p&gt;

&lt;p&gt;I also have plans to expose an API that will allow your applications to work with the XML data.&lt;/p&gt;

&lt;p&gt;I plan to have this site released within a month.... so hang in there!&lt;/p&gt;

&lt;p&gt;Thanks for all your support, comments and feedback!&lt;/p&gt;

&lt;p&gt;-Anthony&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.alocurto.com/blog4.php/DigitalPens/general-acquisition-client&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p><a href="http://www.scribestation.com">http://www.scribestation.com</a></p><p>I have been getting a lot of requests with people looking to remove the stroke data (X&amp;Y) from the pen.  I am currently writing and releasing an acquisition client that will be available at <a href="http://www.scribestation.com">www.scribestation.com</a> and allow users of the LiveScribe Pulse to easily access their stroke and image data on their pen.</p>

<p>I also have plans to expose an API that will allow your applications to work with the XML data.</p>

<p>I plan to have this site released within a month.... so hang in there!</p>

<p>Thanks for all your support, comments and feedback!</p>

<p>-Anthony</p><div class="item_footer"><p><small><a href="http://www.alocurto.com/blog4.php/DigitalPens/general-acquisition-client">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.alocurto.com/blog4.php/DigitalPens/general-acquisition-client#comments</comments>
		</item>
				<item>
			<title>Microsoft.Ink COM Error</title>
			<link>http://www.alocurto.com/blog4.php/CSharp/microsoft-ink-com-error</link>
			<pubDate>Mon, 09 Feb 2009 19:39:53 +0000</pubDate>			<dc:creator>alocurto</dc:creator>
			<category domain="main">C#</category>
<category domain="alt">MSInk</category>			<guid isPermaLink="false">35@http://www.alocurto.com/</guid>
						<description>&lt;p&gt;I was working with Ink and deploying my assemblies all over the place.  Eventually I deployed to a win2k3 server and it starting throwing:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Creating an instance of the COM component with CLSID {AAC46A37-9229-4FC0-8CCE-4497569BF4D1} from the IClassFactory failed due to the following error: 80040235&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;To resolve this, I went to:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=080184dd-5e92-4464-b907-10762e9f918b&quot; target=&quot;_blank&quot;&gt;http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=080184dd-5e92-4464-b907-10762e9f918b&lt;br /&gt;
&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;And downloaded the Microsoft Windows XP Tablet PC Edition 2005 Recognizer Pack.  Install that and you will no longer get that error.&lt;/p&gt;

&lt;p&gt;Hope that helps, would have saved me 4 hours :-)&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.alocurto.com/blog4.php/CSharp/microsoft-ink-com-error&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I was working with Ink and deploying my assemblies all over the place.  Eventually I deployed to a win2k3 server and it starting throwing:</p>

<blockquote>
<p>Creating an instance of the COM component with CLSID {AAC46A37-9229-4FC0-8CCE-4497569BF4D1} from the IClassFactory failed due to the following error: 80040235</p>
</blockquote>

<p>To resolve this, I went to:</p>

<blockquote>
<p><a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=080184dd-5e92-4464-b907-10762e9f918b" target="_blank">http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=080184dd-5e92-4464-b907-10762e9f918b<br />
</a></p></blockquote>

<p>And downloaded the Microsoft Windows XP Tablet PC Edition 2005 Recognizer Pack.  Install that and you will no longer get that error.</p>

<p>Hope that helps, would have saved me 4 hours :-)</p><div class="item_footer"><p><small><a href="http://www.alocurto.com/blog4.php/CSharp/microsoft-ink-com-error">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.alocurto.com/blog4.php/CSharp/microsoft-ink-com-error#comments</comments>
		</item>
				<item>
			<title>SQL 2005 and XML Data Type</title>
			<link>http://www.alocurto.com/blog4.php/SQL/sql-2005-and-xml-data-type</link>
			<pubDate>Thu, 22 Jan 2009 14:59:55 +0000</pubDate>			<dc:creator>alocurto</dc:creator>
			<category domain="alt">C#</category>
<category domain="main">SQL</category>			<guid isPermaLink="false">33@http://www.alocurto.com/</guid>
						<description>&lt;p&gt;I was just working with the new XML datatype for SQL 2005 and started getting this error when inserting the value:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;XML parsing: line 1, character 45, unable to switch the encoding&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I was simply sending a string to a stored proc thinking that would work (it was a string of valid XML)... I was wrong.  I did some research and solved the problem by wrapping up the XML String into a SQL XML datatype.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;System.Data.SqlTypes.SqlXml xmlSafe = new System.Data.SqlTypes.SqlXml(new System.Xml.XmlTextReader(xmlAsString, System.Xml.XmlNodeType.Document, null));&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Sure, it's simple enough but I haven't used the XML type before.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.alocurto.com/blog4.php/SQL/sql-2005-and-xml-data-type&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I was just working with the new XML datatype for SQL 2005 and started getting this error when inserting the value:</p>

<blockquote><p>XML parsing: line 1, character 45, unable to switch the encoding</p></blockquote>

<p>I was simply sending a string to a stored proc thinking that would work (it was a string of valid XML)... I was wrong.  I did some research and solved the problem by wrapping up the XML String into a SQL XML datatype.</p>

<blockquote>
<p>System.Data.SqlTypes.SqlXml xmlSafe = new System.Data.SqlTypes.SqlXml(new System.Xml.XmlTextReader(xmlAsString, System.Xml.XmlNodeType.Document, null));</p>
</blockquote>

<p>Sure, it's simple enough but I haven't used the XML type before.</p><div class="item_footer"><p><small><a href="http://www.alocurto.com/blog4.php/SQL/sql-2005-and-xml-data-type">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.alocurto.com/blog4.php/SQL/sql-2005-and-xml-data-type#comments</comments>
		</item>
				<item>
			<title>Exploring the AFD File</title>
			<link>http://www.alocurto.com/blog4.php/DigitalPens/exploring-the-afd-file</link>
			<pubDate>Wed, 03 Dec 2008 14:34:05 +0000</pubDate>			<dc:creator>alocurto</dc:creator>
			<category domain="alt">C#</category>
<category domain="main">Digtial Pens</category>			<guid isPermaLink="false">32@http://www.alocurto.com/</guid>
						<description>&lt;p&gt;Having extracted the AFD file from the pen in a previous post I started poking around the contents of it.  I then started looking through the LiveScribe desktop DLLs for methods that would help me in getting data out.  My goal in this whole exploration of the AFD is to get stroke data off the pen and I managed to find that in the AFD file.  I created a C# project and added the following references to &quot;C:\Program Files\Livescribe\Livescribe Desktop\LS.Desktop.AFDDB.dll&quot;.  Once you add that reference to the project, you can get the stroke contents of the AFD file like so:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;br /&gt;
            LS.Desktop.AFDDB.LSDocument doc = LS.Desktop.AFDDB.LSDocument.LoadDocument(&quot;YOURPATHHERE.AFD&quot;);&lt;br /&gt;
&lt;br /&gt;
            //Check for strokes&lt;br /&gt;
            if (doc.HasStrokes(0))&lt;br /&gt;
            {&lt;br /&gt;
                Console.WriteLine(&quot;Has Strokes!&quot;);&lt;br /&gt;
&lt;br /&gt;
                //Go through each page&lt;br /&gt;
                for (int pageno = 0; pageno &amp;lt; doc.pageInstances.Count; pageno++)&lt;br /&gt;
                {&lt;br /&gt;
                    Console.WriteLine(string.Format(&quot;Page No {0}&quot;, pageno));&lt;br /&gt;
&lt;br /&gt;
                    //Go through each stroke&lt;br /&gt;
                    for (int strokeno = 0; strokeno &amp;lt; doc.pageInstances[pageno].NumStrokes; strokeno++)&lt;br /&gt;
                    {&lt;br /&gt;
                        Console.WriteLine(string.Format(&quot;\tStroke No {0}&quot;, strokeno));&lt;br /&gt;
                       &lt;br /&gt;
                        //Go through the points&lt;br /&gt;
                        foreach (Point p in doc.pageInstances[pageno].GetStroke(strokeno).Points)&lt;br /&gt;
                        {&lt;br /&gt;
                            Console.WriteLine(string.Format(&quot;\t\t({0}, {1})&quot;, p.X, p.Y));&lt;br /&gt;
                        }&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
            else&lt;br /&gt;
            {&lt;br /&gt;
                Console.WriteLine(&quot;No Strokes!&quot;);&lt;br /&gt;
            }&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You can use that object to get other things too.  If you have any questions or need help just send me an e-mail or post a comment.  I would be glad to assist.&lt;/p&gt;

&lt;p&gt;-Anthony&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.alocurto.com/blog4.php/DigitalPens/exploring-the-afd-file&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Having extracted the AFD file from the pen in a previous post I started poking around the contents of it.  I then started looking through the LiveScribe desktop DLLs for methods that would help me in getting data out.  My goal in this whole exploration of the AFD is to get stroke data off the pen and I managed to find that in the AFD file.  I created a C# project and added the following references to "C:\Program Files\Livescribe\Livescribe Desktop\LS.Desktop.AFDDB.dll".  Once you add that reference to the project, you can get the stroke contents of the AFD file like so:</p>

<p><code><br />
            LS.Desktop.AFDDB.LSDocument doc = LS.Desktop.AFDDB.LSDocument.LoadDocument("YOURPATHHERE.AFD");<br />
<br />
            //Check for strokes<br />
            if (doc.HasStrokes(0))<br />
            {<br />
                Console.WriteLine("Has Strokes!");<br />
<br />
                //Go through each page<br />
                for (int pageno = 0; pageno &lt; doc.pageInstances.Count; pageno++)<br />
                {<br />
                    Console.WriteLine(string.Format("Page No {0}", pageno));<br />
<br />
                    //Go through each stroke<br />
                    for (int strokeno = 0; strokeno &lt; doc.pageInstances[pageno].NumStrokes; strokeno++)<br />
                    {<br />
                        Console.WriteLine(string.Format("\tStroke No {0}", strokeno));<br />
                       <br />
                        //Go through the points<br />
                        foreach (Point p in doc.pageInstances[pageno].GetStroke(strokeno).Points)<br />
                        {<br />
                            Console.WriteLine(string.Format("\t\t({0}, {1})", p.X, p.Y));<br />
                        }<br />
                    }<br />
                }<br />
            }<br />
            else<br />
            {<br />
                Console.WriteLine("No Strokes!");<br />
            }<br />
</code></p>

<p>You can use that object to get other things too.  If you have any questions or need help just send me an e-mail or post a comment.  I would be glad to assist.</p>

<p>-Anthony</p><div class="item_footer"><p><small><a href="http://www.alocurto.com/blog4.php/DigitalPens/exploring-the-afd-file">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.alocurto.com/blog4.php/DigitalPens/exploring-the-afd-file#comments</comments>
		</item>
				<item>
			<title>LiveScribe Custom Printing... ALMOST!</title>
			<link>http://www.alocurto.com/blog4.php/DigitalPens/livescribe-custom-printing</link>
			<pubDate>Tue, 02 Dec 2008 22:43:35 +0000</pubDate>			<dc:creator>alocurto</dc:creator>
			<category domain="alt">C#</category>
<category domain="main">Digtial Pens</category>			<guid isPermaLink="false">31@http://www.alocurto.com/</guid>
						<description>&lt;p&gt;To custom print your own forms using the LiveScribe Pen there are a few steps.  This tutorial assumes you have installed&lt;br /&gt;
the LiveScribe Desktop and have it all working normally.  CLOSE THE LIVESCRIBE DESKTOP SOFTWARE BEFORE DOING THIS.&lt;/p&gt;

&lt;p&gt;Locate your AFD files.  By default they are located at &quot;C:\Program Files\Livescribe\Livescribe Desktop\Printing&quot;.  You will see AFD files here along with a &quot;Printables.xml&quot; files.  Go ahead and copy the &quot;LS_PYON_TestPage.afd&quot; and the &quot;Printables.xml&quot; for backup so that you can restore them later if need be.  Now, on to the file changing.&lt;/p&gt;

&lt;p&gt;Rename &quot;LS_PYON_TestPage.afd&quot; to &quot;MyTestForm.afd&quot;.&lt;/p&gt;

&lt;p&gt;Open &quot;Printables.xml&quot; in notepad.  Change the first Printable Node&lt;/p&gt;

&lt;p&gt;from:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;Notepad id=&quot;1&quot; guid=&quot;0x66d4de896a2c6c85&quot; filename=&quot;LS_PYON_TestPage.afd&quot; numberofpages=&quot;1&quot; menutext=&quot;T&amp;amp;est Page (1 Page)...&quot; menuorder=&quot;5&quot; mustexist=&quot;True&quot; /&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;to:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;Notepad id=&quot;1&quot; guid=&quot;0x66d4de896a2c6c85&quot; filename=&quot;MyTestForm.afd&quot; numberofpages=&quot;1&quot; menutext=&quot;Wicked Cool Document...&quot; menuorder=&quot;5&quot; mustexist=&quot;True&quot; /&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now, you can open the LiveScribe Desktop and see your form listed on the menu.  That is the first step... the next is actually making that document look like one you want.&lt;/p&gt;

&lt;p&gt;Go back to the &quot;C:\Program Files\Livescribe\Livescribe Desktop\Printing&quot; folder, rename &quot;MyTestForm.afd&quot; to &quot;MyTestForm.zip&quot;.  &lt;/p&gt;

&lt;p&gt;Extract the &quot;MyTestForm.zip&quot; files to a directory.  Look through the files, you will see a bunch of different things.  The AFD (as discovered previously) stores a bunch of information.  I am not sure what it all is, or even if stroke data that I was looking for would be in there but, there are some good things in here.&lt;/p&gt;

&lt;p&gt;Since we want to make our own custom looking form, navigate to the &quot;\userdata\lsac_data&quot; in the extracted file.  There you will see &quot;LS_PYON_TestPage.v1.png&quot;, that is the form background image.  Change that to whatever you would like using Photoshop, or any other imaging tool.  There is also a EPS file in &quot;pages\resources&quot;, open and change that as well.  Once your modifications have been completed go ahead and copy the changed file into the &quot;MyTestForm.zip&quot; file using a zip utility (Winzip, PKZIP, etc.).  Finally, rename the file to &quot;MyTestForm.afd&quot;.&lt;/p&gt;

&lt;p&gt;I figured that would do the trick but the document is not printing to the printer.  It says it is but then it doesn't print.  So, I am looking into why that could be.  I am thinking it has to do with my EPS editing.  I am probably not exporting properly.  There might also be some kind of check on the AFD file.  I'm still not sure....  Any ideas?  I plan to revist this soon. I have to get back to getting stroke data out of the AFD for now...&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.alocurto.com/blog4.php/DigitalPens/livescribe-custom-printing&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>To custom print your own forms using the LiveScribe Pen there are a few steps.  This tutorial assumes you have installed<br />
the LiveScribe Desktop and have it all working normally.  CLOSE THE LIVESCRIBE DESKTOP SOFTWARE BEFORE DOING THIS.</p>

<p>Locate your AFD files.  By default they are located at "C:\Program Files\Livescribe\Livescribe Desktop\Printing".  You will see AFD files here along with a "Printables.xml" files.  Go ahead and copy the "LS_PYON_TestPage.afd" and the "Printables.xml" for backup so that you can restore them later if need be.  Now, on to the file changing.</p>

<p>Rename "LS_PYON_TestPage.afd" to "MyTestForm.afd".</p>

<p>Open "Printables.xml" in notepad.  Change the first Printable Node</p>

<p>from:</p>

<p><code>&lt;Notepad id="1" guid="0x66d4de896a2c6c85" filename="LS_PYON_TestPage.afd" numberofpages="1" menutext="T&amp;est Page (1 Page)..." menuorder="5" mustexist="True" /&gt;</code></p>

<p>to:</p>

<p><code>&lt;Notepad id="1" guid="0x66d4de896a2c6c85" filename="MyTestForm.afd" numberofpages="1" menutext="Wicked Cool Document..." menuorder="5" mustexist="True" /&gt;</code></p>

<p>Now, you can open the LiveScribe Desktop and see your form listed on the menu.  That is the first step... the next is actually making that document look like one you want.</p>

<p>Go back to the "C:\Program Files\Livescribe\Livescribe Desktop\Printing" folder, rename "MyTestForm.afd" to "MyTestForm.zip".  </p>

<p>Extract the "MyTestForm.zip" files to a directory.  Look through the files, you will see a bunch of different things.  The AFD (as discovered previously) stores a bunch of information.  I am not sure what it all is, or even if stroke data that I was looking for would be in there but, there are some good things in here.</p>

<p>Since we want to make our own custom looking form, navigate to the "\userdata\lsac_data" in the extracted file.  There you will see "LS_PYON_TestPage.v1.png", that is the form background image.  Change that to whatever you would like using Photoshop, or any other imaging tool.  There is also a EPS file in "pages\resources", open and change that as well.  Once your modifications have been completed go ahead and copy the changed file into the "MyTestForm.zip" file using a zip utility (Winzip, PKZIP, etc.).  Finally, rename the file to "MyTestForm.afd".</p>

<p>I figured that would do the trick but the document is not printing to the printer.  It says it is but then it doesn't print.  So, I am looking into why that could be.  I am thinking it has to do with my EPS editing.  I am probably not exporting properly.  There might also be some kind of check on the AFD file.  I'm still not sure....  Any ideas?  I plan to revist this soon. I have to get back to getting stroke data out of the AFD for now...</p><div class="item_footer"><p><small><a href="http://www.alocurto.com/blog4.php/DigitalPens/livescribe-custom-printing">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.alocurto.com/blog4.php/DigitalPens/livescribe-custom-printing#comments</comments>
		</item>
				<item>
			<title>LiveScribe AFD File</title>
			<link>http://www.alocurto.com/blog4.php/DigitalPens/livescribe-afd-file</link>
			<pubDate>Tue, 02 Dec 2008 19:30:59 +0000</pubDate>			<dc:creator>alocurto</dc:creator>
			<category domain="alt">C#</category>
<category domain="main">Digtial Pens</category>			<guid isPermaLink="false">30@http://www.alocurto.com/</guid>
						<description>&lt;p&gt;Last I left off I was looking into what an AFD file was.  I used Red Gate Softwares .NET Reflector (Originally Lutz Roeder's) and saw a lot of metion to Zip utilities and unpacking... so, I figured I'd change the extension from .AFD to .ZIP.  IT WORKED!  AFD files are simply ZIP files.  I unzipped it and all this &lt;img src=&quot;http://www.alocurto.com/rsc/smilies/icon_censored.gif&quot; alt=&quot;&amp;#62;&amp;#58;&amp;#88;&amp;#88;&quot; class=&quot;middle&quot; /&gt; came out.  I am going to examine the contents and post my findings.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.alocurto.com/blog4.php/DigitalPens/livescribe-afd-file&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Last I left off I was looking into what an AFD file was.  I used Red Gate Softwares .NET Reflector (Originally Lutz Roeder's) and saw a lot of metion to Zip utilities and unpacking... so, I figured I'd change the extension from .AFD to .ZIP.  IT WORKED!  AFD files are simply ZIP files.  I unzipped it and all this <img src="http://www.alocurto.com/rsc/smilies/icon_censored.gif" alt="&#62;&#58;&#88;&#88;" class="middle" /> came out.  I am going to examine the contents and post my findings.</p><div class="item_footer"><p><small><a href="http://www.alocurto.com/blog4.php/DigitalPens/livescribe-afd-file">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.alocurto.com/blog4.php/DigitalPens/livescribe-afd-file#comments</comments>
		</item>
			</channel>
</rss>
