<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FlexiCoder Blog &#187; .Net Printing Controls</title>
	<atom:link href="http://www.flexicoder.com/blog/index.php/category/net-printing-controls/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexicoder.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 28 Jul 2010 15:11:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PrintPreviewControl</title>
		<link>http://www.flexicoder.com/blog/index.php/2008/12/printpreviewcontrol/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2008/12/printpreviewcontrol/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 11:57:00 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[.Net Printing Controls]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[.Net code]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=17</guid>
		<description><![CDATA[If you are using the PrintPreviewControl and what the page displayed to be refreshed with a new document, you must call the PrintPreviewControl.InvalidatePreview method. In 1.1 this did it automatically everytime a document was set, but now you have to do it manually, thats progress for you!

StatementPrintPreviewControl.Document = aDocument
StatementPrintPreviewControl.InvalidatePreview()

Social Bookmarking]]></description>
			<content:encoded><![CDATA[<p>If you are using the <em>PrintPreviewControl</em> and what the page displayed to be refreshed with a new document, you must call the <em>PrintPreviewControl.InvalidatePreview</em> method. In 1.1 this did it automatically everytime a document was set, but now you have to do it manually, thats progress for you!</p>
<p><code>
<pre class="bush:vb">StatementPrintPreviewControl.Document = aDocument
StatementPrintPreviewControl.InvalidatePreview()</pre>
<p></code></p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2008/12/printpreviewcontrol/&title=PrintPreviewControl&text=If+you+are+using+the+PrintPreviewControl+and+what+the+page+displayed+to+be+refreshed+with+a+new+document%2C+you+must+call+the+PrintPreviewControl.InvalidatePreview+method.+In+1.1+this+did+it...&tags=" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2008/12/printpreviewcontrol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PrintDocument, PrintPreviewDialog and Multiple Pages</title>
		<link>http://www.flexicoder.com/blog/index.php/2008/12/printdocument-printpreviewdialog-and-multiple-pages/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2008/12/printdocument-printpreviewdialog-and-multiple-pages/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 11:03:00 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[.Net Printing Controls]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[.Net code]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=6</guid>
		<description><![CDATA[If you are generating multiple pages in a document you set the e.HasMorePages to true, normally this is done by checking how many pages you have to print, e.g.


_CurrentPageNumber += 1
e.HasMorePages = _CurrentPageNumber

If the user then decides to Print the pages they are likely to only see the first page because the _CurrentPageNumber has not [...]]]></description>
			<content:encoded><![CDATA[<p>If you are generating multiple pages in a document you set the<span style="font-family:courier new;"><strong> e.HasMorePages</strong></span> to true, normally this is done by checking how many pages you have to print, e.g.</p>
<p><code>
<pre class="brush:vb">
_CurrentPageNumber += 1
e.HasMorePages = _CurrentPageNumber
</pre>
<p></code><br />If the user then decides to Print the pages they are likely to only see the first page because the _CurrentPageNumber has not been reset to zero, as the Print command actually regenerates the pages by firing your code again not using what it has already created.</p>
<p>The tip here is to reset the controlling counter in the <span style="font-family:courier new;"><strong>BeginPrint</strong></span> event</p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2008/12/printdocument-printpreviewdialog-and-multiple-pages/&title=PrintDocument%2C+PrintPreviewDialog+and+Multiple+Pages&text=If+you+are+generating+multiple+pages+in+a+document+you+set+the+e.HasMorePages+to+true%2C+normally+this+is+done+by+checking+how+many+pages+you+have+to+print%2C+e.g.+++_CurrentPageNumber+%2B%3D+1...&tags=" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2008/12/printdocument-printpreviewdialog-and-multiple-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
