Exporting a 10.0 Crystal report to PDF results in a blank PDF document(works on development machine does not work on other machines) - crystal-reports

I have a small program developed using C#(dotnet 2.0 framework) and MySql 5.0 that reads data from a MySql database opens a report then exports the data to a PDF document . The program is working fine on my development machine .
I created a ClickOnce installation using VIsual Studio 2005 .Using that setup I installed the program on another computer on which crystal reports 10.0 and dot net framework 2.0 was not installed.
I installed dot net framework 2.0 and crystal redistributable for visual studio 2005 on the other machine.
On the other machine the program runs without any error . But the generated PDF file does not contain any data.
I exported the contents of the dataset(I am using the Push Model ) to an XML file to ensure that data is being retrieved .
Data is being retrieved as expected . But the generated PDF document is blank
Please note that I am using the 'MySQl Connector' to connect to MySql. Also the development machine is a Windows XP machine
The other computer is a Windows 2003 Server.

I have had the same problem too. Sometimes
I delete the temporary folder
Use CCleaner to clean
Set Security Policy to clean Virtual memory on shut down
Shut down + Switch on the system
Clearing history and cache
Combo of above 5
But now nothing is working for me. The crystal report shows data and design. Using crystal report's export to pdf option, the pdf works fine. But when exporting directly, the pdf has many pages which are blank. Not even design is showing.

Related

Developing and loading Excel Addin using c++

I have built a NEW/empty Add-in for excel(.xll) 64bit. I am running Win10 on a virtual machine through VMWare, using VS2019, Excel 2013. When I load the Addin I get a not a Valid Add-in error. I was able to convert an old 32bit to 64bit which loaded and worked without a hitch. I matched all the values in Properties, and the code compiles with no warnings or errors but it will not load into excel, Just gives the not a valid add-in error.
When I checked the dependencies, I am missing ext-ms-win-oobe-query-l1-1-0.dll which I cannot find anywhere, but the same was also true for the add-in I converted which loads into excel perfectly.
thanks for the help.

Crystal Reports - applications with embedded reports

I have a SQL server database on my customer's server which is accessed by aprox 20 users through a winforms client application installed on individual machines.
I was thinking of using Crystal Reports to produce management reports etc and embedding this into my winforms application. However would this mean that crystal reports needs to be installed on every individual client machine, or just on the server?
For winforms you will need to install the Crystal Reports Runtime on the client machines so that they can view and interact with your Reports. You should be able to get the Runtime (msi) from SAP's website or sometimes it will come with your download when you purchase/download the software online (that was the case for me when I got the dev version for 2012).
SAP Crystal Reports, developer version for Microsoft Visual Studio - 2012 Now Available for Download
If that is not your version just Google for your specifics and you should be able to find what what you need.
BukHix is right, you need to install the runtime on each machine.
If you don't want to do this you can consider implementing a report scheduler, which will run the reports on the server and will deliver them to the management as excel, pdf or any other applicable file type

Crystal reports database connection issues

Failed to load database information. Details: The database DLL crdb_ado.dll could not be loaded. Error in File (filename) Failed to load database information.
I am receiving this error when i try to run a crystal report from my page. on the server I have installed the CRRedist2008_x86 and the dll file is in the business objects folder, but for some reason it is still not loading. I also checked to make sure I have the msvcp60.dll which is also needed but still am unable to run the report.
The server is running Windows Server 2008, has Visual Studio 2005 installed on it (not sure if that makes any difference). The application ran fine on my local machine, but after uploading it to the server, it's not wanting to play nice.
Any suggestions/help is appreciated.
Thank You
You should get Dependency Walker and open the crdb_ado.dll to confirm all the required files are there. Although checking for msvcp60.dll is generally the right idea, I've found that people are often looking for the wrong version of those files OR that other required DLLs are also missing.
Also, be sure the redist you are using matches the version of Crystal Reports you have referenced in your project. There is a difference between using, say Crystal Reports 2008 on top of Visual Studio 2005,, versus using the BUNDLED Crystal Reports that comes with Visual Studio 2005 (Or 2008, or 2010 for that matter.).
In fact, sometimes people don't realize that their .NET projects are referencing the "comes with Visual Studio" edition of Crystal Reports because they happen to have Crystal Reports version <whatever> installed on their PC.
That said, if you are pretty confident your redist of CRRedist2008_x86 matches what you are using, I'd focus on Dependency Walker to see if it is indicating a missing required file for the crdb_ado.dll.

Crystal Report - Changing DB location not working

I've worked with Crystal Reports for several yrs but now with a particular report created by another developer, I cannot change the DB connection/location.
He used an OLE DB connection and created the report for use in a Windows App using Visual Studio. The report works "sort of" in Visual Studio but I have a higher version of VS (VS 2010) than the developer but it is causing issues on the formulas he uses.
I am now just trying to open the report outside of VS directly in Crystal and I can't get it to update the db location.
I created an ODBC linc and tried using it to swap out the db location and it says:
"Data Object cannot be opened/accessed" ... followed by "Unknown Database Connector Error"
I don't know how to troubleshoot this further. Any help will be appreciated. Thanks
I had the same issue, and was able to resolve it by selecting the SQL Server Native Client 10.0 driver rather than the 11.0 one when setting up the ODBC connection.
You have to delete the original if you want to have the same name.

failed to load database information

I have a desktop application that was migrated from .Net 1.0 to .Net 4.0. The application is using Crystal Reports and ttx files as the data definition files. The actual database queries happens in business objects and the data are set using SetDataSource() method.
After I upgraded this to .Net 4.0 (and Crystal Reports for Visual Studio 2010, version 13), the reports still working great on my developer workstation. But when I installed the application on the test machines I started getting errors like this:
Error in File temp_****{****}.rpt: Failed to load database information.
Where the asterics signify some kind of GUIDs.
The odd thing is that the reports that I did not touch continue to work. Only the reports where I had to update the data source (TTX file) generate this error.
I am also getting this error:
The keycode assembly, BusinessObjects.Licensing.KeycodeDecoder.dll, cannot be loaded.
but I do not know if this is related.
The Keycoder error is not the problem. That is currently a warning message that seems to have no effect on anything (as best I can tell).
Don't be confused by the GUID stuff either. It's just a temp name that Crystal gives the report object.
The real error there is simply "failed to load database information". Something in your TTX update is at fault.
You might try running the report in Crystal 2008 on the machine giving you the problem. Your report is out-of-sync with the TTX file.