I'm working with MySQL connector and C#. Everything was ok until I got to the reporting part. There is no standard way to retrieve the data from MySQL to CrystalReport. So I read in this page that what I have to do is a XML file of a View created in MySQL then retrieve the data for Crystal Report. I dunno if you have done it but I am having problems with this.
When I put the information in the details section or when I group the information, the information is repeated and its driving me crazy. Do you have any idea why?
P.D.
I can't put any code because all is done in the UI of crystal report.
I got it, I think it was the mess of working with a XML file and then calling that to the CrytalReport, solution here:
http://writer.zoho.com/public/13706/27397
Use the mysql odbc driver to make a new connection in the database expert inside Crystal Reports.
Related
Actually I'm asking this question because I want to know what is best solution for this base on what I only have. First let me show you what I really want to achieve. My boss want me to generate report in excel file (.xls or xlxs) then inside this report compose of multiple sheets with each respective sheet name. Data are presented in nice and professional way and sometime there are graphs inside that are link with the data within the sheet and it looks like this:
Below is what I only have to generate this output.
Visual Studio 2008
Sql Server 2008 (no SSRS)
Report is generated via
RDLC (naming of sheet is not possible for this but multiple sheet is
doable via pagebreak)
I try to update excel file via Sql Server but
seem too complicated for this specially when dealing with Total
fields.
I have not yet tried to render graph on .rdlc
It sounds like the data lives in SQL server. If you have access to it, why not create an ODBC connection and use this to pull raw data into each one of the sheets you need, and then configure a dashboard tab that automatically pulls data from those sheets (even if you refresh it) and shows the graphs and summary tables in the format that you want?
Am new to crystal report and this stackoverflow. with the lot of hope am writing this to get help. It will be encouraging if you provide support.
I want to convert Power builder library(.pbl) files to crystal report files(.rpt) .
In that process, i need to integrate all the objects available/supported in crystal report .
Now am in the process of converting Crosstab objects.
So, How can i provide the necessary bound values (like rows,colums,summary) for crosstabobject to form crosstab in crystal report.
For this i need to mention all the specifications in my code(.cs) file . i need the code for "Crosstabobject" implementaion.
If anyone could help on this, I will be very thankful to you
Thanks in advance,
The RAS (report-application server) SDK offer the most functionality when it comes to modifying a RPT--much more than the Crystal Reports SDK. The in-process version of the SDK no supports doing the modification on the client.
It appears, however, that the SDK doesn't offer the functionality to create/modify a cross-tab object, only to delete it. Supporting documentation from the Java-edition of the RAS SDK.
** edit **
This appears to be the case in the .Net SDK as well. Here's a link to the Report Application Server .NET SDK in CHM format.
Currently, I need to be able to retrieve values from an SQL Server DB, populate an Excel file according to a certain template, and then allow the user to download the file. I also need this this certain template to be customizable, in the sense that the user can add new fields, and remove fields.
I understand that there are a couple of approaches I can take: using .xlt, and using C# directly. With C#, the user will need to interact with a UI, which will then populate a ExcelTemplate table in the SQL Server. This ExcelTemplate table will then be used when the user wishes to download a new Excel file.
I know all this stuff may sound kinda abstract, so please do tell me if there are some places I need to elaborate/clarify. Thanks a bunch, man.
EDIT: Sorry, I kinda missed this part out, but I'd prefer to allow the user to customize these Excel templates via a Silverlight UI.
You can create Data Sources in Excel and pull the data from MS SQL Server.
You can use MS Reporting Services which allow to get reports in MS Excel format. In this case users can use Report Builder to customize the reports.
For pulling down data from SQL Server and dumping it into Excel, you can use Officewriter. It has Reporting Services integration and supports generating .xls and .xlsx documents. There's also a template component that basically does what you're trying to do. The templates are actually Excel documents, so the users can edit them directly in Excel. Not Silverlight, but not bad. You can try an eval for free.
DISCLAIMER: I'm one of the engineers who built the latest version.
at the end of the day I think I'm gonna spend some time building a customized dashboard. It won't be generic, but rather focused on the existing database.
I know this answer is kinda vague and all, but I'd like to say thanks for all the help :) it'd be great if there are dynamic solutions for this in the future! I think...
I have a winforms applications that does some reporting using Crystal Reports for Visual Studio 2008.
I'm facing the situation where I have to add new data to one of those reports, that uses odbc as its data source.
Since the new data I have to add is quite complex to process with CR Table Designer (odbc) I'm thinking on doing all the processing by code and pass the output using a DataSet. Also, I don't want to migrate the whole report to DataSets as data source.
I know I can't use Odbc and DataSet on the same report but can I do this on a subreport?.
I mean, keep the main report as odbc and add a subreport with DataSets as its source?
Thanks.
I believe the answer is that yes, you can. We provide independent datasets to subreports all of the time using the report's Database.Tables([SubReportTableName]).SetDataSource() method.
I am using the telerik rad controls in my asp.net web application. User can export any excel file say Test.xls. But when I try to import(Upload) Test.xls to Sql Server 2008. It gives error External Table is not in correct format. And the application crashes at the time of opening the Oledb connection. But if I create another Excel file say New.xls and import that file to my database, it works fine.
Can anyone help?
Thanks In Advance
Not really much that we can say with so little information. Best guess would be that your excel column data mappings don't match those required by the database.
New.xls may be a red herring if it doesn't contain any data.
Try and give us a little more information please regarding data and the exception - have you looked at the actual exception data by running this in debug in VS? If so what is it?