<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>Document Toolkit Extensions</title><link>http://documenttoolkit.codeplex.com/project/feeds/rss</link><description>PDF and Office readers, tutorials, samples, and utilities for Document Toolkit, a fast, feature-rich and 100&amp;#37; client-only document viewer for Silverlight and LightSwitch applications. Document Toolkit is a commercial product from First Floor Software, the creator of Silverlight Spy.</description><item><title>New Post: Programmaticlly print &amp; or save documents </title><link>http://documenttoolkit.codeplex.com/discussions/286125</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I've updated the sample at&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://firstfloorsoftware.com/downloads/ModifyXps.zip"&gt;http://firstfloorsoftware.com/downloads/ModifyXps.zip&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Apparently&amp;nbsp;the ZipFile needs to be closed before the update is actually committed to stream. Also the new ZipEntry call is not needed and has been removed.&lt;/p&gt;
&lt;p&gt;- Koen&lt;/p&gt;&lt;/div&gt;</description><author>kozw</author><pubDate>Mon, 20 Feb 2012 21:25:40 GMT</pubDate><guid isPermaLink="false">New Post: Programmaticlly print &amp; or save documents  20120220092540P</guid></item><item><title>New Post: Programmaticlly print &amp; or save documents </title><link>http://documenttoolkit.codeplex.com/discussions/286125</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I am able to save the xps document via the code in your example, but when I go to load the document, I get a "Cannot find central directory"&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am loading it like so:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Me.DataSource.PackageReader = New FirstFloor.Documents.IO.SharpZipLib.SharpZipPackageReader(fileBytes.ToStream())&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here's is my translation of your code in VB.Net. I changed getting the annotations from the Me.annotations.Save ( annotations store ) method, and am saving the zipStream.ToArray ( built in extension method of memory stream) ... other than that, it's the same as yours. The only thing I noticed in the example is that You declare a new entry, but don't add it to the zip file (or maybe just declaring it adds it? Anyway, let me know if you can see where I'm going wrong.&lt;/p&gt;
&lt;p&gt;Private Sub SaveAnnotations()&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space: pre;"&gt; &lt;/span&gt;Dim zipStream As System.IO.MemoryStream = Me.Current_FileBytes.ToStream()&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' load the XPS document as ZIP&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space: pre;"&gt; &lt;/span&gt;Using zipFile = New ICSharpCode.SharpZipLib.ZipFile(zipStream)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;span style="white-space: pre;"&gt; &lt;/span&gt;Dim entry = New ICSharpCode.SharpZipLib.ZipEntry("annotations.xml")&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space: pre;"&gt; &lt;/span&gt;Using annotationsStream = New MemoryStream()&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Me.annotations.Save(annotationsStream)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; annotationsStream.Seek(0, SeekOrigin.Begin)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim annotationsSource = New StreamDataSource(annotationsStream)&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space: pre;"&gt; &amp;nbsp;	zipFile.BeginUpdate()&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space: pre;"&gt; zipFile.Add(annotationsSource, "annotations.xml", CompressionMethod.Deflated)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space: pre;"&gt;&amp;nbsp; &amp;nbsp;	 	zipFile.CommitUpdate()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space: pre;"&gt;&amp;nbsp;		Dim AnnotatedDocumentBytes() As Byte = zipStream.ToArray()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space: pre;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Me.FileService.UploadAnnotatedVersionAsync("Annotated_" &amp;amp; item.VersionName, AnnotatedDocumentBytes, item.DocId.ToGuid(), item.VersionId.ToGuid(), Me.ThisUserMeta.CompanyId)&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Using&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space: pre;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Using&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;&lt;/div&gt;</description><author>wa_dev</author><pubDate>Mon, 20 Feb 2012 16:56:07 GMT</pubDate><guid isPermaLink="false">New Post: Programmaticlly print &amp; or save documents  20120220045607P</guid></item><item><title>New Post: PDF Viewer from Lightswitch</title><link>http://documenttoolkit.codeplex.com/discussions/327489</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;The open source PDF engine of Document Toolkit only implements parts of the PDF specification. Correct rendering of PDF documents is not guaranteed, and there is no workaround for this. The PDF engine works best with PDF documents that contain embedded OpenType fonts. The Microsoft Office Save-As-PDF add-in does create such documents.&lt;/p&gt;
&lt;p&gt;PDF rendering is not related to Silverlight 4 or 5. The NuGet packages contains versions for both SL4 and 5.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;- Koen&lt;/p&gt;&lt;/div&gt;</description><author>kozw</author><pubDate>Mon, 20 Feb 2012 12:55:41 GMT</pubDate><guid isPermaLink="false">New Post: PDF Viewer from Lightswitch 20120220125541P</guid></item><item><title>New Post: Programmaticlly print &amp; or save documents </title><link>http://documenttoolkit.codeplex.com/discussions/286125</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;You'll need to read the XPS document itself as zip file. I've created a sample project doing just that. ICSharpZip has a bit of a archaic API, but it works well.&lt;/p&gt;
&lt;p&gt;Sample project available at &lt;a href="http://firstfloorsoftware.com/downloads/ModifyXps.zip"&gt;http://firstfloorsoftware.com/downloads/ModifyXps.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;- Koen&lt;/p&gt;&lt;/div&gt;</description><author>kozw</author><pubDate>Mon, 20 Feb 2012 12:52:06 GMT</pubDate><guid isPermaLink="false">New Post: Programmaticlly print &amp; or save documents  20120220125206P</guid></item><item><title>New Post: get current scaling when ScaleMode is FitWidth?</title><link>http://documenttoolkit.codeplex.com/discussions/287933</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I user this for "FitToWidth" and it works perfectly.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Private Sub SetViewFitToWidth()&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim newViewMode As New ViewMode()&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space: pre;"&gt; &lt;/span&gt;newViewMode.ScaleMode = ScaleMode.FitWidth&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space: pre;"&gt; &lt;/span&gt;newViewMode.IsDefault = Me.Viewer.ViewMode.IsDefault&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Me.Viewer.ViewMode = newViewMode&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;&lt;/div&gt;</description><author>wa_dev</author><pubDate>Mon, 20 Feb 2012 02:02:49 GMT</pubDate><guid isPermaLink="false">New Post: get current scaling when ScaleMode is FitWidth? 20120220020249A</guid></item><item><title>New Post: PDF Viewer from Lightswitch</title><link>http://documenttoolkit.codeplex.com/discussions/327489</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;One thing I have noticed is if you build the application with SL 4 and a users has the 5.+ runtime installed, the pdf package reader does not work&amp;nbsp;consistently. But if the runtimes match, the package reader works perfectly (minus a couple extreme cases with odd pdf's).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if the clients runtime folder looks like this:&amp;nbsp;C:\Program Files (x86)\Microsoft Silverlight\4.1.10111.0&lt;/p&gt;
&lt;p&gt;and you built it with SL 4, then your all good.&lt;/p&gt;
&lt;p&gt;, but if it looks like :&amp;nbsp;C:\Program Files (x86)\Microsoft Silverlight\5.?+++&lt;/p&gt;
&lt;p&gt;then the client must revert to the&amp;nbsp;4.1.10111.0 runtime by uninstalling, and reinstalling.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But that was just my experience.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>wa_dev</author><pubDate>Mon, 20 Feb 2012 02:00:25 GMT</pubDate><guid isPermaLink="false">New Post: PDF Viewer from Lightswitch 20120220020025A</guid></item><item><title>New Post: PDF Viewer from Lightswitch</title><link>http://documenttoolkit.codeplex.com/discussions/327489</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Many of my PDF documents do not render, but some do. &amp;nbsp;This is displayed by the viewer when it can't render a document:&lt;/p&gt;
&lt;p&gt;Failed to Render Page&lt;br&gt;
&amp;nbsp;&lt;br&gt;
Failed to load package part '1.fpage'&lt;br&gt;
Description: An exception occurred during the rendering of this page. Please review the stacktrace for more information about the error.&lt;br&gt;
Exception Details:FirstFloor.Documents.IO.XpsClientException: Failed to load package part '1.fpage' ---&amp;gt; System.Collections.Generic.KeyNotFoundException: Resources&amp;nbsp; &amp;nbsp;at FirstFloor.Documents.Pdf.DictionaryObject.Get[T](String key)&amp;nbsp; &amp;nbsp;at
 FirstFloor.Documents.Pdf.PageParserContext.Create(DictionaryObject pageObject, XmlWriter writer, LoadSettings settings)&amp;nbsp; &amp;nbsp;at FirstFloor.Documents.Pdf.PageParser.Parse(DictionaryObject pageObject, LoadSettings settings)&amp;nbsp; &amp;nbsp;at FirstFloor.Documents.Pdf.PdfParser.ParsePage(Int32
 pageNumber, LoadSettings settings)&amp;nbsp; &amp;nbsp;at FirstFloor.Documents.Pdf.PdfDocument.GetPageXaml(Int32 pageNumber, LoadSettings settings)&amp;nbsp; &amp;nbsp;at FirstFloor.Documents.Pdf.PdfDocumentReader.GetPageXaml(Int32 pageNumber)&amp;nbsp; &amp;nbsp;at FirstFloor.Documents.IO.MemoryPackageReader.&amp;#1;(Int32
 )&amp;nbsp; &amp;nbsp;at FirstFloor.Documents.IO.MemoryPackageReader.CreatePartRequest(Uri partUri)&amp;nbsp; &amp;nbsp;at FirstFloor.Documents.IO.XpsClient.&amp;#3;(IPackageReader , Uri , Boolean )&amp;nbsp; &amp;nbsp;at FirstFloor.Documents.IO.XpsClient.&amp;#1;(IPackageReader , Uri , Boolean
 , Boolean )&amp;nbsp; &amp;nbsp;--- End of inner exception stack trace ---&amp;nbsp; &amp;nbsp;at FirstFloor.Documents.IO.XpsClient.&amp;#1;(IPackageReader , Uri , Boolean , Boolean )&amp;nbsp; &amp;nbsp;at FirstFloor.Documents.IO.XpsClient.&amp;#1;(XpsPartBase , Boolean , Boolean )&amp;nbsp; &amp;nbsp;at
 FirstFloor.Documents.IO.XpsClient.&amp;#1;(XpsPartBase , Boolean )&amp;nbsp; &amp;nbsp;at &amp;#4;.&amp;#3;.&amp;#1;(XpsClient , PageContent , LoadFixedPageSettings )&amp;nbsp; &amp;nbsp;at FirstFloor.Documents.IO.XpsClient.&amp;#1;(PageContent , LoadFixedPageSettings )&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;/div&gt;</description><author>stokara</author><pubDate>Sun, 19 Feb 2012 16:24:41 GMT</pubDate><guid isPermaLink="false">New Post: PDF Viewer from Lightswitch 20120219042441P</guid></item><item><title>New Post: Programmaticlly print &amp; or save documents </title><link>http://documenttoolkit.codeplex.com/discussions/286125</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Ok. I you can please tell me what I'm doing wrong here, that would be awesome.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here's is how I am building the zip file with the SharpZipLib. and I have tested that the zip file being made can be opened without error&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;&lt;span style="color: blue;"&gt;Using&lt;/span&gt; zippedMemoryStream &lt;span style="color: blue;"&gt;As&lt;/span&gt; System.IO.MemoryStream = &lt;span style="color: blue;"&gt;New&lt;/span&gt; System.IO.MemoryStream()
� � � � � � &lt;span style="color: blue;"&gt;Using&lt;/span&gt; ZipOutStream &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; ICSharpCode.SharpZipLib.ZipOutputStream(zippedMemoryStream)
� � � � � � � � ZipOutStream.SetLevel(9)
� � � � � � � � &lt;span style="color: green;"&gt;'add xps document to zip� � � � � � � � Dim xpsDoc As Byte() = Me.Current_FileBytes&lt;/span&gt;
� � � � � � � � &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; docEntry &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; ICSharpCode.SharpZipLib.ZipEntry(item.DocName)
� � � � � � � � ZipOutStream.PutNextEntry(docEntry)
� � � � � � � � ZipOutStream.Write(xpsDoc, 0, xpsDoc.Length)

� � � � � � � � &lt;span style="color: green;"&gt;'add annotations to zip� � � � � � � � Dim annoStream As New System.IO.MemoryStream&lt;/span&gt;
� � � � � � � � &lt;span style="color: blue;"&gt;Me&lt;/span&gt;.annotations.Save(annoStream)
� � � � � � � � annoStream.Seek(0, SeekOrigin.Begin)
� � � � � � � � &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; annoBytes() &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;Byte&lt;/span&gt; = annoStream.ToArray()
� � � � � � � � &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; annoEntry &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; ICSharpCode.SharpZipLib.ZipEntry(&lt;span style="color: #a31515;"&gt;"annotations.xml"&lt;/span&gt;)
� � � � � � � � ZipOutStream.PutNextEntry(annoEntry)
� � � � � � � � ZipOutStream.Write(annoBytes, 0, annoBytes.Length)
� � � � � � � � ZipOutStream.Finish()
� � � � � � � � &lt;span style="color: green;"&gt;'get byte() of zip file� � � � � � � � Dim AnnotatedDocumentBytes() As Byte = zippedMemoryStream.ToArray()&lt;/span&gt;
� � � � � � � � &lt;span style="color: blue;"&gt;Me&lt;/span&gt;.FileService.UploadAnnotatedVersionAsync(&lt;span style="color: #a31515;"&gt;"Annotated_"&lt;/span&gt; &amp;amp; item.VersionName &amp;amp; &lt;span style="color: #a31515;"&gt;".zip"&lt;/span&gt;, AnnotatedDocumentBytes, item.DocId.ToGuid(), item.VersionId.ToGuid(), &lt;span style="color: blue;"&gt;Me&lt;/span&gt;.ThisUserMeta.CompanyId)
� � � � � � � � annoStream.Close()� � � � � � � � annoStream.Dispose()
� � � � � � &lt;span style="color: blue;"&gt;End&lt;/span&gt; &lt;span style="color: blue;"&gt;Using&lt;/span&gt;
� � � � &lt;span style="color: blue;"&gt;End&lt;/span&gt; &lt;span style="color: blue;"&gt;Using&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And I'm reading the zip file stream like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;� &lt;span style="color: blue;"&gt;Me&lt;/span&gt;.DataSource.PackageReader = &lt;span style="color: blue;"&gt;New&lt;/span&gt; FirstFloor.Documents.IO.SharpZipLib.SharpZipPackageReader(fileBytes.ToStream())� � � � � � � � SetViewFitToWidth()

Trying to read the zip file created by the above stated code, cause this error:&lt;/pre&gt;
&lt;pre&gt;Could not read the XPS package. Either the package is not valid XPS or the package reader does not support the ZIP format of the package.&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;The "annotations.xml" contents look like this (which seem a bit empty if you ask me).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;&lt;span style="color: blue;"&gt;&amp;lt;?&lt;/span&gt;&lt;span style="color: #a31515;"&gt;xml&lt;/span&gt; &lt;span style="color: red;"&gt;version&lt;/span&gt;&lt;span style="color: blue;"&gt;=&lt;/span&gt;&lt;span style="color: black;"&gt;"&lt;/span&gt;&lt;span style="color: blue;"&gt;1.0&lt;/span&gt;&lt;span style="color: black;"&gt;"&lt;/span&gt; &lt;span style="color: red;"&gt;encoding&lt;/span&gt;&lt;span style="color: blue;"&gt;=&lt;/span&gt;&lt;span style="color: black;"&gt;"&lt;/span&gt;&lt;span style="color: blue;"&gt;utf-8&lt;/span&gt;&lt;span style="color: black;"&gt;"&lt;/span&gt;&lt;span style="color: blue;"&gt;?&amp;gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;Annotations&lt;/span&gt; &lt;span style="color: red;"&gt;xmlns&lt;/span&gt;&lt;span style="color: blue;"&gt;=&lt;/span&gt;&lt;span style="color: black;"&gt;"&lt;/span&gt;&lt;span style="color: blue;"&gt;http://schemas.firstfloorsoftware.com/2009/annotations&lt;/span&gt;&lt;span style="color: black;"&gt;"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&amp;gt;&lt;/span&gt;

&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;pre&gt;So, I am creating a zip file... adding the document, and adding an xml document of annotations to the zip file.&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;pre&gt;Then trying to open it via the SharpPackageReader... Please help it letting me know what's wrong with my approach. THank you.&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description><author>wa_dev</author><pubDate>Sun, 19 Feb 2012 04:48:53 GMT</pubDate><guid isPermaLink="false">New Post: Programmaticlly print &amp; or save documents  20120219044853A</guid></item><item><title>New Post: get current scaling when ScaleMode is FitWidth?</title><link>http://documenttoolkit.codeplex.com/discussions/287933</link><description>&lt;div style="line-height: normal;"&gt;You can just assign the control a whole new IEnumerable of ViewModes in the backend, and that &amp;quot;overrides&amp;quot; the default set. You could probably also modify it to remove specific items.
&lt;div&gt;&lt;br&gt;
&lt;div&gt;FYI, if I remember right there's a static method on the ViewMode class called GetDefaultViewModes() that returns the default list. Might not be useful to you but perhaps it will help at some point down the line...&lt;/div&gt;
&lt;div&gt;&lt;br clear="all"&gt;
Sebastian.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;div&gt;On Thu, Feb 16, 2012 at 2:45 AM, nickvanhooydonk &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:notifications@codeplex.com"&gt;notifications@codeplex.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex"&gt;
&lt;div&gt;
&lt;p&gt;From: nickvanhooydonk&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;For the viewmodepicker: Recently I've added a few viewmodes of my own, but I can't find where to disable the predefined set of viewmodes&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;Read the &lt;a href="http://documenttoolkit.codeplex.com/discussions/287933#post769159" target="_blank"&gt;
full discussion online&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To add a post to this discussion, reply to this email (&lt;a href="mailto:documenttoolkit@discussions.codeplex.com?subject=[documenttoolkit:287933]" target="_blank"&gt;documenttoolkit@discussions.codeplex.com&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;To start a new discussion for this project, email &lt;a href="mailto:documenttoolkit@discussions.codeplex.com" target="_blank"&gt;
documenttoolkit@discussions.codeplex.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You are receiving this email because you subscribed to this discussion on CodePlex. You can
&lt;a href="https://documenttoolkit.codeplex.com/discussions/287933/unsubscribe/" target="_blank"&gt;
unsubscribe&lt;/a&gt; on CodePlex.com.&lt;/p&gt;
&lt;p&gt;Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>Smashd</author><pubDate>Thu, 16 Feb 2012 23:40:51 GMT</pubDate><guid isPermaLink="false">New Post: get current scaling when ScaleMode is FitWidth? 20120216114051P</guid></item><item><title>New Post: Index</title><link>http://documenttoolkit.codeplex.com/discussions/303489</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Lol, still not sure what you mean. Do you need to modify the document itself? Document Toolkit is a viewer, it doesn't provide editing functionality (apart from annotating documents)&lt;/p&gt;
&lt;p&gt;- Koen&lt;/p&gt;&lt;/div&gt;</description><author>kozw</author><pubDate>Thu, 16 Feb 2012 14:59:10 GMT</pubDate><guid isPermaLink="false">New Post: Index 20120216025910P</guid></item><item><title>New Post: get current scaling when ScaleMode is FitWidth?</title><link>http://documenttoolkit.codeplex.com/discussions/287933</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;. &amp;lt;- Can someone please delete this reply?! I accidentaly posted on the wrong discussion. My bad.&lt;/p&gt;&lt;/div&gt;</description><author>nickvanhooydonk</author><pubDate>Thu, 16 Feb 2012 08:45:38 GMT</pubDate><guid isPermaLink="false">New Post: get current scaling when ScaleMode is FitWidth? 20120216084538A</guid></item><item><title>New Post: Index</title><link>http://documenttoolkit.codeplex.com/discussions/303489</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Koen,&lt;/p&gt;
&lt;p&gt;Sorry I didn't make myself fully clear. I don't want to change the visible page.&lt;/p&gt;
&lt;p&gt;What I want is to change the legend of the document before printing a word document.&lt;/p&gt;
&lt;p&gt;Is this possible?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;Gr,&lt;/p&gt;
&lt;p&gt;Nick&lt;/p&gt;
&lt;p&gt;(Thanks for the great support!)&lt;/p&gt;&lt;/div&gt;</description><author>nickvanhooydonk</author><pubDate>Wed, 15 Feb 2012 10:45:53 GMT</pubDate><guid isPermaLink="false">New Post: Index 20120215104553A</guid></item><item><title>Created Issue: Problem open a PDF file [17413]</title><link>http://documenttoolkit.codeplex.com/workitem/17413</link><description>Hi&amp;#58;&lt;br /&gt;I &amp;#39;m trying to open a pdf using  PdfDocumentReader&amp;#40;stream&amp;#41; method but fail with a specific pdf &amp;#40;not all&amp;#41;. The problem is in the class DictionaryObject because the generic method GET&amp;#60;T&amp;#62; not found a value for the specified key &amp;#40;key&amp;#61;FirstChar&amp;#41;&lt;br /&gt;It &amp;#39;s possible fix it&amp;#63;&lt;br /&gt;Best Regards&lt;br /&gt;Octavio&lt;br /&gt;</description><author>octavioccl</author><pubDate>Mon, 13 Feb 2012 18:34:33 GMT</pubDate><guid isPermaLink="false">Created Issue: Problem open a PDF file [17413] 20120213063433P</guid></item><item><title>New Post: Index</title><link>http://documenttoolkit.codeplex.com/discussions/303489</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Hick,&lt;/p&gt;
&lt;p&gt;The DocumentViewer control has a PageIndex and PageNumber property that you can set to change the visible page. By default PageIndex = 0 and PageNumber = 1 when a document is initially displayed.&lt;/p&gt;
&lt;p&gt;- Koen&lt;/p&gt;&lt;/div&gt;</description><author>kozw</author><pubDate>Mon, 13 Feb 2012 13:20:56 GMT</pubDate><guid isPermaLink="false">New Post: Index 20120213012056P</guid></item><item><title>New Post: Index</title><link>http://documenttoolkit.codeplex.com/discussions/303489</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Hick,&lt;/p&gt;
&lt;p&gt;The DocumentViewer control has a PageIndex and PageNumber property that you can set to change the visible page. By default PageIndex = 0 and PageNumber = 1 when a document is initially displayed.&lt;/p&gt;
&lt;p&gt;- Koen&lt;/p&gt;&lt;/div&gt;</description><author>kozw</author><pubDate>Mon, 13 Feb 2012 13:20:56 GMT</pubDate><guid isPermaLink="false">New Post: Index 20120213012056P</guid></item><item><title>New Post: Index</title><link>http://documenttoolkit.codeplex.com/discussions/303489</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Koen,&lt;/p&gt;
&lt;p&gt;Uhm what I mean is:&lt;/p&gt;
&lt;p&gt;when the page is open and the Document index (mostly second page) is incorrect to change it.&lt;/p&gt;
&lt;p&gt;(Ist the document index stored somewhere?)&lt;/p&gt;
&lt;p&gt;, Nick&lt;/p&gt;&lt;/div&gt;</description><author>nickvanhooydonk</author><pubDate>Mon, 13 Feb 2012 12:41:48 GMT</pubDate><guid isPermaLink="false">New Post: Index 20120213124148P</guid></item><item><title>New Post: Index</title><link>http://documenttoolkit.codeplex.com/discussions/303489</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Koen,&lt;/p&gt;
&lt;p&gt;Uhm what I mean is:&lt;/p&gt;
&lt;p&gt;when the page is open and the Document index (mostly second page) is incorrect to change it.&lt;/p&gt;
&lt;p&gt;(Ist the document index stored somewhere?)&lt;/p&gt;
&lt;p&gt;, Nick&lt;/p&gt;&lt;/div&gt;</description><author>nickvanhooydonk</author><pubDate>Mon, 13 Feb 2012 12:41:48 GMT</pubDate><guid isPermaLink="false">New Post: Index 20120213124148P</guid></item><item><title>New Post: Programmaticlly print &amp; or save documents </title><link>http://documenttoolkit.codeplex.com/discussions/286125</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I was mistaken, the Silverlight version of the DotNetZip indeed doesn't contain AddEntry methods. I referred to the full .NET version. You may want to try the SharpZipLib, that library seems to have the AddEntry methods.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Koen&lt;/p&gt;&lt;/div&gt;</description><author>kozw</author><pubDate>Fri, 10 Feb 2012 21:53:20 GMT</pubDate><guid isPermaLink="false">New Post: Programmaticlly print &amp; or save documents  20120210095320P</guid></item><item><title>New Post: Programmaticlly print &amp; or save documents </title><link>http://documenttoolkit.codeplex.com/discussions/286125</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Can you please just type out the full namespace with your classes? (ie &amp;nbsp;Namespace.Namespace.DotNetZip.ZipFile)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Firstfloor.documunts.IO.DotNetZip does not contain a class name ZipFile ... and that is the namespace that comes down from NuGet&lt;/p&gt;&lt;/div&gt;</description><author>wa_dev</author><pubDate>Fri, 10 Feb 2012 20:50:28 GMT</pubDate><guid isPermaLink="false">New Post: Programmaticlly print &amp; or save documents  20120210085028P</guid></item><item><title>New Post: Programmaticlly print &amp; or save documents </title><link>http://documenttoolkit.codeplex.com/discussions/286125</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;The instruction in the link are exactly what I have done. After adding these, I have 3 different ZipFile classes to choose from depending on the namespace... all of which don't have parameters as you have shown here. I guess I will just search around in intelli-sense until I find it. Thanks man.&lt;/p&gt;&lt;/div&gt;</description><author>wa_dev</author><pubDate>Fri, 10 Feb 2012 20:38:17 GMT</pubDate><guid isPermaLink="false">New Post: Programmaticlly print &amp; or save documents  20120210083817P</guid></item></channel></rss>
