<?xml version="1.0" encoding="iso-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwizguide.info/rss_namespace/">
 <channel>
  <title>Crystal Reports Forum : Writing Code</title>
  <link>http://www.crystalreportsbook.com/forum</link>
  <description>This is an XML content feed of; Crystal Reports Forum : Writing Code : Last 10 Posts</description>
  <pubDate>Fri, 11 Sep 2026 07:25:00 +0000</pubDate>
  <lastBuildDate>Fri, 27 Aug 2021 05:03:11 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 8.04</generator>
  <ttl>30</ttl>
  <WebWizForums:feedURL>www.crystalreportsbook.com/forum/RSS_topic_feed.asp?FID=13</WebWizForums:feedURL>
  <item>
   <title>Writing Code : Pguri - Crystal Report ParameterField, how to get</title>
   <link>http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22950&amp;PID=75156#75156</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.crystalreportsbook.com/forum/member_profile.asp?PF=3327">lockwelle</a><br /><strong>Subject:</strong> Pguri - Crystal Report ParameterField, how to get<br /><strong>Posted:</strong> 27 Aug 2021 at 5:03am<br /><br />I would look at the SQL behind the Dataset - CompanyName. That would give you clue of where it is in the database.<br /><br />HTH]]>
   </description>
   <pubDate>Fri, 27 Aug 2021 05:03:11 +0000</pubDate>
   <guid isPermaLink="true">http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22950&amp;PID=75156#75156</guid>
  </item> 
  <item>
   <title>Writing Code : Pguri - Crystal Report ParameterField, how to get</title>
   <link>http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22950&amp;PID=75155#75155</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.crystalreportsbook.com/forum/member_profile.asp?PF=33722">death25</a><br /><strong>Subject:</strong> Pguri - Crystal Report ParameterField, how to get<br /><strong>Posted:</strong> 27 Aug 2021 at 4:25am<br /><br />hi everyone, <br />A dynamic cascading ParameterField has following 2 Attributes:<br /><br />IsDCP = True PGURI = crobj://{A7E6ABA3-D039-45AB-94CB-CD54C4A392B3}<br /><br />The parameterfield has the value CompanyName for example<br /><br /><img src="https://docs.microsoft.com/answers/storage/attachments/115665-image.png" border="0" /><br /><br /><br />&#093;&#091;2&#093;<br />&#093;&#091;1&#093;<br /><br />In code i can get the field by<br /><br /><img src="https://docs.microsoft.com/answers/storage/attachments/115630-image.png" border="0" /><br /><br />but i have only the PGURI and now informations about the used database field..thanks for help..]]>
   </description>
   <pubDate>Fri, 27 Aug 2021 04:25:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22950&amp;PID=75155#75155</guid>
  </item> 
  <item>
   <title>Writing Code : Visual Studio 2017 Crystal reports issue</title>
   <link>http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22904&amp;PID=74980#74980</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.crystalreportsbook.com/forum/member_profile.asp?PF=3327">lockwelle</a><br /><strong>Subject:</strong> Visual Studio 2017 Crystal reports issue<br /><strong>Posted:</strong> 05 Oct 2020 at 11:47am<br /><br />First thing that comes to mind is, is the connection string for the report the same? Perhaps you need to set the connection string for the report in code.<br /><br />Of course the other thought is, does the report work in the crystal designer? That might help in troubeshooting.<br /><br />HTH]]>
   </description>
   <pubDate>Mon, 05 Oct 2020 11:47:14 +0000</pubDate>
   <guid isPermaLink="true">http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22904&amp;PID=74980#74980</guid>
  </item> 
  <item>
   <title>Writing Code : Visual Studio 2017 Crystal reports issue</title>
   <link>http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22904&amp;PID=74978#74978</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.crystalreportsbook.com/forum/member_profile.asp?PF=29917">Tvalone</a><br /><strong>Subject:</strong> Visual Studio 2017 Crystal reports issue<br /><strong>Posted:</strong> 05 Oct 2020 at 7:53am<br /><br />I have a .net app written in c#. My desktop was upgraded to a laptop (yay....) The references were copied over and VS was installed on the laptop. I installed crystal on the laptop and added the references back to get the app to build without error. However when I test the app in VS I get this error. <br /><br />The type initializer for 'CrystalDecisions.CrystalReports.Engine.CRPE' threw an exception<br /><br />I cannot for the life of me figure out what the issue is.]]>
   </description>
   <pubDate>Mon, 05 Oct 2020 07:53:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22904&amp;PID=74978#74978</guid>
  </item> 
  <item>
   <title>Writing Code : filter report to show record on form</title>
   <link>http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22892&amp;PID=74970#74970</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.crystalreportsbook.com/forum/member_profile.asp?PF=3327">lockwelle</a><br /><strong>Subject:</strong> filter report to show record on form<br /><strong>Posted:</strong> 21 Sep 2020 at 11:48am<br /><br />Depends on how the report is getting data. If it is calling a stored proc, you would need to pass the record displayed on your form to the proc and have it filter the data. If you are pushing the dataset to the report, you could use linq or a loop to filter the dataset to only have the data for the record that is displayed.<br /><br />For pushing the data, you can have the app call the stored proc, then filter out the records that are not needed and finally set the reports.DataSource to the filtered dataset (or it can be a datatable).<br /><br />HTH]]>
   </description>
   <pubDate>Mon, 21 Sep 2020 11:48:00 +0000</pubDate>
   <guid isPermaLink="true">http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22892&amp;PID=74970#74970</guid>
  </item> 
  <item>
   <title>Writing Code : filter report to show record on form</title>
   <link>http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22892&amp;PID=74952#74952</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.crystalreportsbook.com/forum/member_profile.asp?PF=33002">bigmacagain</a><br /><strong>Subject:</strong> filter report to show record on form<br /><strong>Posted:</strong> 05 Sep 2020 at 8:13am<br /><br />hello can you help a newbie please, i am using visual studio 2019 , i have a form(frm1) and this has shows 1 record from my database, i want the user to click a button and show a report filtered to the record shown on frm1, i have a button that opens the report but shows all records, how can i filter it in VB to on load just show the record on the form please?&nbsp;&nbsp;&nbsp;<img src="http://www.crystalreportsbook.com/forum/smileys/smiley5.gif" border="0" align="middle" />  <img src="http://www.crystalreportsbook.com/forum/smileys/smiley9.gif" border="0" align="middle" /> ]]>
   </description>
   <pubDate>Sat, 05 Sep 2020 08:13:46 +0000</pubDate>
   <guid isPermaLink="true">http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22892&amp;PID=74952#74952</guid>
  </item> 
  <item>
   <title>Writing Code : Crystal Report Formula to Identify export files</title>
   <link>http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22274&amp;PID=72817#72817</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.crystalreportsbook.com/forum/member_profile.asp?PF=28">hilfy</a><br /><strong>Subject:</strong> Crystal Report Formula to Identify export files<br /><strong>Posted:</strong> 05 Apr 2017 at 6:24am<br /><br />I don't understand your question.  How are you running the report to export?<br /><br />-Dell]]>
   </description>
   <pubDate>Wed, 05 Apr 2017 06:24:24 +0000</pubDate>
   <guid isPermaLink="true">http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22274&amp;PID=72817#72817</guid>
  </item> 
  <item>
   <title>Writing Code : Crystal Report Formula to Identify export files</title>
   <link>http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22274&amp;PID=72759#72759</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.crystalreportsbook.com/forum/member_profile.asp?PF=30733">podiman</a><br /><strong>Subject:</strong> Crystal Report Formula to Identify export files<br /><strong>Posted:</strong> 26 Mar 2017 at 6:57pm<br /><br />A symbol or something has to print on the crystal report layout to identify the crystal report layout which is exported one.<br /> <img src="http://www.crystalreportsbook.com/forum/smileys/smiley4.gif" border="0" align="middle" />  <img src="http://www.crystalreportsbook.com/forum/smileys/smiley4.gif" border="0" align="middle" />  <img src="http://www.crystalreportsbook.com/forum/smileys/smiley1.gif" border="0" align="middle" />  <img src="http://www.crystalreportsbook.com/forum/smileys/smiley1.gif" border="0" align="middle" /> <br />Please help me to build the logic  <img src="http://www.crystalreportsbook.com/forum/smileys/smiley4.gif" border="0" align="middle" /> ]]>
   </description>
   <pubDate>Sun, 26 Mar 2017 18:57:18 +0000</pubDate>
   <guid isPermaLink="true">http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22274&amp;PID=72759#72759</guid>
  </item> 
  <item>
   <title>Writing Code : Filter list of parameter fields being prompted</title>
   <link>http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22158&amp;PID=72287#72287</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.crystalreportsbook.com/forum/member_profile.asp?PF=10230">nix1016</a><br /><strong>Subject:</strong> Filter list of parameter fields being prompted<br /><strong>Posted:</strong> 28 Nov 2016 at 6:45pm<br /><br />With all of our reports we have a list of parameters being passed from our program and then a list that is entered by the user during runtime. With the user prompted parameters, their names all start with 'Prompt'. This is fine when we preview the reports since any parameters set using <strong>SetParameterValue(paramname,paramvalue)</strong> do not show up.<br /><br />However, when the report is directly printed or exported, then we need to call up Crystal Report Viewer to prompt the user for the User-selected prompts. Currently the code to do this is:<br /><br />crReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();<br />crReport.Load(filename);<br />crReport.Refresh();<br />crReport.SetParameterValue(parameterName, parameterValue);<br />CrystalReportViewer1 = NEW CrystalDecisions.Windows.Forms.CrystalReportViewer();<br />CRViewer1.ReportSource = crReport.<br />CRViewer1.EnableRefresh = true.<br />CRViewer1.RefreshReport().<br /><br />which works fine but it displays all parameters in the prompt, even the ones that have already been set using the SetParameterValue method.<br /><br />Is there anyway that I can hide those? As mentioned, they all start with 'Prompt'. <br />Also, I found this<br /><a href="http://search.sap.com/ui/notes?id=0001217834&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031323137383334&ssocompatible" target="_blank">article</a> which explains that I'm not meant to use the <strong>RefreshReport()</strong> method, however I cannot for the life of me find a way to bring up the prompt without using that method. I've tried CRViewer1.Refresh(), CRViewer1.Visible = TRUE, CRViewer1.Show() all to no avail.<br /><br />Any advice? Thanks!<span style="font-size:10px"><br /><br />Edited by nix1016 - 28 Nov 2016 at 6:46pm</span>]]>
   </description>
   <pubDate>Mon, 28 Nov 2016 18:45:22 +0000</pubDate>
   <guid isPermaLink="true">http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22158&amp;PID=72287#72287</guid>
  </item> 
  <item>
   <title>Writing Code : CR viewer no longer allowing background</title>
   <link>http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22155&amp;PID=72282#72282</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.crystalreportsbook.com/forum/member_profile.asp?PF=10230">nix1016</a><br /><strong>Subject:</strong> CR viewer no longer allowing background<br /><strong>Posted:</strong> 27 Nov 2016 at 11:38am<br /><br />Hi All,<br /><br />We recently upgrade our database platform which meant that we had to stop using Crystal Runtime XI and adopt CR for VS 13.0.18. There is an issue in that when we bring up the crystal reports viewer and the report is generating, we cannot no longer use our software in the background. However, once the report is generated and displayed in the CRViewer, we are able to use our software without any issues. The .Net form containing the CR report is non-modal and it seems that we can still click on buttons and menus in our software in the background whilst the report is generating but nothing happens.<br /><br />It used to be fine with CR runtime XI so if it's just a property or something I'm not setting in the new version.<br /><br />Any ideas is appreciated as it often takes minutes to generate a single report and we can't do anything now but wait.<br /><br />Thanks!]]>
   </description>
   <pubDate>Sun, 27 Nov 2016 11:38:46 +0000</pubDate>
   <guid isPermaLink="true">http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22155&amp;PID=72282#72282</guid>
  </item> 
 </channel>
</rss>