 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: WPF Printing using PrintVisual</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/wpf/wpf-printing-using-printvisual/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/wpf/wpf-printing-using-printvisual/</link>
	<description></description>
	<lastBuildDate>Sun, 07 Dec 2008 03:33:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Siten0308</title>
		<link>http://itknowledgeexchange.techtarget.com/wpf/wpf-printing-using-printvisual/#comment-24</link>
		<dc:creator>Siten0308</dc:creator>
		<pubDate>Sun, 07 Dec 2008 03:33:11 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/wpf/wpf-printing-using-printvisual/#comment-24</guid>
		<description><![CDATA[Hello,

Thank you for the information, i am doing a practice examle with your example, its showing up this weird error message do you know? here is the code below including the error message, thank you

private void btnprint_Click(object sender, RoutedEventArgs e)
        {
           System.Windows.Controls.PrintDialog prtDlg = new System.Windows.Controls.PrintDialog();
            if(prtDlg.ShowDialog() == true)
            {
                prtDlg.PrintVisual(bitmap, desc);
            }
}
error message:
the best overload method match for system.windows.controls.printdialog.printvisual(system.windows.media.visual, string); has some invalid arguments

argument 1: cannot convert from system.window.media.imaging.bitmapimage to system.windows.media.visual.

PLEASE HELP : (]]></description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thank you for the information, i am doing a practice examle with your example, its showing up this weird error message do you know? here is the code below including the error message, thank you</p>
<p>private void btnprint_Click(object sender, RoutedEventArgs e)<br />
        {<br />
           System.Windows.Controls.PrintDialog prtDlg = new System.Windows.Controls.PrintDialog();<br />
            if(prtDlg.ShowDialog() == true)<br />
            {<br />
                prtDlg.PrintVisual(bitmap, desc);<br />
            }<br />
}<br />
error message:<br />
the best overload method match for system.windows.controls.printdialog.printvisual(system.windows.media.visual, string); has some invalid arguments</p>
<p>argument 1: cannot convert from system.window.media.imaging.bitmapimage to system.windows.media.visual.</p>
<p>PLEASE HELP : (</p>
]]></content:encoded>
	</item>
</channel>
</rss>
