<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://vstoolsforum.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Crystal Reports</title><link>http://vstoolsforum.com/blogs/crystal_reports/default.aspx</link><description>Notes, Tips and Tricks on Developing using Crystal Reports</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'</title><link>http://vstoolsforum.com/blogs/crystal_reports/archive/2008/06/23/crystalreportviewer-is-ambiguous-in-the-namespace-crystaldecisions-web.aspx</link><pubDate>Mon, 23 Jun 2008 16:14:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1093</guid><dc:creator>Steve Gray</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://vstoolsforum.com/blogs/crystal_reports/rsscomments.aspx?PostID=1093</wfw:commentRss><comments>http://vstoolsforum.com/blogs/crystal_reports/archive/2008/06/23/crystalreportviewer-is-ambiguous-in-the-namespace-crystaldecisions-web.aspx#comments</comments><description>&lt;p&gt;Also:&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;13&amp;nbsp;&amp;#39;ReportDocument&amp;#39; is ambiguous in the namespace &amp;#39;CrystalDecisions.CrystalReports.Engine&amp;#39;.&amp;nbsp;C:\projects\Culinart\Culinart\Reports\POSCash.aspx.vb&amp;nbsp;11&amp;nbsp;18&amp;nbsp;C:\...\Culinart\&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;15&amp;nbsp;&amp;#39;DiskFileDestinationOptions&amp;#39; is ambiguous in the namespace &amp;#39;CrystalDecisions.Shared&amp;#39;.&amp;nbsp;C:\projects\Culinart\Culinart\Reports\POSCash.aspx.vb&amp;nbsp;47&amp;nbsp;26&amp;nbsp;C:\...\Culinart\&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;16&amp;nbsp;&amp;#39;ExportDestinationType&amp;#39; is ambiguous in the namespace &amp;#39;CrystalDecisions.Shared&amp;#39;.&amp;nbsp;C:\projects\Culinart\Culinart\Reports\POSCash.aspx.vb&amp;nbsp;50&amp;nbsp;57&amp;nbsp;C:\...\Culinart\&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;17&amp;nbsp;&amp;#39;ExportFormatType&amp;#39; is ambiguous in the namespace &amp;#39;CrystalDecisions.Shared&amp;#39;.&amp;nbsp;C:\projects\Culinart\Culinart\Reports\POSCash.aspx.vb&amp;nbsp;51&amp;nbsp;52&amp;nbsp;C:\...\Culinart\&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I solved this by going to Project Propertities &amp;gt; References, somehow I had references to two different versions of crystal in my project. While doing this I noticed that the references kept coming back. I searched the project and found that I had double lines iin the web config to different versions of Crystal. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://vstoolsforum.com/aggbug.aspx?PostID=1093" width="1" height="1"&gt;</description></item><item><title>Crystal in VB Deployment Projects (Visual Studio 2008)</title><link>http://vstoolsforum.com/blogs/crystal_reports/archive/2007/12/12/crystal-in-vb-deployment-projects-visual-studio-2008.aspx</link><pubDate>Wed, 12 Dec 2007 20:23:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:766</guid><dc:creator>corey</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://vstoolsforum.com/blogs/crystal_reports/rsscomments.aspx?PostID=766</wfw:commentRss><comments>http://vstoolsforum.com/blogs/crystal_reports/archive/2007/12/12/crystal-in-vb-deployment-projects-visual-studio-2008.aspx#comments</comments><description>&lt;p&gt;In Visual Studio 2008, merge modules are no longer used for crystal reports controls.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;To add the crystal reports files:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; Go to the deployment project&amp;#39;s properties page.&lt;br /&gt;2.&amp;nbsp; Click the &amp;quot;Prerequisites&amp;quot; button.&lt;br /&gt;3.&amp;nbsp; Add the &amp;quot;Crystal Reports Basic for Visual Studio 2008&amp;quot;&lt;/p&gt;
&lt;p&gt;It may also require the &amp;quot;Windows Installer 3.1&amp;quot;&lt;/p&gt;&lt;img src="http://vstoolsforum.com/aggbug.aspx?PostID=766" width="1" height="1"&gt;</description></item><item><title>Calculating the 'count' of occurances in Crystal</title><link>http://vstoolsforum.com/blogs/crystal_reports/archive/2007/11/06/calculating-the-count-of-occurances-in-crystal.aspx</link><pubDate>Tue, 06 Nov 2007 13:33:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:704</guid><dc:creator>Steve Gray</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://vstoolsforum.com/blogs/crystal_reports/rsscomments.aspx?PostID=704</wfw:commentRss><comments>http://vstoolsforum.com/blogs/crystal_reports/archive/2007/11/06/calculating-the-count-of-occurances-in-crystal.aspx#comments</comments><description>&lt;p&gt;From a recent email:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am creating a Crystal report where I want a count of invoices that have backorders.&amp;nbsp; I have tried creating a formula field that returns a 1 or 0 if the sum of quantity backordered for an order is greater than 0.&amp;nbsp; This works fine but I cannot sum this field for the report to give me a total count.&amp;nbsp; Can you think of a way to do this?&lt;/p&gt;
&lt;p&gt;Answer:&lt;/p&gt;
&lt;p&gt;The answer is to use either a ‘count’ aggregation, or a ‘running total’, depending how the report is set up. &lt;/p&gt;
&lt;p&gt;The easiest is a ‘count’, you just right click on a field and choose ‘insert summary’. Then under ‘Calculate this summary’, change ‘sum’ to ‘count’. Carefully choose the ‘summary location’ If you’re in Crystal 11, it’s much easier to check ‘add to all group levels’ and then delete the ones that you don’t need. &lt;/p&gt;
&lt;p&gt;Depending on how you have the report set up, the &amp;#39;count&amp;#39; may not work (if you are displaying invoice detail, you don&amp;#39;t want the count of all those rows). in that case, you&amp;#39;ll have to use the &amp;#39;running total&amp;#39; functionality. If you have to do that, let me know, I&amp;#39;ll walk you through it. &lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see a way to make the &amp;#39;running total&amp;#39; option work if you are using tables brought into Crystal, but if you base the Crystal report on a stored procedure, you can do it that way. You need an ORDER level field that indicates if a LINE ITEM in that order has a backorder - like this:&lt;/p&gt;
&lt;p&gt;&lt;pre style="overflow: scroll; background-color: #f2f2f2;"&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;select&lt;/span&gt; h.sopnumbe,
  h.soptype,
  l.itemnmbr,
  l.quantity,
  l.qtytbaor,
  &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;case&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;when&lt;/span&gt; bo.sopnumbe &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;is&lt;/span&gt; &lt;span style="color: Silver;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;null&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;then&lt;/span&gt; 0 &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;else&lt;/span&gt; 1 &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;end&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;as&lt;/span&gt; hasBackOrder
 &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;from&lt;/span&gt; sop10100 h &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;with&lt;/span&gt; (nolock)
  &lt;span style="color: Silver;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;join&lt;/span&gt; sop10200 l &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;with&lt;/span&gt; (nolock) &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;on&lt;/span&gt; l.sopnumbe = h.sopnumbe &lt;span style="color: Silver;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;and&lt;/span&gt; l.soptype = h.soptype
  &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;left&lt;/span&gt; &lt;span style="color: Silver;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;join&lt;/span&gt; (&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;select&lt;/span&gt; sopnumbe, soptype
    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;from&lt;/span&gt; sop10200 &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;with&lt;/span&gt; (nolock)
    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;where&lt;/span&gt; qtytbaor &amp;lt;&amp;gt; 0
    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;group&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;by&lt;/span&gt; sopnumbe, soptype
    ) &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;as&lt;/span&gt; bo &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;on&lt;/span&gt; bo.sopnumbe = h.sopnumbe &lt;span style="color: Silver;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;and&lt;/span&gt; bo.soptype = h.soptype
 &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;where&lt;/span&gt; 
  h.voidstts = 0
  &lt;span style="color: Silver;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;and&lt;/span&gt; h.soptype = 2&lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;&lt;img src="http://vstoolsforum.com/aggbug.aspx?PostID=704" width="1" height="1"&gt;</description></item></channel></rss>