Crystal Reports for Visual Studio ForumDiscuss Crystal Reports for Visual Studio: topics include the report creation, data connectivity, deployment and general reporting application development© 2009 Microsoft Corporation. All rights reserved.Fri, 27 Nov 2009 19:55:52 Z87f38845-12f6-461e-9baf-193b5eedbc1ahttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/2b0b4462-04b9-425d-ae2d-b47929bab002http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/2b0b4462-04b9-425d-ae2d-b47929bab002CharlesCHNhttp://social.msdn.microsoft.com/Profile/en-US/?user=CharlesCHNProblems about SubReportHello:<br/><br/>I have some crystal report files need to combine together. I tried two ways:<br/><br/>1. create several Details Sections, Import the files as subreport. or<br/>2. use one file as primary report, add several &quot;Report Footer&quot; to contain the others as subrepot.<br/><br/>one problem is , if subreport is a multi-pages repot, it will lost page head after first page(the page head only appear once).<br/><br/>Another problem is that if subreport has a subrepot, it will lost the child-subreport.<br/><br/>how can I solve these problems?<br/><br/><br/>Thanks for help!<br/><br/>(I am using Crystal Reports XI Release 2)<br/><br/>Fri, 27 Nov 2009 19:55:52 Z2009-11-27T19:55:52Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/b998f292-2c81-4650-88e7-1a325086c2dchttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/b998f292-2c81-4650-88e7-1a325086c2dcFarzanCoolhttp://social.msdn.microsoft.com/Profile/en-US/?user=FarzanCoolLarge file size problem and SQL Authentication problem using Crystal ReportHey all,<br/>In my project I had used crystal report which works fine but there's a problem. file size of generated rpt files are about 16MB while one of my reports is just 320Kb in size.<br/>I've tried everything even I cleaned my solution but sounds nothing, I don't have anything special on reports and I can't figure out what's the rational reason for crystal report to generate a 16MB file. When I open rpt files using notepad it contains a large amount of charachters like ےےےےےےےےےےےےےےےے in it which are obviously useless. Can anyone save me hours of headache?<br/><br/>oops, and there's one thing more.<br/>Two of my reports are using stored procedures as datasource while my database needs SQL Authentication, in my code I had used <em>globalReport.SetDatabaseLogon(&quot;Username&quot;, &quot;Password&quot;)</em> which works fine on my computer, but after publishing my project on clients using clickonce I come across a window asking me to enter username and password while openning the report , I used to get this error on my computer when I didn't use that line of code as well, but after using above code it solved, can anyone tell me how can I solve it in a way that this message doesn't appear on clients too? Obviously I'm not gonna give my database's authentication information to all the clients<hr class="sig">learn to learnWed, 18 Nov 2009 14:24:19 Z2009-11-27T17:02:28Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/9d7582c3-c1db-4b6a-a836-18a937a46777http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/9d7582c3-c1db-4b6a-a836-18a937a46777Wayne69http://social.msdn.microsoft.com/Profile/en-US/?user=Wayne69Crystal Report Problem with sub reports that contain large volumes of data – runs for days<p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">I have a Crystal Report that has a main report and 8 sub reports.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">The main report contains <strong style="">one record per employee</strong>, and each of the sub reports displays information about different data pertinent to the employee, e.g. cars, loans, medical benefits, etc. Each sub report may have zero – many records.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">The application that runs this report is supplied to a variety of customers. These customers may have MS SQL Server or Oracle databases.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">The Crystal Report is invoked via a VB.NET program. The program reads all the data required from the database into a dataset. The data is passed to the report using<span style="">  </span>ReportDocument.SetDataSource for the main report table and ReportDocument.SubReports.Item(“xxx”).SetDataSource for each of the sub reports.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">Each of the datatables is described using an XSD, for the main report data and each of the sub report’s data. The Crystal Report uses these XSDs to describe the data and create the report fields.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">The main datatable has approximately 25,000 records.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">Subreport 1 has approximately 31,000 records.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">Subreport 2 has 5,000 records.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">Subreport 3 has 2,500 records.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">Subreport 4 has 0 records.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">Subreport 5 has 30,000 records.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">Subreport 6 has 2,500 records.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">Subreport 7 has 1,000 records.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">Subreport 8 has 1 record.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">These numbers may be higher in future. The more data records that the sub reports return makes the report exponentially slower.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">When we are dealing with smaller amounts of data :- eg. Maximum of 1,000 records for each, then the report runs through in a few minutes. With the data as described above it was running for 2days and it still didn’t finish! Obviously NOT ideal for the customer.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">As a test I have tried to using OLE DB to access the database direct, so that I could use ADD SQL Command to select the data for each subreport, but I could not find any way of reducing the number of records selected. It would dramatically reduce the time of the report if I could pass a “Value” from the main report into the Command SQL in each of the subreports, so that in the WHERE clause it has EMP_ID = {passed in EMP_ID} from the main report. This EMP_ID changes for each of the 25,000 employees in the main report. It seems that you can pass in a fixed parameter and not a dynamically changing one. Don’t know too much about SQL Expressions and whether or not they may be of any use.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">Obviously I would like to keep the report as it is with regards to using ADO.NET, just with some magical workaround to speed up the report.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">I have spent days googling for possible solutions and none have yet to be suitable, obviously avoiding sub reports is a good answer, and I have avoided them in the other reports and they run very quickly, but unfortunately this report cannot be written without using them as far as I can tell.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">Any help on this would be greatly appreciated as I have no more ideas left to try.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman">Regards,</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Times New Roman"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small"><span style="font-family:Times New Roman">Wayne.</span></span></p><hr class="sig">Sharing is not just for Xmas...Fri, 27 Nov 2009 11:46:07 Z2009-11-27T15:55:32Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/f974a74f-3c7d-4b0c-8ca9-938a7113b814http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/f974a74f-3c7d-4b0c-8ca9-938a7113b814Maged Hanyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Maged%20Hanyavoid asking about username and password in RuntimeHi,<br/><br/>How can i avoid asking about the username and password in the runtime ?<br/>Is there any code that feed the Crustal report with the Username and password of the SQL Server 2000 instead of entering password everytime displaying the report<br/>Mon, 23 Nov 2009 09:47:54 Z2009-11-27T15:32:35Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/4abafc3d-d10b-4dcc-9dee-c64bc3bc7e6bhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/4abafc3d-d10b-4dcc-9dee-c64bc3bc7e6bBasheer EKhttp://social.msdn.microsoft.com/Profile/en-US/?user=Basheer%20EKhow i can hide minimize,maximize and close button in a vb .net windows form.<br/>Hi,<br/><br/><br/>how i can hide minimize,maximize and close button in vb .net 2008 windows form.<br/><br/>thanks,Fri, 27 Nov 2009 08:45:39 Z2009-11-27T17:49:46Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/8b021834-cfb1-49e0-abb2-2f85fafe3aeahttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/8b021834-cfb1-49e0-abb2-2f85fafe3aeaanatehttp://social.msdn.microsoft.com/Profile/en-US/?user=anateDetail section vertical line problem.<p>Hello,</p> <p>I have a little problem with the vertical lines  in Detail section. In detail section at the end there is horizontal line. Also I have Report Footer section which displays total number of records. I suppressed Page Footer section. <br/>I would like end all the vertical lines to the last line of the records not to extend beyond the &quot;Total&quot;(Report Footer).<br/> It works fine if everything on the same page. The problem starts when the last line of the detail is on the first page and the &quot;Total&quot; wouldn't fit on the first page. It displays &quot;Total&quot; on the second page and it draws vertical lines to the end of the page.</p> <p>Thanks for any suggestion.<br/> </p>Wed, 18 Nov 2009 13:37:44 Z2009-11-27T07:46:46Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/e7bdc8bd-874c-45da-ad7d-a8a929c7d376http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/e7bdc8bd-874c-45da-ad7d-a8a929c7d376Mike from Palmahttp://social.msdn.microsoft.com/Profile/en-US/?user=Mike%20from%20PalmaCrystal Reports Data SourceIs it possible to change the data source for an embedded report in VB.NET?. I have a situation where the same program on two sites uses two different SQL servers and it is a pain to use the report's Datasource Location every time I need to change sites, as there are over 20 reports to do. I would hope to set the datasource from within code.<br/><br/>ThanksFri, 20 Nov 2009 13:01:24 Z2009-11-27T07:37:07Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/ce97c8c7-e6bd-4804-b229-65aca7e25f15http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/ce97c8c7-e6bd-4804-b229-65aca7e25f15Suresh.Giduguhttp://social.msdn.microsoft.com/Profile/en-US/?user=Suresh.GiduguRedistributable MergeModule for .net 2005 with xml database drivers.<p>Hi MicroSoft,</p> <p>my requirement is: Redistributable MergeModule for .net 2005 with xml database drivers to deploying the crystal report on client.</p> <p>i have a mergemodule which is updated on 29th nov 2006. But it do not have xml database driver.</p> <p>how to deploy crystalreports application.</p> <p>we developed one application using C#.Net with XML database.its install to client system thats doesn't work.it displays some error.</p> <p>that is &quot;FAILED TO LOAD DATABASE INFORMARTION&quot;</p> <p>error in file c:document\local\temp files and so on.</p> <p>if you have find any solution for it. please help me..</p> <p> Thanking you..</p> <p>Suresh</p> <p> </p>Wed, 10 Jan 2007 07:59:05 Z2009-11-27T06:34:51Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/5af4a04d-a275-46b8-beff-7e3b16dbc0d5http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/5af4a04d-a275-46b8-beff-7e3b16dbc0d5Prabihttp://social.msdn.microsoft.com/Profile/en-US/?user=PrabiLocalize data from crystal reportsHi All, <div><br/></div> <div>I am working on globalization/localization part on my project. I found how can we use resource files provide local support for windows forms. Now I am searching solution for how can we provide localization support in crystal reports. Crystal report provide localization support for their standard menus and controls which are there on the crystal report viewer control. But I am confused about how to localize data that we are displaying at run time?</div> <div><br/></div> <div>can somebody help me on this? I am stucked up because of this.</div> <div><br/></div><hr class="sig">I can be still better. Tue, 24 Nov 2009 07:25:13 Z2009-11-27T05:54:36Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/a579611d-7df5-4bb6-ad5c-f4d6a58039abhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/a579611d-7df5-4bb6-ad5c-f4d6a58039abyottashttp://social.msdn.microsoft.com/Profile/en-US/?user=yottastrouble to ses a parameter manually with crystalReport and VB.NET 2005i am having a trouble with a tutorial that i found on msdn, its tut about how to set a parameter manually for a crystal report <a href="http://msdn.microsoft.com/en-us/library/ms227722.aspx">http://msdn.microsoft.com/en-us/library/ms227722.aspx</a>. <div>my problem is that i would like to pass an integer parameter and just one parameter?</div> <div> the code in the fellowing </div> <div><br/></div> <div><br/></div> <div></div> <div style="color:Black;background-color:White"> <pre><span style="color:Blue">Private</span> <span style="color:Blue">Const</span> PARAMETER_FIELD_NAME <span style="color:Blue">As</span> <span style="color:Blue">String</span> = <span style="color:#A31515">&quot;numb&quot;</span>     <span style="color:Blue">Private</span> impbonrecepReport <span style="color:Blue">As</span> ReportDocument     <span style="color:Blue">Private</span> <span style="color:Blue">Sub</span> ConfigureCrystalReports()         <span style="color:Blue">Dim</span> myArrayList <span style="color:Blue">As</span> ArrayList = <span style="color:Blue">New</span> ArrayList()         myArrayList.Add(999)               <span style="color:Blue">Dim</span> numbrecep <span style="color:Blue">As</span> <span style="color:Blue">Integer</span>         numbrecep = 999         <span style="color:Green">SetCurrentValuesForParameterField(impbonrecepReport, myArrayList)</span>                  impbonrecepReport = <span style="color:Blue">New</span> ReportDocument()         <span style="color:Blue">Dim</span> reportPath <span style="color:Blue">As</span> <span style="color:Blue">String</span> = Application.StartupPath &amp; <span style="color:#A31515">&quot;\&quot;</span> &amp; <span style="color:#A31515">&quot;ImpBonReception.rpt&quot;</span>         impbonrecepReport.Load(reportPath)         CrystalReportViewer1.ReportSource = impbonrecepReport     <span style="color:Blue">End</span> <span style="color:Blue">Sub</span> <span style="color:Blue">Private</span> <span style="color:Blue">Sub</span> SetCurrentValuesForParameterField(<span style="color:Blue">ByVal</span> myReportDocument <span style="color:Blue">As</span> ReportDocument, <span style="color:Blue">ByVal</span> myArrayList <span style="color:Blue">As</span> ArrayList)         <span style="color:Blue">Dim</span> currentParameterValues <span style="color:Blue">As</span> ParameterValues = <span style="color:Blue">New</span> ParameterValues()         <span style="color:Blue">For</span> <span style="color:Blue">Each</span> submittedValue <span style="color:Blue">As</span> <span style="color:Blue">Object</span> <span style="color:Blue">In</span> myArrayList             <span style="color:Blue">Dim</span> myParameterDiscreteValue <span style="color:Blue">As</span> ParameterDiscreteValue = <span style="color:Blue">New</span> ParameterDiscreteValue()             myParameterDiscreteValue.Value = myArrayList.ToString()             currentParameterValues.Add(myParameterDiscreteValue)         <span style="color:Blue">Next</span>         <span style="color:Blue">Dim</span> myParameterFieldDefinitions <span style="color:Blue">As</span> ParameterFieldDefinitions = myReportDocument.DataDefinition.ParameterFields         <span style="color:Blue">Dim</span> myParameterFieldDefinition <span style="color:Blue">As</span> ParameterFieldDefinition = myParameterFieldDefinitions(PARAMETER_FIELD_NAME)         myParameterFieldDefinition.ApplyCurrentValues(currentParameterValues)     <span style="color:Blue">End</span> <span style="color:Blue">Sub</span> </pre> </div> <br/> <div><br/></div> <div><br/></div> <div><br/></div> <div><br/></div> <div><br/></div> <div><br/></div> <div><br/></div> <div>and i got this error message</div> <div> <div style="color:Black;background-color:White"> <pre>An unhandled exception of type <span style="color:Green">'System.NullReferenceException' occurred in GestionStock.exe</span> Additional information: La référence d<span style="color:Green">'objet n'est pas définie à une instance d'un objet.</span> </pre> </div> can you help me to resolve this problem ?</div> <div><br/></div>Fri, 20 Nov 2009 22:43:36 Z2009-11-27T02:52:12Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/2db01119-09c7-4294-ade1-18d57c6ddb5ehttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/2db01119-09c7-4294-ade1-18d57c6ddb5eadumoulinhttp://social.msdn.microsoft.com/Profile/en-US/?user=adumoulinHow can I redefine dynamic parameters list of values when report datasource has been changed?Hi. I use multiple reports in a single C# project with Crystal Report 2008 in Visual Studio 2008 (CrystalDecisions.ReportSource v12.0.2000.0). In order to reduce developpement and to keep reports fully exportable under the Crystal Report &quot;rpt&quot; format, I try to simply change reports data source while keeping dynamic parameters. Changing the reports data source (either the &quot;DataSourceConnections&quot; or &quot;Database.Tables&quot; collections within the &quot;ReportDocument&quot; object model) seems to works fine but if I do so, i loose the parameters lists of values. Furthermore, I seem to have problems with the selection formula when defining manually the parameters values (using the &quot;ParameterFields&quot; collection in the &quot;ReportDocument&quot; object model).<br/><br/>What is the correct way to proceed in order to be able to redefine report data source while keeping the usual dynamic parameters defined in Crystal Report?Thu, 26 Nov 2009 16:06:11 Z2009-11-26T23:42:01Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/15756aec-faef-4c24-af6a-136ce771bd31http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/15756aec-faef-4c24-af6a-136ce771bd31DanFSDhttp://social.msdn.microsoft.com/Profile/en-US/?user=DanFSDHelp adding a picure to Crystal Report at run timeI need to have a picture on my Crystal Report and have that picture selected at run time based on user input and calculations. I currently have my program determining the correct jpg file name, out of 114 jpg's that I have loaded into resources, and assigning that file name to a variable (gsSBdetail). I can display that correct image in a PictureBox on a windows form with the follwing code:<br/><br/>PictureBox1.Image = DirectCast (My.Resources.ResourceManager.GetObject(gsSBdetail),Image)<br/><br/>   Now I need to have that image appear in a box that I have drawn on a Crystal Report named &quot;Calc Sheet.rpt&quot;.<br/>I currently have a CR Viewer named &quot;CrystalreportViewer1&quot; on a VB form named &quot;OutputSheet.vb&quot;. What code can I write for the OutputSheet.vb form to get the picture into the Crystal Report?<br/>Thank you,<br/>DanWed, 04 Nov 2009 23:36:59 Z2009-11-26T17:28:00Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/b14e0639-583f-4c1f-88fa-870f3528f90ehttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/b14e0639-583f-4c1f-88fa-870f3528f90eMatt Evanshttp://social.msdn.microsoft.com/Profile/en-US/?user=Matt%20EvansCrystal Reports hangs under a Windows Service ThreadHi,<p> </p>We are currently developing a reporting scheduler service that runs as a windows service. All running great and fine right up until we deploy the solution as a service. Basically, when the code gets to the report generation Crystal reports hangs the thread. When this application is run as a normal windows process, the reports get generated fine. Looking through the crystal code in reflector it would appear that as soon as the report steps in to the .Load method, it hangs (probably when it gets to the COM stuff). I have designated the entry point of the service app with the STAThread attribute and have ensured that the spawned thread that does the processing is also set to STA. I have tried running the service under admin credentials, local system with interact with desktop permissions with no success. Extensive googling seems to point to a COM issue and STA threads, but I have set all threads as STA where possible. The service itself starts an 'application thread' which then loads an assembly which creates a report in a seperate thread. As I mentioned earlier, If I compile the application as a windows app and then run it, it seems to work. It is only when it runs as a service, does it hang on the report .Load or .SetDataSource (which in turn loads the report). The report tmp file is being created but that seems to be as far as it gets. Is there something I have to do with the ServiceBase object to mark it as STA for example? Perhaps it is an issue running reports under the Service Control Manager thread?<br><p>The only workaround I can think of at the moment, would be stop spawn some kind of non service process to generate the report (which would run under an STA thread and therefore not hang!).<br></p><p>Any suggestions and help would be MUCH appreciated!</p><p>Many Thanks,<br></p><p>Matt.<br></p><p> </p><p> </p><p> </p>Mon, 26 Jan 2009 09:58:56 Z2009-11-26T16:23:33Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/e16a1630-ad0c-4fda-8351-16e0807072ebhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/e16a1630-ad0c-4fda-8351-16e0807072ebgoozbeehttp://social.msdn.microsoft.com/Profile/en-US/?user=goozbeeCrystal report: resizing papersize<span class="spnMessageText" id="msg"><font size="2">Hello!<br /><br />I am having a problem resizing the papersize of the report with my desired dimensions which is 13"x17" or any other dimensions for that matter. <br /><br />Need your expertise guys .. <br /><br />Thanks!!</font><br /><br /></span>Fri, 01 Jul 2005 02:09:38 Z2009-11-26T12:13:53Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/5046377d-118e-45a8-b451-e7a2b3a39c50http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/5046377d-118e-45a8-b451-e7a2b3a39c50singh saurabhhttp://social.msdn.microsoft.com/Profile/en-US/?user=singh%20saurabhgenerating report in Crystal Report <div class=kl dir=ltr> I have to show 35 fields in Crystal Report how can i create that at design time</div> Please help<br/>Thu, 26 Nov 2009 09:09:21 Z2009-11-26T09:09:21Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/0fc7b178-8a90-40be-861d-a7a8f4a3c6bahttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/0fc7b178-8a90-40be-861d-a7a8f4a3c6baMaged Hanyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Maged%20HanyLoad Report From Vb 2008Hi<br/>I have designed a report with VB2008 by using Crystal report <br/>how can i display the report in the run Time <br/>and alse i have noticed that the basic option of crystal is not found as Alignment , colors adding datafield ...etc <br/>where can i find these options?<br/><br/>Thank you in advance.Sun, 22 Nov 2009 13:40:36 Z2009-11-27T07:43:31Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/2675079d-2bd0-482f-a45c-76552c8f019ahttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/2675079d-2bd0-482f-a45c-76552c8f019aItsShilpaphttp://social.msdn.microsoft.com/Profile/en-US/?user=ItsShilpapNeed Help on graphs display in crystal reports<div> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt; tab-stops: 3.0in"><font face="Times New Roman" size="3">Application is using crystal reports 8.5 version in ASP to display bar charts. It displays the bar charts fine in windows NT <span style="mso-spacerun: yes">&nbsp;</span>o.s.</font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">The problem is when the application is moved from windows NT to XP machines, the bar charts are not displayed. <span style="mso-spacerun: yes">&nbsp;</span><?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:City w:st="on"><st1:place w:st="on">Crystal</st1:place></st1:City> reports is not installed in new machine and dlls<span style="mso-spacerun: yes">&nbsp; </span>registered are</font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">crxf_pdf.dll<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">crxf_rtf.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">Crxlat32.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2dapp.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2ddisk.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2dmapi.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2dnotes.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2dpost.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2dvim.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2fcr.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2fdif.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2fhtml.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2fodbc.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2frdef.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2frec.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2frtf.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2fsepv.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2ftext.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2fwks.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2fwordw.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2fxls.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">u2fxml.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">sscdlg.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">sscrc.dll<o:p></o:p></font></font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">sscsdk80.dll</font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="mso-spacerun: yes"><font face="Times New Roman" size="3"></font></span>&nbsp;</p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">Please reply.</font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="mso-spacerun: yes"><font face="Times New Roman" size="3"></font></span>&nbsp;</p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">Regards</font></p> <p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">Shilpa</font></p></div> <div></div>Tue, 06 Dec 2005 06:08:01 Z2009-11-26T04:10:50Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/77450048-2413-46ef-a199-9d4df2a0a762http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/77450048-2413-46ef-a199-9d4df2a0a762Saigon_1http://social.msdn.microsoft.com/Profile/en-US/?user=Saigon_1PDF Export errorHi!<br/> <br/> I have made several reports with Crystal reports. On one server they are working fine in excel and pdf format but on another server pdf export fails. The problem server seem to have the same fonts installed as the server the pdf export works on.<br/> <br/> I get the following error:<br/> <br/> CrystalDecisions.CrystalReports.Engine.InternalException: <br/> Selected exporter does not support one of the features used in this report.<br/> C:\WINDOWS\TEMP\StatisticsReport {4857FEFF-822C-41AA-A862-10BDF0C989A3}.rpt ---&gt; System.Runtime.InteropServices.COMException (0x8000030E): <br/> Selected exporter does not support one of the features used in this report.<br/> C:\WINDOWS\TEMP\StatisticsReport {4857FEFF-822C-41AA-A862-10BDF0C989A3}.rpt<br/>    at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)<br/>    at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)<br/>    --- End of inner exception stack trace ---<br/>    at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)<br/>    at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)<br/>    at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)<br/>    at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)<br/>    at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)<br/> <br/> I have no clue where to start searching for the problem. The thing is I just create a c# .cs file to get data form a database and another programming (Banqsoft Review) is using the dataset my .cs file generates and the crystal .rpt file I have made.<br/> <br/> Any suggestions for debugging is appreciated!Wed, 25 Nov 2009 12:49:28 Z2009-11-25T12:49:31Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/39585ac2-b7a6-4f2d-aa43-0019201fe2c1http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/39585ac2-b7a6-4f2d-aa43-0019201fe2c1wizgodhttp://social.msdn.microsoft.com/Profile/en-US/?user=wizgodHow can I apply CSS to the parameters input form in VS 2008 with the Crystal Reports Viewer?<p>I have a VS 2008 web app and am displaying a report in a Crystal Reports Viewer control.<br/><br/>I have parameters defined that the user can enter to filter the report. The input form for the parameters is automatically generated before the report is displayed in the control but it looks pretty plain and I would to change some of the text (i.e. the title &quot;Parameter Field(s)&quot; and the &quot;Parameters&quot; text for comboboxes when multiple values are allowed.)<br/><br/>Is there any way to do this?<br/><br/>Thanks</p>Tue, 24 Nov 2009 15:29:20 Z2009-11-24T15:29:22Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/4553dd39-e112-4094-b699-73bc0d10890dhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/4553dd39-e112-4094-b699-73bc0d10890dRastogihttp://social.msdn.microsoft.com/Profile/en-US/?user=RastogiSystem.Runtime.InteropServices.COMException (0x800003E5) in Crystal Report (CR 11 and VS2003)<p>hi forum </p> <p>i am getting the following Exception</p> <p>System.Exception: Load report failed. ---&gt; System.Runtime.InteropServices<wbr>.COMException (0x800003E5): Failed to open report.<br>   at CrystalDecisions.ReportAppServe<wbr>r.ClientDoc.ReportClientDocumen<wbr>tClass.Open(Object&amp; DocumentPath, Int32 Options) <br>   at CrystalDecisions.ReportAppServe<wbr>r.ReportClientDocumentWrapper<wbr>.Open(Object&amp; DocumentPath, Int32 Options)<br>   at CrystalDecisions.ReportAppServe<wbr>r.ReportClientDocumentWrapper<wbr>.EnsureDocumentIsOpened()<br>   --- End of inner exception stack trace --- <br>   at CrystalDecisions.ReportAppServe<wbr>r.ReportClientDocumentWrapper<wbr>.EnsureDocumentIsOpened()<br>   at CrystalDecisions.CrystalReports<wbr>.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) <br>   at CrystalDecisions.CrystalReports<wbr>.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob)<br>   at CrystalDecisions.CrystalReports<wbr>.Engine.ReportDocument.s()<br>   at CrystalDecisions.CrystalReports<wbr>.Engine.ReportDocument.get<wbr>_DataDefinition ()<br>   at CrystalDecisions.CrystalReports<wbr>.Engine.ReportDocument.SetParam<wbr>eterValue(String name, Object val)<br>   at NetCRM.UI.REPORT.TempCustomerLe<wbr>adRequest.btnShow_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\Request.aspx.cs:line 181 <br clear=all></p> <p>why did this came and tell me the solution this exception.</p> <p>my id is</p> <p><a title="mailto:rastogi.mahesh@hotmail.com" href="mailto:rastogi.mahesh@hotmail.com">rastogi.mahesh@hotmail.com</a></p>Tue, 25 Jul 2006 10:35:14 Z2009-11-23T21:05:25Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/6c6e178f-95a0-462a-97db-96a1c84eaad0http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/6c6e178f-95a0-462a-97db-96a1c84eaad0Basheer EKhttp://social.msdn.microsoft.com/Profile/en-US/?user=Basheer%20EKnot showing multiline fields in crystal reports.Hi,<br/><br/>I have a address field in my emp_detail table. this field varchar2(100).  i am inserting data to this field using multiline textbox in vb .net.<br/>it is saving ok.  but when i make reports through crystal report the data which is in first row only showing. any data after enter key not showing.<br/>if i put space instead of enter key it will show.<br/><br/>thanks,Thu, 19 Nov 2009 11:54:54 Z2009-11-27T08:36:13Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/7e647194-92dd-47ba-8bd6-8b0347072331http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/7e647194-92dd-47ba-8bd6-8b0347072331uyathandwahttp://social.msdn.microsoft.com/Profile/en-US/?user=uyathandwaCant get Crystal report to show data from my projects dataset in .net<p>For some reasons I'm getting no data populating in my crystal report. I have set the datasourse of my crystal report to the dataset. I filled my dataset with data straight from the database. My dataset is not empty, I always check it first before populating data to the my report. <span style="font-size:small;color:#505050;font-family:Times New Roman">I built my crystal report off the wzard and I did add  crystal report viewer. Please help. </span></p>Thu, 19 Nov 2009 12:06:29 Z2009-11-26T02:27:10Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/301d7aec-cf15-4b09-82f3-93cb368ea1e7http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/301d7aec-cf15-4b09-82f3-93cb368ea1e7xsterxhttp://social.msdn.microsoft.com/Profile/en-US/?user=xsterxDeploy Crystal Report dlls only using ClickOnce without using prerequisite .msiHi, I believe the conventional way to deploy Crystal Report with a .NET program is to set it as a prerequisite in the publish settings and then a .msi will be packaged with the ClickOnce files on the web/network/CD/wtv. When the user runs setup.exe, it will check whether Crystal Report is on the client computer. If not, it runs the Crystal Report .msi. But that will always require admin rights. My question is, is it possible to package Crystal Report's dlls along with other application's output assemblies so that no explicit install is required? My application makes use of many many components and including a dll with the install is sufficient for most of them. Could I do the same with Crystal Report?Sun, 08 Nov 2009 06:11:22 Z2009-11-23T04:09:34Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/094b19f7-e8e4-43f9-b267-aad6669245ebhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/094b19f7-e8e4-43f9-b267-aad6669245ebmpswaimhttp://social.msdn.microsoft.com/Profile/en-US/?user=mpswaimClickOnce Deployment when not administrator&nbsp; I have a WinForms&nbsp;application that I'm deploying using ClickOnce deployment. None of my users are administrators on their boxes. If I add a CrystalReportViewer to my app and publish it, will it be able to install the necessary CR pieces?Tue, 08 Nov 2005 20:08:51 Z2009-11-23T03:12:23Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/a4b0aaf4-3dca-4d94-b035-decd46dc28fehttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/a4b0aaf4-3dca-4d94-b035-decd46dc28fegreentree413http://social.msdn.microsoft.com/Profile/en-US/?user=greentree413Crystal report - Export to excelHello all,<br/> <br/> I have some problem with my report. In  my report have many group, and I want export to excel group by group (1 group to 1 file .xls, or all group in 1 file .xls, but 1 group to 1 worksheet). Can You give me solution, or code (C#)?<br/> Thanks for attention.Mon, 23 Nov 2009 02:24:18 Z2009-11-23T02:24:19Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/24bd3f52-8b22-47ee-90eb-2504d49a4625http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/24bd3f52-8b22-47ee-90eb-2504d49a4625Daniel Smithhttp://social.msdn.microsoft.com/Profile/en-US/?user=Daniel%20SmithCrystal Reports dropped in Visual Studio 2010???I've been playing with the Visual Studio 2010 CTP virtual machine, and just noticed something slightly worrying - Crystal reports seems to be missing!<br><br>Has support been dropped, or will it be an optional feature or something?<br><br>Thanks,<br>DanWed, 29 Oct 2008 11:32:46 Z2009-11-22T12:33:16Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/c3ca8c5e-eb3d-44d2-91a4-aa9cee31726dhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/c3ca8c5e-eb3d-44d2-91a4-aa9cee31726dphinphinhttp://social.msdn.microsoft.com/Profile/en-US/?user=phinphinSlow crystal report on its first appearance Hi to all,<br/>    I made a crystal report from sql query for its datasource but on its first appearance it will take 8-10. however if a repeat to click the button it will take only 1 second. I use a  Command for the database fields  with OLE db sql server express 2005 database, i am using vb2008  here is my code.<br/><br/><span style="font-size:x-small"><font size=2> <p> </p> </font></span> <p><span style="font-size:x-small;color:#0000ff">Private</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">Sub</span><span style="font-size:x-small"> CmdPrint_Click(</span><span style="font-size:x-small;color:#0000ff">ByVal</span><span style="font-size:x-small"> sender </span><span style="font-size:x-small;color:#0000ff">As</span><span style="font-size:x-small"> System.Object, </span><span style="font-size:x-small;color:#0000ff">ByVal</span><span style="font-size:x-small"> e </span><span style="font-size:x-small;color:#0000ff">As</span><span style="font-size:x-small"> System.EventArgs) </span><span style="font-size:x-small;color:#0000ff">Handles</span><span style="font-size:x-small"> CmdPrint.Click<br/></span><span style="font-size:x-small;color:#0000ff">dim</span><span style="font-size:x-small"> txtClimit </span><span style="font-size:x-small;color:#0000ff">As</span><span style="font-size:x-small"> TextObject<br/></span><span style="font-size:x-small;color:#0000ff">Dim</span><span style="font-size:x-small"> objRpt </span><span style="font-size:x-small;color:#0000ff">As</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">New</span><span style="font-size:x-small"> RepVerify<br/>objRpt.SetDataSource(ds.Tables(</span><span style="font-size:x-small;color:#a31515">&quot;CustomerFile&quot;</span><span style="font-size:x-small">))<br/>txtClimit = </span><span style="font-size:x-small;color:#0000ff">CType</span><span style="font-size:x-small">(objRpt.ReportDefinition.ReportObjects(</span><span style="font-size:x-small;color:#a31515">&quot;Text7&quot;</span><span style="font-size:x-small">), TextObject)<br/>txtClimit.Text = Trim(</span><span style="font-size:x-small;color:#0000ff">Me</span><span style="font-size:x-small">.txtClimit.Text)<br/></span><span style="font-size:x-small;color:#0000ff">With</span><span style="font-size:x-small"> FrmReport<br/>.CrystalReportViewer1.ReportSource = objRpt<br/>.CrystalReportViewer1.Refresh()<br/>.ShowDialog()<br/></span><span style="font-size:x-small;color:#0000ff">End</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">With<br/></span><span style="font-size:x-small;color:#0000ff">End</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">Sub<br/><br/><br/>above my code is a ds(dataset) which open in the txtMcNum_Keydown<br/><span style="font-size:x-small"><font size=2> <p> </p> </font></span> <p><span style="font-size:x-small;color:#0000ff">Private</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">Sub</span><span style="font-size:x-small"> txtMcNum_KeyDown(</span><span style="font-size:x-small;color:#0000ff">ByVal</span><span style="font-size:x-small"> sender </span><span style="font-size:x-small;color:#0000ff">As</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">Object</span><span style="font-size:x-small">, </span><span style="font-size:x-small;color:#0000ff">ByVal</span><span style="font-size:x-small"> e </span><span style="font-size:x-small;color:#0000ff">As</span><span style="font-size:x-small"> System.Windows.Forms.KeyEventArgs) </span><span style="font-size:x-small;color:#0000ff">Handles</span><span style="font-size:x-small"> txtMcNum.KeyDown<font size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff">If</span><span style="font-size:x-small"> e.KeyCode = 13 </span><span style="font-size:x-small;color:#0000ff">Then</span></p> <span style="font-size:x-small"><font size=2> <p>Ds =</p> </font></span> <p><span style="font-size:x-small;color:#0000ff">New</span><span style="font-size:x-small"> DataSet<font size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff">Dim</span><span style="font-size:x-small"> StrCust </span><span style="font-size:x-small;color:#0000ff">As</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">String</span><span style="font-size:x-small"> = </span><span style="font-size:x-small;color:#a31515">&quot;Select Cf.IDNo, Cf.MCNum, Cf.CoID, Cf.DateApproved, &quot;</span><span style="font-size:x-small"> _<font size=2> <p>&amp;</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515">&quot; Cf.Name, Cf.Address, Cf.PhoneNum, Cf.CLimit, Cf.CCode, &quot;</span><span style="font-size:x-small"> _<font size=2> <p>&amp;</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515">&quot; Cf.TCode, Cf.CType, Cf.Flag, Cf.Picture, Cf.Active, &quot;</span><span style="font-size:x-small"> _<font size=2> <p>&amp;</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515">&quot; Cf.TagByMSS, Cf.TagByBADS, Cf.Printed, Cf.AmountDue, Cf.Paid, comf.Cname &quot;</span><span style="font-size:x-small"> _<font size=2> <p>&amp;</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515">&quot; from CustomerFile as Cf Left join CompanyFile As comf ON cf.CCode = comf.CCode where McNum = '&quot;</span><span style="font-size:x-small"> &amp; Trim(txtMcNum.Text) &amp; </span><span style="font-size:x-small;color:#a31515">&quot;';&quot;</span><span style="font-size:x-small"> _<font size=2> <p>&amp;</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515">&quot; Select MCNum,[PO Number], AmtForPayment, Amount, DatePurchased from TransHistBADS where McNum = '&quot;</span><span style="font-size:x-small"> &amp; Trim(txtMcNum.Text) &amp; </span><span style="font-size:x-small;color:#a31515">&quot;'Order by DatePurchased desc ; &quot;</span><span style="font-size:x-small"> _<font size=2> <p>&amp;</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515">&quot; Select MCNum, [PO Number], AmtForPayment, Amount, DatePurchased from TransactionHist where McNum = '&quot;</span><span style="font-size:x-small"> &amp; Trim(txtMcNum.Text) &amp; </span><span style="font-size:x-small;color:#a31515">&quot;'; &quot;</span><span style="font-size:x-small"> _<font size=2> <p>&amp;</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515">&quot; Select MCNum, Department, DatePurchased, Amount, [PO Number], ORNumber from [TransactionFile-MSS] where McNum = '&quot;</span><span style="font-size:x-small"> &amp; Trim(txtMcNum.Text) &amp; </span><span style="font-size:x-small;color:#a31515">&quot;'&quot;</span></p> <span style="font-size:x-small"><font size=2> <p>Da =</p> </font></span> <p><span style="font-size:x-small;color:#0000ff">New</span><span style="font-size:x-small"> SqlDataAdapter(StrCust, connection_AP) <p>Da.Fill(Ds)</p> <font size=2> <p>Ds.Tables(0).TableName =</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515">&quot;CustomerFile&quot;<br/></span></p> <span style="font-size:x-small"><font size=2> <p>Ds.Tables(1).TableName =</p> </font></span> <p><span style="font-size:x-small;color:#a31515">&quot;TransHistBADS&quot;</span></p> <span style="font-size:x-small"><font size=2> <p>Ds.Tables(2).TableName =</p> </font></span> <p><span style="font-size:x-small;color:#a31515">&quot;TransactionHist&quot;</span></p> <span style="font-size:x-small"><font size=2> <p>Ds.Tables(3).TableName =</p> </font></span> <p><span style="font-size:x-small;color:#a31515">&quot;TransactionFile-MSS&quot;<font size=2 color="#a31515"> <p> </p> </font></span></p> <p>and here is my connection string for the database<br/><span style="font-size:x-small;color:#0000ff"><font size=2 color="#0000ff"> <p>Imports</p> </font></span></p> <p><span style="font-size:x-small"><span style="color:#000000"> System.Data.SqlClient</span></span></p> <span style="font-size:x-small;color:#0000ff"><font size=2 color="#0000ff"> <p>Module</p> </font></span> <p><span style="font-size:x-small"><span style="color:#000000"> ModDB</span><font size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff">Public</span><span style="font-size:x-small"> connection_AP </span><span style="font-size:x-small;color:#0000ff">As</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">New</span><span style="font-size:x-small"> SqlConnection()<font size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff">Public</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">Sub</span><span style="font-size:x-small"> OpenSql_AP()<font size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff">Dim</span><span style="font-size:x-small"> APConStr </span><span style="font-size:x-small;color:#0000ff">As</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">String</span><span style="font-size:x-small"> = </span><span style="font-size:x-small;color:#a31515">&quot;Data Source=192.168.10.199</span><span style="font-size:x-small;color:#a31515">\SQLEXPRESS; &quot;</span><span style="font-size:x-small"> _<font size=2> <p>&amp;</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515">&quot; Initial Catalog=AR; &quot;</span><span style="font-size:x-small"> _<font size=2> <p>&amp;</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515">&quot; User ID=sa; &quot;</span><span style="font-size:x-small"> _<font size=2> <p>&amp;</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515">&quot; Password=ar_quebec; &quot;</span><span style="font-size:x-small"> _<font size=2> <p>&amp;</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515">&quot; Trusted_Connection=true; &quot;</span><span style="font-size:x-small"> _<font size=2> <p>&amp;</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515">&quot; MultipleActiveResultSets=True; &quot;</span><span style="font-size:x-small"> _<font size=2> <p>&amp;</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515">&quot; Integrated Security=SSPI;&quot;</span></p> <span style="font-size:x-small"> <p>connection_AP.ConnectionString = APConStr</p> <font size=2> <p> </p> </font></span> <p><span style="font-size:x-small;color:#0000ff">Try</span></p> <span style="font-size:x-small"> <p>connection_AP.Open()</p> <font size=2> <p> </p> </font></span> <p><span style="font-size:x-small;color:#0000ff">Catch</span><span style="font-size:x-small"> ex </span><span style="font-size:x-small;color:#0000ff">As</span><span style="font-size:x-small"> Exception <p>MsgBox(ex.Message)</p> <font size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff">End</span></p> <span style="font-size:x-small"><font size=2> <p> </p> </font></span> <p><span style="font-size:x-small;color:#0000ff">End</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">Try</span></p> <span style="font-size:x-small"><font size=2> <p> </p> </font></span> <p><span style="font-size:x-small;color:#0000ff">End</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">Sub<font size=2 color="#0000ff"> <p>End</p> </font></span></p> <p><span style="font-size:x-small;color:#000000"> </span><span style="font-size:x-small;color:#0000ff">Module<font size=2 color="#0000ff"> <p>hope for your help guys thank you and hope i made my explanation clear...</p> </font></span></p> <p><br/><br/><br/></p> </span></p>Sun, 22 Nov 2009 05:49:12 Z2009-11-23T03:40:13Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/6c2d25a2-a461-4e7c-a044-f1a6a3c9ef63http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/6c2d25a2-a461-4e7c-a044-f1a6a3c9ef63stevooooohttp://social.msdn.microsoft.com/Profile/en-US/?user=stevooooocrystel reports not showing any data<div>When I use crystel reports viewer in visual studio 2008; the viewer does not show my data. It brings up my colunm headers, such as employee Id, but does not show the data that goes along with it. can anybody tell me why? the data conection is made using the crystel reports wizard.</div><hr class="sig">visual studio.net novice programmerWed, 07 Oct 2009 04:04:17 Z2009-11-21T23:35:33Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/9dad1e4e-7923-4e5f-a736-dc03d634cb25http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/9dad1e4e-7923-4e5f-a736-dc03d634cb25NandiniPhttp://social.msdn.microsoft.com/Profile/en-US/?user=NandiniPto pass textbox value to crystal reporthi! <div><br/></div> <div>i have a form called &quot;dailyreport&quot; .</div> <div><br/></div> <div>In this form i have a textbox and a button.</div> <div><br/></div> <div>Textbox will get a date value from user and then user have to click the button to view crystal report.</div> <div>My crystal report shows patient's name and id who visited the clinic on that particular date ( textbox value).</div> <div> </div> <div>now i have the requiremtent in which i have to show this date(ie, textbox value) on the crystal report..</div> <div><br/></div> <div>So, how can i pass this textbox.text value to my crystal report???</div> <div>pls provide some solution!!</div> <div><br/></div><hr class="sig">nandiniFri, 18 Sep 2009 08:06:12 Z2009-11-21T08:07:41Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/d974ad17-6b1f-4505-9f46-4d5debfe534bhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/d974ad17-6b1f-4505-9f46-4d5debfe534bDonslshttp://social.msdn.microsoft.com/Profile/en-US/?user=DonslsError when running windows form with Crystal report viewerI have created a windows form that has a crystalreport viewer control. I then used the click once to deploy the application and in the prerequistes I selected .NET Framework 2.0 and Crystal Reports 2008. When I ran the link that was created by VS2005 it installs the application without any problems, but when I try to run the application I get the following error.<br/>Request for the permission of type 'System.Security.Permissions.UIPermission, mscorlib, version=2.0.0.0, Culture=neutral, PublickKeyTokan=6=b77a5ac561934e089' failed.<br/><br/>Could any one help me inresolving this error. Any help is greatly appreciated.<br/><hr class="sig">donslsFri, 20 Nov 2009 18:31:30 Z2009-11-26T13:40:03Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/5da6be3d-fe9e-4bb2-97c9-c8fbeffeb2dchttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/5da6be3d-fe9e-4bb2-97c9-c8fbeffeb2dcUtkarshhttp://social.msdn.microsoft.com/Profile/en-US/?user=UtkarshDifferent Stored Proc but Parameter name is Same.Hello Friends<br /><br />I have a problem in Crystal Reports.<br />I am developing a report which contents 4 different Stored Proc and 1 table.<br />I used 5 different connections for that.<br />In all 4&nbsp; SP I have 4 common parameter fields with same name like,&nbsp; <em>@BlockID, @LanguageID, @Param, @LabelID</em>.<br />And all SPs&nbsp;are having different values for each parameter.<br />So, when I run the report, it asks for only once for all 4 SP. And, so that, my report doesn't provide accurate result.<br /><br />So, Please help me to solve this problem.<br /><br />Thanks in advance.<br /><br /><br /><br /><strong>Thank You<br /><br />Best Regards<br />Utkarsh Gajjar.</strong><br /><hr class="sig">Utkarsh GajjarThu, 08 Oct 2009 21:39:43 Z2009-11-20T15:43:30Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fd155266-9336-4502-aefc-86ad5305ad4ehttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fd155266-9336-4502-aefc-86ad5305ad4eUtkarshhttp://social.msdn.microsoft.com/Profile/en-US/?user=Utkarshuse main report's summary fields into Sub reportsHello friends,<br/><br/>I have a problem.<br/>I have a report, which contents 2 sub reports.<br/>In main report, there is a group and group is having 4 summary fields.<br/>Now, I don't know, how can I use that 4 summary fields into sub reports.<br/>Can anyone please help me to solve this problem.!<br/><br/>Thanks in advance.!<br/><br/><br/><br/><strong>Thank you.<br/><br/>Best Regards<br/>Utkarsh Gajjar</strong><hr class="sig">Utkarsh GajjarFri, 20 Nov 2009 15:41:42 Z2009-11-20T15:41:44Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/672e3cca-b312-4d72-ae6a-fbd8698b0e56http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/672e3cca-b312-4d72-ae6a-fbd8698b0e56Barry Kwokhttp://social.msdn.microsoft.com/Profile/en-US/?user=Barry%20KwokPrint function does not work in x64 runtimePrint button in crystal reports viewer does not work in x64 runtime, when I click on the print, no response and no error, nothing happen. Is this a bug? Does anyone else have the same problem?<br>Mon, 13 Feb 2006 13:42:16 Z2009-11-20T07:11:03Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/78e9e067-1acc-4258-8628-8705114714cchttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/78e9e067-1acc-4258-8628-8705114714ccVin Owenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Vin%20OwenCustom Paper Size added in Server Properties didnot appear at Crystal Report Paper size choicesHello everybody.. I'm stack with this case <div><br/></div> <div>I add a new form in <strong>Control Panel</strong> - <strong>Printer and Faxes - Server Properties. </strong>Define a new custom size and new Form Name, and didnt forget to <strong>Save Form.</strong></div> <div>I ascertain the default printer which i set is not different with the selected printer in <strong>Crystal Report - Design - Printer Setup - Printer Name.</strong></div> <div>The <strong>No Printer Checkbox </strong>is also unchecked.</div> <div><br/></div> <div>But the Custom Form Name which i have made doesn't appear. </div> <div>Please help.</div> <div><br/></div> <div>Thanx in advance.</div> <div><strong><br/></strong></div>Sat, 14 Nov 2009 05:45:50 Z2009-11-20T06:52:48Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/f097b21a-54dc-4e3f-8665-700d45d8bd52http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/f097b21a-54dc-4e3f-8665-700d45d8bd52palmdatehttp://social.msdn.microsoft.com/Profile/en-US/?user=palmdateupgrade from vb2003 to vb2008We have a large application in vb2003. Now we are converting it to to 2008. We got lots errors and warnings all in the crystal report files,such as:<br/><br/>Warning 2 'CrystalReport_Sales' is not CLS-compliant because it derives from 'ReportClass', which is not CLS-compliant. <br/><br/>Error 11 'Protected Sub New(info As System.Runtime.Serialization.SerializationInfo, context As System.Runtime.Serialization.StreamingContext)' has multiple definitions with identical signatures.<br/><br/>Could you give me some idea what I shoud do?<br/><br/>Thanks,Wed, 11 Nov 2009 19:49:26 Z2009-11-19T08:58:51Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/1eeb95e8-98cb-46dd-bdd5-172e9533b033http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/1eeb95e8-98cb-46dd-bdd5-172e9533b033JohannesMhttp://social.msdn.microsoft.com/Profile/en-US/?user=JohannesMCrystal report shows just the first data row from a datasetHello,<br/><br/>I have a dataset with a table and in the crystal report I have put it a Box Object (I would like to simulate a table), and inside the fields from the table.<br/>The problem is that in the crystal report shows just the first data row from the table. <br/>I have written the data from the dataset: <br/><br/>    ds.WriteXml(&quot;myfiletest.xml&quot;);<br/><br/>The file (myfiletest.xml) has three rows with data and in the crystal report is just written one row (the first one). I have put the fields from the table in the Section 3 (Details) from Crystal Report.<br/><br/>I have other fields. They are parameter fields and they are shown without any problem.<br/><br/>Do you know where the problem could be? Is it possible to mix the data from dataset with the parameter fields?<br/><br/>Thank you!<br/><br/>Regards! <br/><br/> <br/><br/><br/><span style="font-size:x-small;color:#008000"><span style="font-size:x-small;color:#008000"><br/><br/> </span></span>Wed, 11 Nov 2009 14:16:27 Z2009-11-19T08:55:56Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/981ba46f-94e8-4709-99d2-95ec851d276ahttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/981ba46f-94e8-4709-99d2-95ec851d276aKMatKSPhttp://social.msdn.microsoft.com/Profile/en-US/?user=KMatKSPDoes CrystalReportViewer Control come with Visual Studio 2008 Standard Edition?I have installed the Visual Studio 2008 Standard Edition, but I do not see the CrystalReportViewer control in the toolbox, nor is it available to add into the toolbox.Fri, 13 Nov 2009 17:53:47 Z2009-11-23T06:21:51Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/3f2aa6ac-37f1-4413-ae0a-3681c0d7210bhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/3f2aa6ac-37f1-4413-ae0a-3681c0d7210bCWhitmorehttp://social.msdn.microsoft.com/Profile/en-US/?user=CWhitmoreshared variableI have report with one subreport that uses a shared variable. The main report is grouped by market then by location. The subreport is grouped by market only. I created a shared variable in the subreport to sum revenue. I then created a shared variable in the main report to access the shared variable from the subreport.  When I place the shared variable in the main report and view the records it displays the shared variable as zero for the first record. It should display 16. when viewng the second record the sahred variable displays 16, the correct number for the first record. So in a sense, it seems as if the shared variable is one record behind when I veiw records on the main report. Any suggestions?Wed, 18 Nov 2009 22:50:42 Z2009-11-18T22:50:45Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/f152fcc6-a508-4964-b140-0155e0b8e07bhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/f152fcc6-a508-4964-b140-0155e0b8e07bHasan Vaezhttp://social.msdn.microsoft.com/Profile/en-US/?user=Hasan%20VaezHow to change text color runtime dinamicallyDear My friends, <div><br/></div> <div>I am working with crystal reports in vb.net 2009.</div> <div>I want to change some of text colors runtime. For example I want to set some text color to red when the text value is &quot;&lt;0&quot;. I do not want to use formula. </div> <div>I want to change the text color dynamically runtime.</div> <div><br/></div> <div>I would be very thankful if you could help me.</div> <div><br/></div> <div>hasanvaez@gmail.com</div> <div><br/></div> <div><br/></div> <div>Best regards,</div> <div>Hasan</div>Wed, 18 Nov 2009 20:51:37 Z2009-11-18T20:51:37Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/24e7c75e-c797-4fba-8de7-2cbba1cbcce1http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/24e7c75e-c797-4fba-8de7-2cbba1cbcce1DM_SOFThttp://social.msdn.microsoft.com/Profile/en-US/?user=DM_SOFTcreate a .txt file from crystal reportsHi all,<br/><br/><br/>Somebody know if is possible create a .txt file using basic syntax on the crystal reports?<br/>In the execution time I will store a value on a variable an after I write a .txt file on a local hard disk.<br/>Wed, 18 Nov 2009 20:14:36 Z2009-11-18T20:14:41Z