<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Messages posted by "dmaass"]]></title>
		<link>http://jforum.icesoft.org/JForum/posts/listByUser/70369.page</link>
		<description><![CDATA[Messages posted by "dmaass"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>TotalPagesToPrint in Viewer RI</title>
				<description><![CDATA[ When I select "all" as Print Range in print dialog the print progress dialog shows a total number of Integer.MAX_VALUE.

Is this a known problem?

The attached patch helped me. But, has someone a better solution? ( could be better to check this during the iteration over page ranges )

Regards,
Dirk]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/16655/62197.page#62197</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/16655/62197.page#62197</link>
				<pubDate><![CDATA[Fri, 23 Apr 2010 10:05:41]]> GMT</pubDate>
				<author><![CDATA[ dmaass]]></author>
			</item>
			<item>
				<title>Re:SwingController: keeping printHelper settings</title>
				<description><![CDATA[ Thank you for your quick reply!

Why not simply use the attributes of an already existing PrintHelper as in the proposed patch? I thought this was intended by the writer of (SwingController#initialisePrinting)
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
PrintHelper printHelper = viewModel.getPrintHelper&#40;&#41;;
</pre>
		</div>
and the error is at the next line 
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
printHelper = new PrintHelper&#40;documentViewController, getPageTree&#40;&#41;&#41;;
</pre>
		</div>
??]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/16012/60445.page#60445</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/16012/60445.page#60445</link>
				<pubDate><![CDATA[Wed, 10 Feb 2010 04:55:11]]> GMT</pubDate>
				<author><![CDATA[ dmaass]]></author>
			</item>
			<item>
				<title>SwingController: keeping printHelper settings</title>
				<description><![CDATA[ Hi, 
maybe this issue was solved elsewhere, so ignore it if it isn't of interest.. 

When i used the SwingController to display a document the printer dialog always used the letter page size as default when i pressed the print button. I wanted to change this beavior using the following 
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
      SwingController controller;
          ... // some initialization incl. call controller.openDocument&#40;...&#41;
      controller.getViewModel&#40;&#41;.setPrintHelper&#40;
          new PrintHelper&#40; controller.getDocumentViewController&#40;&#41;, controller
              .getDocument&#40;&#41;.getPageTree&#40;&#41;, MediaSizeName.ISO_A4,
              PrintQuality.NORMAL &#41; &#41;;
</pre>
		</div>
This did not help. The reason is, that the printHelper is always overwritten in SwingController#initialisePrinting(...).

The attached patch helped me. Should i file a bug?
]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/16012/60419.page#60419</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/16012/60419.page#60419</link>
				<pubDate><![CDATA[Tue, 9 Feb 2010 06:51:33]]> GMT</pubDate>
				<author><![CDATA[ dmaass]]></author>
			</item>
	</channel>
</rss>
