Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports, version for Visual Studio
Viewing all 2556 articles
Browse latest View live

SAP Crystal report plugin forVS2013 13.0.9

$
0
0

Hi ,

 

I have insatalled latest version of SAP Crystal Report Plug-in 13.0.9 but Windows Assembly(GAC) displays the all Crystal report assembly  versions as 13.0.2 where as dlls in program files(x86) folder has  13.0.9.

 

Could someone please let me know why the version is  not matchin between GAC and program files?

 

Thanks,

Bharath


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

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.

Change formula-value in a subreport with RAS

$
0
0

I have a pointer to a subreport with the type: CrystalDecisions.ReportAppServer.Controllers.SubreportClientDocument

Here I can loop across DataDefController.DataDefinition.FormulaFields, but I cannot change a value of a formula - there's no Text-property.

 

Any ideas?

 

Patrick

PrinttoPrinter not working in IIS 7

$
0
0


I have a web App that is not working properly when deployed to IIS.  The code that I am using is as follows:

 

crReportDocument.PrintToPrinter(1, True, 0, 0).

 

This code works in design mode with visual studio on the server, however when deployed on the same machine to IIS it does not work.

 

I am wondering how to correct this issue?

 

Your prompt response to this would be greatly appreciated.

 

 

 

 

 



Crystal Report Toolbar images not displaying properly in IE?

$
0
0

Hi,

I am using VisualStudio 2012 ,crystal report version 13.0.2000.0 and sp5.

My problem is that after loading crystal report, toolbar image icons (such as print,export etc) are not showing properly ininternet explorer(version ie10). But it is displaying correctly in chrome and firefox.

What could be problem ?? Any help will be appreciated ..

Load Multiple Images in Crystal Report using Paths

$
0
0

Hi Guys,

 

I am currently in need of developing a new requirement for our company's client. We have to load multiple images using just link in Crystal Report. Let's say that the images are stored in a folder (e.g., C:\Datafolder\Images\) and i have to fetch two images to show in crystal report (say, C:\Datafolder\Images\imageval1 and C:\Datafolder\Images\imageval2). These are actually dynamically created and therefore the number of images are not known and so i have to iterate through the list of image links.

 

Is it possible using merely crystal report and how?. If not, can I do it using Crystal Report SDK?. Any help will be appreciated. Please take note that we're also using C# in developing our software applications.

 

Thanks and best regards.

 

 

---CHITO--

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?


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?

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

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!

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.

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.

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.

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

Invalid Section Height when I load the nth subreport

$
0
0

I am attempting to load multiple sub-reports into a master report document. The process is:

 

  1. Use the RAS SDK to obtain a reference to the detail area
  2. Add a section to the detail area
  3. Import the subreport into the detail area

The code is pretty simple as well.

 

        privateReportDocument AddSubReportToParent(string subReportName, string fileName)

        {

            try

            {

                CrystalDecisions.ReportAppServer.ReportDefModel.ISCRArea detailArea = _crystalDocument.ReportClientDocument.ReportDefController.ReportDefinition.DetailArea;

 

                CrystalDecisions.ReportAppServer.ReportDefModel.Section section =new CrystalDecisions.ReportAppServer.ReportDefModel.Section();

                string sectionName ="Section"+ subReportName.Replace(".", "");

                section.Name = sectionName;

                section.Kind = CrystalDecisions.ReportAppServer.ReportDefModel.CrAreaSectionKindEnum.crAreaSectionKindDetail;

                section.Width = headerArea.Sections[0].Width;

               

                _crystalDocument.ReportClientDocument.ReportDefController.ReportSectionController.Add(section, detailArea, -1);

                _crystalDocument.ReportClientDocument.SubreportController.ImportSubreport(subReportName, _configSettings.InputPath +"\\"+ fileName, section);

 

                ReportDocument subreport = _crystalDocument.OpenSubreport(subReportName);

                return subreport;

            }

            catch (Exception ex)

            {

                Logger.ErrorException(this.GetReportBuilderErrorText(this.GetReportBuilderErrorText(String.Format("Unable to add subreport '{0}' from file {1} to custom Crystal Report", subReportName, fileName))), ex);

                throw;

            }

        }

 

However, when I attempt to load the 41st report (or sometimes greater) the ImportSubreport method throws an exception with the message, "Invalid Section Height". Note that I have one section for each report. This is to make it easier to place the subreport on in the document and on it's own page.

 

I cannot seem to determine what is going wrong. Why would the 41+ import fail?

 

I am using Crystal Reports Version for Visual Studio .NET, 13.0.8.

Report designer in c# application

$
0
0

A greeting. I wonder if it is possible to add to an application environment c # crystal report design.

We need users to edit application c # reports from the application.

 

I add a reference image

foroimagen.png

Viewing all 2556 articles
Browse latest View live


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