<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.atalasoft.com/cs/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>Articles and Code Samples</title><link>http://www.atalasoft.com/cs/forums/18/ShowForum.aspx</link><description>Share .NET code that uses our .NET Toolkits.</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Re: Multi-Page Tiff Viewer Control</title><link>http://www.atalasoft.com/cs/forums/thread/11801.aspx</link><pubDate>Thu, 05 Apr 2007 21:03:08 GMT</pubDate><guid isPermaLink="false">647108ca-f046-4d8d-9feb-a7fbd2049b37:11801</guid><dc:creator>vinny950</dc:creator><slash:comments>0</slash:comments><comments>http://www.atalasoft.com/cs/forums/thread/11801.aspx</comments><wfw:commentRss>http://www.atalasoft.com/cs/forums/commentrss.aspx?SectionID=18&amp;PostID=11801</wfw:commentRss><description>&lt;P&gt;Hey bill&lt;/P&gt;
&lt;P&gt;Thanks for the code-I inherited your updateableTiffFile.cs to use on my application.Here is my problem.&lt;/P&gt;
&lt;P&gt;When I select the first thumbnail, it appeared on the workspaceviewer as I expected but when I select the second thumnail I expect the first one to dissappear on the worspaceviewer and the selected to appear but I get this error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Argumentoutofrangeexpection--in the following line&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;
&lt;P&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;.workspaceViewer1.Open(_simpleTiffFile.CacheFilename, _currentFrame);&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;with following (height must be greater than 0, parameter name height.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is my code on selectedindex changed event&lt;/P&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; thumbScans_SelectedIndexChanged(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;object&lt;/FONT&gt;&lt;FONT size=2&gt; sender, System.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;EventArgs&lt;/FONT&gt;&lt;FONT size=2&gt; e)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;FONT size=2&gt; (thumbScans.SelectedIndices.Length &amp;gt; 0 &amp;amp;&amp;amp; thumbScans.SelectedIndices[0] != _currentFrame)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_currentFrame = thumbScans.SelectedIndices[0];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;.workspaceViewer1.Open(_simpleTiffFile.CacheFilename, _currentFrame);&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;.workspaceViewer1.Undos.Clear();&lt;/P&gt;
&lt;P&gt;OnSelectedImageChanged(&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;EventArgs&lt;/FONT&gt;&lt;FONT size=2&gt;.Empty);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;any solution&lt;/P&gt;
&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>Re: Multi-Page Tiff Viewer Control</title><link>http://www.atalasoft.com/cs/forums/thread/11728.aspx</link><pubDate>Sun, 25 Mar 2007 00:14:57 GMT</pubDate><guid isPermaLink="false">647108ca-f046-4d8d-9feb-a7fbd2049b37:11728</guid><dc:creator>Bill Bither</dc:creator><slash:comments>0</slash:comments><comments>http://www.atalasoft.com/cs/forums/thread/11728.aspx</comments><wfw:commentRss>http://www.atalasoft.com/cs/forums/commentrss.aspx?SectionID=18&amp;PostID=11728</wfw:commentRss><description>&lt;P&gt;There's a bug in the attached project.&amp;nbsp; After line 121 in UpdateableTiffFile.cs, add this line of code:&lt;/P&gt;
&lt;P&gt;fs.Seek(0, SeekOrigin.Begin);&lt;/P&gt;</description></item><item><title>Multi-Page Tiff Viewer Control</title><link>http://www.atalasoft.com/cs/forums/thread/11473.aspx</link><pubDate>Fri, 16 Feb 2007 04:48:02 GMT</pubDate><guid isPermaLink="false">647108ca-f046-4d8d-9feb-a7fbd2049b37:11473</guid><dc:creator>Bill Bither</dc:creator><slash:comments>0</slash:comments><comments>http://www.atalasoft.com/cs/forums/thread/11473.aspx</comments><wfw:commentRss>http://www.atalasoft.com/cs/forums/commentrss.aspx?SectionID=18&amp;PostID=11473</wfw:commentRss><description>&lt;P&gt;I have created a small control library useful for efficiently&amp;nbsp;viewing and editing multipage TIFF documents.&amp;nbsp; This control displays all pages in a multi-page document in the thumbnail view on the left, and the main full size image that is viewed when the user clicks on the thumbnail to the left.&amp;nbsp; It&amp;nbsp;stores a temporary file cache containing a multi-page TIFF and edits are made to this TIFF in-place using our TiffFile functionality.&amp;nbsp; Manipulating an image will update the thumbnail, and update the file cache.&amp;nbsp; The thumbnail and image viewer are linked via events.&amp;nbsp; This control is great to use when scanning in a batch of documents as you do not need to have each image in memory at the same time, yet it displays each page as a thumbnails nicely and quickly.&amp;nbsp; It can be used to view and edit a document with many (hundreds) of pages with a save to TIFF simply copying the TiffFile cache.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I've attached source code for this control which has references to DotImage 5.0 Beta (can be used just as well with DotImage 4.0).&amp;nbsp; &lt;/P&gt;
&lt;P&gt;This is an extension to our DotImage Document Imaging SDK, and not officially supported.&amp;nbsp; Please post any questions about this control to this thread.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;</description></item></channel></rss>