<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : [SOLVED]An exception occurs when printing a report</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [SOLVED]An exception occurs when printing a report]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 16:53:57 +0000</pubDate>
  <lastBuildDate>Thu, 19 Jan 2012 09:49:45 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=19333</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[[SOLVED]An exception occurs when printing a report : That&amp;#039;s great! Thanks! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67465&amp;title=solvedan-exception-occurs-when-printing-a-report#67465</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6226">Willowmaster</a><br /><strong>Subject:</strong> 19333<br /><strong>Posted:</strong> 19 January 2012 at 9:49am<br /><br />That's great! Thanks!]]>
   </description>
   <pubDate>Thu, 19 Jan 2012 09:49:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67465&amp;title=solvedan-exception-occurs-when-printing-a-report#67465</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]An exception occurs when printing a report :    Willowmaster wrote:Well....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67462&amp;title=solvedan-exception-occurs-when-printing-a-report#67462</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 19333<br /><strong>Posted:</strong> 19 January 2012 at 8:29am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Willowmaster" alt="Originally posted by Willowmaster" style="vertical-align: text-bottom;" /> <strong>Willowmaster wrote:</strong><br /><br />Well. It happens when you use the ribbonsample. Just klik on print-&gt;print button. Second time you try to open the print backstage it crashes. At least with me. Wat do you want me to do? Strip the ribbonsample until only the print option is there? I can do that if you want me to. <div></div>Worst case scenario: I'll zip my virtual machine and send it over. :)</td></tr></table><br><br>Hi,<br><br>the print preview issues have been fixed for the next release.<br><br>Andre<br><br>]]>
   </description>
   <pubDate>Thu, 19 Jan 2012 08:29:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67462&amp;title=solvedan-exception-occurs-when-printing-a-report#67462</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]An exception occurs when printing a report : Hi SuperMario,Yes, this is solved....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67399&amp;title=solvedan-exception-occurs-when-printing-a-report#67399</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6526">kaliand</a><br /><strong>Subject:</strong> 19333<br /><strong>Posted:</strong> 12 January 2012 at 3:30am<br /><br />Hi SuperMario,<br><br>Yes, this is solved. i used the first solution, adding the stdole assembly to the project.<br>Now the print preview runs without problems.<br><br>thanks for your attention.<br>regards.<br>]]>
   </description>
   <pubDate>Thu, 12 Jan 2012 03:30:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67399&amp;title=solvedan-exception-occurs-when-printing-a-report#67399</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]An exception occurs when printing a report : Is this solved? ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67396&amp;title=solvedan-exception-occurs-when-printing-a-report#67396</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 19333<br /><strong>Posted:</strong> 12 January 2012 at 2:27am<br /><br />Is this solved?]]>
   </description>
   <pubDate>Thu, 12 Jan 2012 02:27:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67396&amp;title=solvedan-exception-occurs-when-printing-a-report#67396</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]An exception occurs when printing a report :   Hi SuperMario,i will prove...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67384&amp;title=solvedan-exception-occurs-when-printing-a-report#67384</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6526">kaliand</a><br /><strong>Subject:</strong> 19333<br /><strong>Posted:</strong> 10 January 2012 at 1:20pm<br /><br />Hi SuperMario,<br><span id="result_" ="short_text"="" lang="en"><span ="hps"="">i will prove its last recommendation.</span></span><br><br>Answering to your first and second question :<br>1- Yes<br>2- the OS on the clients machine is win XP service pack 3<br><br>Thanks!!<br>regards.<br>]]>
   </description>
   <pubDate>Tue, 10 Jan 2012 13:20:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67384&amp;title=solvedan-exception-occurs-when-printing-a-report#67384</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]An exception occurs when printing a report : Try this:1. Right click on the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67382&amp;title=solvedan-exception-occurs-when-printing-a-report#67382</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 19333<br /><strong>Posted:</strong> 10 January 2012 at 12:47pm<br /><br /><div>Try this:</div><div><br></div><div>1. &nbsp;Right click on the stdole.dll in the reference section of project and select local copy true. By default it will be false. &nbsp;This will tell the application not to get it from the GAC.</div><div>2. &nbsp;Add the file to your application. &nbsp;In your setup application, go to View-&gt;Editor-&gt;File System. &nbsp;In the pane that opens up, right click and select Add-&gt;Assembly. &nbsp;Go to the following location:C:\Program Files\Microsoft.NET\Primary Interop Assemblies and select stdole.dll.</div><div><br></div><div>Or you can try to manually install stdole.dll in the GAC. For example, running the following single line command from an elevated command prompt:</div><div>"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe" -i "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\PublicAssemblies\stdole.dll"</div>]]>
   </description>
   <pubDate>Tue, 10 Jan 2012 12:47:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67382&amp;title=solvedan-exception-occurs-when-printing-a-report#67382</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]An exception occurs when printing a report :  This is the ONLY code executed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67381&amp;title=solvedan-exception-occurs-when-printing-a-report#67381</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 19333<br /><strong>Posted:</strong> 10 January 2012 at 12:38pm<br /><br />This is the ONLY code executed when that button is clicked? &nbsp;Does it happen on Win7?<div><br></div><div><span style="text-align: left; : rgb248, 248, 252; ">&nbsp; &nbsp; &nbsp;With AxReportControl1.PrintOptions</span><br style="text-align: left; : rgb248, 248, 252; "><span style="text-align: left; : rgb248, 248, 252; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Header.TextLeft = m_clsReport.ReportTitle</span><br style="text-align: left; : rgb248, 248, 252; "><span style="text-align: left; : rgb248, 248, 252; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Header.Font.Size = 14</span><br style="text-align: left; : rgb248, 248, 252; "><span style="text-align: left; : rgb248, 248, 252; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Header.Font.Name = "Calibri"</span><br style="text-align: left; : rgb248, 248, 252; "><span style="text-align: left; : rgb248, 248, 252; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Header.Font.Bold = True</span><br style="text-align: left; : rgb248, 248, 252; "><br style="text-align: left; : rgb248, 248, 252; "><span style="text-align: left; : rgb248, 248, 252; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .RepeatFooterRows = True</span><br style="text-align: left; : rgb248, 248, 252; "><span style="text-align: left; : rgb248, 248, 252; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AxReportControl1.PrintPreview(True)</span><br style="text-align: left; : rgb248, 248, 252; "><span style="text-align: left; : rgb248, 248, 252; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With</span></div>]]>
   </description>
   <pubDate>Tue, 10 Jan 2012 12:38:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67381&amp;title=solvedan-exception-occurs-when-printing-a-report#67381</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]An exception occurs when printing a report : Thanks Willow, we agree on the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67378&amp;title=solvedan-exception-occurs-when-printing-a-report#67378</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 19333<br /><strong>Posted:</strong> 10 January 2012 at 10:24am<br /><br />Thanks Willow, we agree on the ribbon sample and that is getting addressed now. &nbsp;However we are still trying to reproduce the report print preview bug so we can fix it.]]>
   </description>
   <pubDate>Tue, 10 Jan 2012 10:24:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67378&amp;title=solvedan-exception-occurs-when-printing-a-report#67378</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]An exception occurs when printing a report :   Hi SuperMario,The error occurs...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67371&amp;title=solvedan-exception-occurs-when-printing-a-report#67371</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6526">kaliand</a><br /><strong>Subject:</strong> 19333<br /><strong>Posted:</strong> 10 January 2012 at 4:03am<br /><br />Hi SuperMario,<br><br>The error occurs in all client's pc, not only in one, and works fine in the too machines which have installed the suite.<br><br>error:<br><span id="result_" =""="" lang="en"><span ="hps"="">"<i>System.IO.FileNotFoundException</i></span><i><span>: Could not</span> <span ="hps"="">load file or</span> <span ="hps="" atn"="">assembly '</span><span>stdole</span><span>, Version =</span> <span ="hps"="">7.0.3300.0</span><span =""="">, Culture =</span> <span ="hps"="">neutral</span><span =""="">, PublicKeyToken</span> <span ="hps"="">=</span> <span ="hps"="">b03f5f7f11d50a3a</span><span>' or one</span> <span ="hps"="">of its dependencies.</span> <span ="hps"="">The</span> <span ="hps"="">system can not find</span> <span ="hps"="">the file specified.</span><br> <span ="hps"="">File name</span><span ="atn"="">: '</span><span>stdole</span><span =""="">, Version =</span> <span ="hps"="">7.0.3300.0</span><span>, Culture =</span> <span ="hps"="">neutral</span><span =""="">, PublicKeyToken</span> <span ="hps"="">=</span> <span ="hps"="">b03f5f7f11d50a3a'</span></i></span>"<br><br>i paste you a screenshoots of the error<br><br>This srceen shoot shows a form with the report control running without any problem on the client machine:<br><img src="uploads/6526/C&#111;ntrolReport.jpg" height="773" width="1125" border="0" /><br><br><br>the next one shows the error that occurs when the client try to print in preview mode.<br><br><img src="uploads/6526/C&#111;ntrolReportCrash.jpg" height="759" width="1105" border="0" /><br><br>the code used is in the first post of this thread.<br>it seems there is a problem with <span id="result_" =""="" lang="en"><i><span ="hps="" atn"=""></span><span>stdole file.</span></i><span><br><br>any sugestion?<br><br>regards!<br></span><i><span></span><span> </span></i></span><br><br><br>]]>
   </description>
   <pubDate>Tue, 10 Jan 2012 04:03:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67371&amp;title=solvedan-exception-occurs-when-printing-a-report#67371</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]An exception occurs when printing a report : Well. It happens when you use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67368&amp;title=solvedan-exception-occurs-when-printing-a-report#67368</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6226">Willowmaster</a><br /><strong>Subject:</strong> 19333<br /><strong>Posted:</strong> 10 January 2012 at 2:39am<br /><br />Well. It happens when you use the ribbonsample. Just klik on print-&gt;print button. Second time you try to open the print backstage it crashes. At least with me. Wat do you want me to do? Strip the ribbonsample until only the print option is there? I can do that if you want me to. <DIV></DIV>Worst case scenario: I'll zip my virtual machine and send it over. :)]]>
   </description>
   <pubDate>Tue, 10 Jan 2012 02:39:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19333&amp;PID=67368&amp;title=solvedan-exception-occurs-when-printing-a-report#67368</guid>
  </item> 
 </channel>
</rss>