Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all 3636 articles
Browse latest View live

Problems Loading Assemblies After Upgrading from Visual Studio 2008 to Visual Studio 2012

$
0
0

We recently changed to Visual Studio 2012 from Visual Studio 2008. Our Click-Once Windows application is still targeting the ASP.Net 2.0 framework (no change there) and everything works fine on the development PCs, but when tested in the QA environment, anytime the QA tester tries to load a report, she gets the error "Could not load file or assembly 'CrystalDecision.Windows.Forms, Version=13.0.2000.0, Culture=neutral, PublicKeyToken-692fbea5521e1304' or one of its dependencies. The system cannot find the file specified." This is the same QA machine that the previous version was running on with no errors.

 

What do I need to do to resolve this issue?


Formula Field with Shared variable works as SubReport Parameter in Designer but not .Net app

$
0
0

Hi All,

 

I am using Crystal Reports 2011 Version 14.0.9.1345 RTM.

 

I have a report that I have created through the CR Designer that has 2 subreports(subreportInfo1 & subreportInfo2) that go and retriever pertinent information that I store in Shared variables.  I have multiple formula fields that I use to get individual data from these shared variables and then use these formula fields as linked parameters to a subsequent subreport (subreportData).  This works great in the CR Designer but in my .Net application I get nothing returned from my subsequent subreport(subreportData).

 

I am receiving no errors when running the report through the application and it exports the report to a pdf no problem but it does not run the subreportData report.

 

I can print out the data from the shared variables throughout the report and know I have the data I need, but for some reason when I run through the .Net application to produce the pdf it does not transfer the data to the subreport through the linked parameter.

 

Has anyone had an issue like this or know of a different way to use a shared variable in a record selection in a subreport?

 

Jim

Regarding crystal SDK requirement

$
0
0

Hi All,

 

       I have a requirement to open a crystal report and read it's contents for dynamic recipients. The current code has been written for Crystal Reports 2011 and I'm trying to convert it to work for Crystal Reports for Enterprise. Please have a look at the code and suggest changes for the new design.

 

IReportAppFactoryoReportAppFactory= (IReportAppFactory) oEnterpriseSession.getService("RASReportService");

 

 

ReportClientDocument oReportClientDocument= oReportAppFactory.openDocument(oDynRec, 0, Locale.ENGLISH);

 

 

InputStreamisInputStream

= (InputStream) oReportClientDocument.getPrintOutputController().export(ReportExportFormat.characterSeparatedValues);

 

 

P.S: I have gone through the  SAP Note 1697619 - Opening crystal report for enterprise from RAS SDK in BI 4.0 gives error CRSDK00002515

 

The note doesn't provide the alternate solution/script. I would really appreciate it if anyone can help me out with this scripting.

 

Thanks & Regards,

Vijay

Red X instead of images when running a CR for VS report in my ASP.NET app

$
0
0

I've been researching this on the SAP Business Objects web site - so far nothing has worked!

 

I'm creating an ASP.NET web app using CR for VS (version 13.0.10) under Visual Studio 2013 for .NET 4.x running on a Windows 2012 (64-bit) server.  The app is compiled under 64-bit and the report shows data in the Web Viewer.  The only thing missing are the images (including the charts) - I'm seeing red Xs because the path to the image is not found.  The image path has the path of the folder that my ASP.NET web form is in - with http://servername/appname/foldername/CrystalImageHandler.aspx?dynamicimage=cr_tmp_imagehttp://servername/appname/folder/CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_ ...   That path produces a 404 error (confirmed in the IIS logs).  However, the images are all there if I export to a PDF!

 

I researched a number of threads (887604, 1338110, 1810968, 3375644, 3541014) and documents (1329630, 1547124) that address this issue.  From the info, I tried putting the httpHandler reference under the system.web section or putting the handlers reference under the system.webServer section (with both preCondition="integratedMode,runtimeVersionv4.0" and preCondition="integratedMode").  (FYI, my application pool is using Integrated mode.) So far nothing has worked!

 

If anyone has any ideas what I am missing or what might be wrong here, please let me know.  Thanks in advance for your help!

Problems to assign datatable (from dataset) to subreport

$
0
0

Hi all.

 

I am having a lot of problems with all my reports that contains any subreport/s (only crashes in client´s machines, not development machine), Due this reports are a bit complex, ill try to make a new simple report with a subreport to see if it works but i had no results, and the problems is that i dont receive any message error, the program just crashes. I looked up for a solution and any of it works for me, The most common problem with subreports is that the sql query of the subreport and dataset are different, in my case are the same and the report its too simple to crash the application.

 

 

 

Here is the dataset that is assigned to the subreport:

 

Dim _dsld As DataSet = iCalc.SelectSql("select CR.pr_id,cr_id from corridas as cr inner join prestamos as pr on pr.pr_id=cr.pr_id where pr_nombre='" + CBOPrestamo.SelectedValue + "'")

 

 

                Dim rep_ As New CRPrueba

                rep_.Subreports("CRPruebaSub.rpt").SetDataSource(_dsld.Tables(0))

 

 

                rep_.SetParameterValue("pr_nombre", CBOPrestamo.SelectedValue)

             

                CrystalReportViewer1.ReportSource = rep_

 

Here is the subreport command:

 

select CR.pr_id,cr_id from corridas as cr inner join prestamos as pr on pr.pr_id=cr.pr_id where pr_nombre='{?pr_nombre}'

 

If i dont assign a dataset (datatable) to the subreport and insted of it i put the name of the loan, the subreport doesnt crashes, then the problem is at the moment of the dataset assignment to the subreport but i dont understand why crashes, in fact, i dont understand why reports that i dont made a change are crashing the application when it does not happened before.

 

I hope you can help me because if i can´t solve it,I'll have to make the reports without subreports (increasing the complexity of the reports)

 

Thanks in advance 

Table of Contents in Crystal Report

$
0
0

Hi everyone,

 

I need some help in creating Table of Content in crystal report.

 

I have one report which had more than 150 pages output.

 

I am using MS-Access as database and passing data source using DATASET i.e. using .xsd file.

 

And it is not connected to database so INSERT statement will not work I think so.

 

Please give me another solution.

 

Thanx in advance.

Edit Crystal Report

$
0
0

Hello Group

 

As I heard that Crystal reports is avaible for visual Studio 2013, I installed it yesterday. Sadly I still can not open the reports in the editor. When I doubleclick the .rpt file in Visual Studio Environment it opens the Report in a Notepad view.

 

What can I do?

"Can Grow" Fields cutting Text on right Margin if Page Setup has no Printer

$
0
0

Dear Community,

 

i found out, that in our Report's (about 500) "Can Grow" Fields cut the Text on the right margin.

 

It seems the Word Wrap dosn't work....After all, i tried to reproduce it. First i can't.

 

But then I found out, that you must  set have in Page Setup "No Printer (optimize for screen display)" to get the same issue. 

 

We have Crystal 2008 with all SP's and using VS2010 SP2 to view our Reports. The most Fields are comming from Database.

 

here some picture:

 

 

[http://knw-610.com/tmps/CutText.JPG]

 

Hope you can help me.

 

Best regards

 

 

Steven

 

Edited by: vissers on Dec 21, 2011 10:13 AM


Editing Crystal Report at Client Machine

$
0
0

Hi Everyone,

 

I have one doubt can anyone help me to solve?

 

I have created one VB.NET application in VS2005. In that I used crystal reports.

 

Now I want to deploy it on client machine. For that I did setup file in which I included CR redistribute merge module.

 

I installed it on client machine, everything is fine till now.

 

Now, I want to edit some report i.e. like some printer paper size/ alignment of some text in report on client machine.

 

How to do it? Does I have to install whole setup on client machine or any other solution?

 

Thanks in advance.

adding images to report created in VS 2010

$
0
0

Hi,

 

I'm trying to display an image in an report created in VS 2010. I'm defining the column in the dataset being of type byte[] and I'm dumping this column in the report. Unfortunately does not work

 

I have tried both .BMP & .JPG without success

 

I'm reading correctly the image into the row.

 

Is this supported at all with the version used in VS 2010?

 

IF not, which version should I use?

 

Thank,

Ignacio

http://www.laceupsolutions.com

access to Oracle databases from CR for VS

$
0
0

We have SAP Crystal Reports for Visual Studio (version 13.0.10) running under Visual Studio 2013 from a Windows 2012 (64-bit) server with the Oracle 12c ODP package installed.

 

We have some old Crystal Reports .rpt files that were created under Crystal Reports 10 that were created to directly connect to Oracle (Oracle 8 and 9 at the time) - and we would like to be able to utilize these files as is in the CR for VS environment.  When I try to connect to the database or preview the reports, I get the error "Failed to load database information.  Details: The database connector 'crdb_oracle.dll' could not be loaded.  The correct version of the database client for this database type might not be installed."  It looks like crdb_oracle.dll does exist on the server - so I'm wondering if the issue is that we need to install the complete Oracle client (not just the ODP) - or is there more to it?  Also, will this work with Oracle 12?

 

Please let me know what I can do to make this "backward compatible" with Oracle so that we can reuse these .rpt files.  Thanks in advance!

"Invalid File Path" after upgrading redistributable to 13.0.10

$
0
0

I'm getting an "Invalid File Path" error in one of our in-house applications whenever I try to view a report on a PC that has been upgraded to use the 13.0.10 redistributable for Crystal Reports.  (The update was installed to add compatibility with IE 10+.)  However, the application works fine on a PC that is still running the 13.0.2 redistributable.  Here is what seems to be the relevant block of code:

 

this->crystalReportViewer1 = (gcnew CrystalDecisions::Windows::Forms::CrystalReportViewer());
this->reportDocument1 = (gcnew CrystalDecisions::CrystalReports::Engine::ReportDocument());
this->SuspendLayout();
this->reportDocument1->FileName = L"rassdk://L:\\programs\\Reports\\DummyReport.rpt";
this->crystalReportViewer1->ActiveViewIndex = 0;
this->crystalReportViewer1->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
this->crystalReportViewer1->Cursor = System::Windows::Forms::Cursors::Default;
this->crystalReportViewer1->Dock = System::Windows::Forms::DockStyle::Fill;
this->crystalReportViewer1->Location = System::Drawing::Point(0, 0);
this->crystalReportViewer1->Name = L"crystalReportViewer1";
this->crystalReportViewer1->ReportSource = this->reportDocument1;
this->crystalReportViewer1->Size = System::Drawing::Size(811, 719);
this->crystalReportViewer1->TabIndex = 0;

The application gives the error on line where it sets the ReportSource.  I'm guessing something changed in the redistributable; does anyone know what might have changed to cause this, or how to get around it?

 

Thanks in advance,

Kevin

CR for VS SP09 - Embedded images not showing in CrystalReportViewer

$
0
0

Good Morning Everyone,

 

I am using Visual Studio 2013 as my IDE, I have installed the CR for VS SP09 and have been able to create a basic web form that displays a report. The report I am using has images embedded in it that display fine within my SAP Crystal Reports 2013 application when I run the report from within it. The images also show up when I export from the web form's crystalreportviewer and print just fine. The problem I am having is more related to the web form report viewer as runtime on the page.

 

The web form pulls up the report, the data is there all looks great but the images are not showing.

 

I added the following line to my web.config....

 

"<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>"

 

but to be honest I do not think the "CrystalImageHandler.aspx exists anywhere on my machine.... am I missing something?

 

All help is appreciated, thanks!

 

-Zack

Crystal Reports version 13 managed api's run slower than native version 11

$
0
0

Hello,

I am a senior engineer, working in a project of porting client code written in C++ using Crystal 11. It uses the native COM api like shown approximately in the following code fragment:-

 

IApplicationPtr pApplication;

 

pApplication.CreateInstance("CrystalRuntime.Application.11");

pReport = pApplication->OpenReport("myreportfile.rpt", vtOpenMethod);

... code to setup Export Options, setLogonInfo on database, set parameters for report etc.

pReport->Export(false);

 

This code is launched in few threads, and works nicely, and a very stable used code in real world.

 

We have ported this to Crystal 13 .NET api's and our code approximately looks like

ReportDocument document = new ReportDocument();

document.Load("myreportfile.rpt", OpenReportByTempCopy);

.. set diskfile format options, pdf format options, paramters, logon info etc. very very similar to the native C++ code, almost matching 1 by 1 line

document.Export();

document.Close();

 

No problem so far, and it works fine. This is also launched in multiple threads same in number like native, and works fine. We get the same pdf file generated.

 

But here is the problem. In native we are getting easily around 2000 reports in 20 mins. But in managed we are taking 35 mins for the same set of reports. The output looks fine and same etc. But there is a good 40-50% performance regression, and we have tried so many things, but never able to beat this 40-50% perf degradation.

 

Can you please help ? A few questions. First are we executing document.Export really concurrently ? Is there any waiting or serialization going on insider Crystal api's. Is this Crystal 13 managed api, a thin stub layer just passing on to native COM apartment threaded dll. Can this layer introduce such a delay ?

 

A few things we have tried and haven't succeeded for summary:-

1. Opened 1 dummy report in the beginning and kept opened throught, to flush any ref counted inits

2. Didn't perform Close immediately, but had another thread chew on it and Close delayed

3. Reduced the thread to 1, (in native as well), again our perf degradation is comparable.

4. Optimized the reports from various suggestion in this forum. Did better, but so did the native, and still we are comparatively poorer.

 

Thanks for the same, Eager to supply more info if required.

R. Sridharan

The product version is not registered on the server. Contact the administrator of your FLEXnet Connect account.

$
0
0

Hello

 

After I installed the latest service pack update, when I now go to check for updates I am given a message =

 

The product version is not registered on the server. Contact the administrator of your FLEXnet Connect account

 

Please can you advise how to resolve this so that I can check for updates

 

Thank you

 

I am using Visual Studio 2013


Problem printing duplex even though it's saved in the Crystal Report.

$
0
0

I'm using VS.NET 2010 with Crystal Reports 13.0.10.1385

 

We have a set of Crystal Reports that were created with Crystal 8.5 and they print duplex and the printer and printer preferences are saved with each Crystal Report.

 

The problem is this, I'm pulling in these reports to my VS.NET 2010 Project using Crystal Report Viewer and it will not keep the printer preferences when you print the report.  Why, it works using VB6.0?  The only way I can get it to print duplex is to manually set the printer preferences before printing the report.

Crystal

$
0
0

Hi Bhushan,

 

Thanks for your answer.. The info. that you have given has lots more in it. and I am not an advanced user in crystal

 

Could you please make it short and simple ..

 

Scenario: We use Epicor (ERP software) for reporting and we have Crystal Runtime 2008 installed to run Crystal reports developed in XI R2

 

1) Reports designed in Crystal XI R2...

2) Run-Time I have now is Crystal 2008

 

Query: If I update my Report designer to Crystal 2013... Do I need to make any formatting changes that are already developed using Crystal XI?

 

If I don't need to make any Changes-> What version of Crystal Run-Time should be used for both 32 and 64 bit machines. Does Crystal 2008 run-time needs to be updated?

 

I am not sure about this statement : "you need to deploy the app as a 64 bit app you would need to useCR for VS 2010 / 2012 / 2013 to develop your app with version 13 runtimes and use the report designed in any of above CR designers"

Deploying CR for VS 2010 on 64bit Web Server

$
0
0

I have looked at many other forums and posts related to this but have not made any progress. I am trying to get my VS 2010 project onto a web server. CR works fine when it is in the development environment, CR for VS 2010 32-bit (version 13.0.2000.0). However, when the project was moved to the Windows 2008 server (64-bit), CR wasn't rendering on the web pages with this error.

 

Webpage error details

 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; Tablet PC 2.0)

Timestamp: Wed, 23 Jul 2014 22:49:38 UTC

 

 

Message: 'bobj' is undefined


The app admin used this link to try and resolve this issue. However, now we are getting a different error


Could not load file or assembly 'CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies.

 

Does anyone have any clues on what route to take to resolve this. If there is any more information needed, ask and I can request it.

 

Thanks for your time.

Interesting issue encountered when 'verifying database' on report using .NET

$
0
0

I'm new to crystal reports and reaching out to the experts on this forum regarding an interesting issue that I have encountered when working with Crystal Reports for Visual Studio 2010. Just to give you a brief background on the application I have developed: It is a windows service written using the .NET 4.0 Framework. When the service first starts, it checks the value of a config parameter/ boolean flag (call it the 'UpdateStartDate' flag), which if set to true, then the service updates a custom oracle table (using .NET SQL bind query / variables) with the service start date and if the flag is false, then, as is obvious, the service does not update the custom oracle table. For ease of reference, let me refer to this oracle table as the 'SERVICES' table. Once this step completes, the service then proceeds to run a crystal report and export the report to PDF format which is then emailed a list of recipients. Regarding the crystal report itself, it is designed to connect to multiple (4) oracle tables using 'Oracle server' type connection (to our development database), it has a date range parameter field, and displays a combination of formula and database fields. The multiple tables are appropriately linked using the Crystal reports designer. Programmatically, the following are the steps I follow in generating the crystal report through the service: 1. Create a new 'ReportDocument' object 2. Load the report in question to this object. 3. Remap the database connection information in the report to the database specific to the environment in which the service is running 4. Verify Database 5. Set the date range parameter values 6. Set the export options on the report to PDF specific settings 7. Export the report Now, to the issue: on my development machine (which is a Windows 7 x64 workstation), irrespective of whether the service updates the 'SERVICES' table or not, the crystal report generates just fine and is emailed to the recipients. However, when I installed the service in our TST environment which is a Windows 2008 R2 enterprise x64 server, the crystal report generates perfectly well but ONLY if the 'SERVICES' table is first updated. If the 'service' table is not updated, then on each scheduled run of the already started service, the crystal report fails when executing the 'verify database' step. The exception received is:     Inner Exception     ---------------     Type : CrystalDecisions.CrystalReports.Engine.LogOnException, CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304     Message : Log on failed.     Source : CrystalDecisions.CrystalReports.Engine     Help link :     ErrorID : LogOnFailed     Data : System.Collections.ListDictionaryInternal     TargetSite : Void VerifyDatabase()     HResult : -2147215360     Stack Trace :    at CrystalDecisions.CrystalReports.Engine.ReportDocument.VerifyDatabase()       at MailingService.GenerateMailing()         Inner Exception         ---------------         Type : System.Runtime.InteropServices.COMException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089         Message : No error.         Source : Analysis Server         Help link :         ErrorCode : -2147483648         Data : System.Collections.ListDictionaryInternal         TargetSite : Void VerifyDatabase()         HResult : -2147483648         Stack Trace :    at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.VerifyDatabase()           at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.VerifyDatabase()           at CrystalDecisions.CrystalReports.Engine.ReportDocument.VerifyDatabase() At this point, I concluded what it needs is that 'first interaction to the database' just once at service start up and i.e. before any report is generated and this theory works. So, as a workaround, I added a piece of code that at start-up, the service does a simple 'select sysdate from dual' just to satiate this need and now the service is working fine. It bothers me that it is a workaround and leaves me wondering why I should even need to do this. Furthermore, I wonder why the service is exhibiting this behavior in the TST environment and not on my DEV workstation? It is natural at this point to consider the aspect that it may have to do with the fact that the report connection is remapped from the DEV database to the TST database. But what makes this even stranger is that if I set the service connection string on my DEV workstation to the TST database, that works fine in that it does NOT require the workaround. Would love to hear your thoughts. Thanks, Sid

Newbie Need CR book

$
0
0

I am trying to learn CR for microsoft  version for visual studio for visual basic 2010. I need a good book to show how to use CR.

 

thanks

Viewing all 3636 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>