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

Crystal Reports locks the program that is running the report on Windows 7

$
0
0

We are having many clients that are running our program on Windows 7 64 bit platforms, our program that displays the report hangs our program when the user closes the report.  I ran the latest SP9 and SP10 on the workstation and it still has the problem.

Windows 7 64 bit operating system.

Windows Form Application

 

I have wrote a very simple application and have isolated the problem to the dispose method.

DataSet ds = newDataSet();

DataTable dt = newDataTable("FRUIT");

DataColumn dc = newDataColumn("Type");

            dt.Columns.Add(dc);

            dc = newDataColumn("Color");

            dt.Columns.Add(dc);

 

            DataRow dr = dt.NewRow();

            dr["Type"] = "Apple";

            dr["Color"] = "Red";

            dt.Rows.Add(dr);

            dt.AcceptChanges();

            ds.Tables.Add(dt);

CrystalReport2 RPT2 = newCrystalReport2();

            RPT2.SetDataSource(ds);

            crystalReportViewer1.ReportSource = RPT2;

if (crystalReportViewer1.ReportSource isCrystalReport2) // check if valid reference

            {

                CrystalReport2 rpt = crystalReportViewer1.ReportSource asCrystalReport2;

                rpt.Database.Tables.Dispose();//When code reaches this point, the program locks up and freezes.

                rpt.Database.Dispose();

                rpt.Dispose();

            }

 

            crystalReportViewer1.Dispose();

            crystalReportViewer1 = null;

            this.Close();


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.

using cr for vb 2010 and cr for 2012 on same development computer

$
0
0

I have applications in  vb.net 2010 and  am going to install vs 2012 on the same development machine.  Can I continue to create reports for 2010 and 2012 on same development machine.  Will I then have both cr for vs 2010 and cr for vs2012 on the same development machine with separate references to each vb.net version.  Is that correct?  Both visual studio versions will now be using the framework 4.5 as I understand when both are installed on same machine.  Is there anything regarding this that would involve separate steps installing Crystal?

 

Is there anything else I need to do regarding crystal in terms of installation that would be different?  I know there was a problem with having vs 2008 and vs 2010  with the different crystal versions on the same development machine .  I gather this is not the case now?

 

Thanks

CR 2013 Runtime, VS 2012 and OutofMemory exception

$
0
0

Hi,

 

We have recently migrated from VS 2008 to VS 2012 and so crystal reports for VS also moved to 13.0.9 version. Now one of the issues we are seeing from our web application deployed in production on IIS 6.0 on Win 2K3 is that when a module without any connection to crystal reports etc hits an exception of "out of memory", then everything else related to crystal reports stops working and it continues to throw Load report failed error message (in the event viewer on the server.) Has anyone reported this kind of error and what steps need to be taken to address? This also forces me to reset IIS which means users are forced logged out of the web application though they may have not been doing anything in crystal reports at all.

 

Thanks,

Surya

Parameter being ignored after upgrade to VS 2013 .Net 4

$
0
0

We have an application created in .NET 2 on VS 2005 that uses Crystal Reports.  After upgrading the application in VS 2013 to use .NET 4, the Crystal Report quit working properly.  The report has 3 parameters, and one of them is being ignored -- like it isn't even there.  The report runs, but acts like the third parameter doesn't exist.  When I click refresh on the report, it prompts me to enter 2 of the parameters, but not the 3rd ignored one...it is missing.  But when I run the report in preview mode, it prompts for all 3 parameters and runs properly.

 

I installed the latest release of Crystal for .NET (v. 10) this morning, but nothing changed.

 

Thanks!!

 

Joe

Is there any way to suppress a section using C#

$
0
0

Hi, sap experts

 

QQ截图20140804112232.png

 

As is shown in the picture, I designed a rpt file with many ReportFooterSection, now how to partly suppress the sections using C#.

 

Thanks.

Suppress multiple sections at a time?

$
0
0

Hi sap experts,

 

I now using C# to suppress section with the following code:

 

                ReportDocument rd = new ReportDocument();

                ISCDReportClientDocument crReportClientDocument = rd.ReportClientDocument;

                CrystalDecisions.ReportAppServer.ReportDefModel.SectionFormat crSectionFormat;

                CrystalDecisions.ReportAppServer.ReportDefModel.Section crSection;

                rd.Load("E:\\SouthGis\\CASS\\Code\\trunk\\Code\\ShowReport\\ShowReport\\CRReport\\CrystalReport_ALLCR.rpt");

                crSection = crReportClientDocument.ReportDefController.ReportDefinition.ReportFooterArea.Sections[0];

                crSectionFormat = crSection.Format;

                crSectionFormat.EnableSuppress = true;

                crReportClientDocument.ReportDefController.ReportSectionController.SetProperty(crSection, CrystalDecisions.ReportAppServer.Controllers.CrReportSectionPropertyEnum.crReportSectionPropertyFormat, crSectionFormat);

 

But now I have about 14 ReportFooterSections.

 

Sometimes, I have to suppress 10 or 9 or 11 ReportFooterSections at a time. While using the above code , I have to define many crSections. This may cause may dumplicate code.

 

Is there a way to accomplish it?

 

Thanks.

 

QQ截图20140805104126.png

Could not load file or assembly 'CrystalDecisions.Enterprise.InfoStore

$
0
0

Hello

 

I need some help!

 

 

How to solve thefollowing error inCrystalReports 2008?

 

Could not load file or assembly 'CrystalDecisions.Enterprise.InfoStore,
Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
orone
of its dependencies
.
Unabletofind the specifiedmodule.

 

 

 

Note: The reinstallation of msi file doesn't resolve.

Operating System: Windows 7 64 bits


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

How to get the event when CR load complete

$
0
0

Hi, sap expert

 

I'm wonder whether there is a method to get the event when CR load complete.

 

Because if there is a lot of data to be load, it will take a long time to show the report.

 

I want to show a message to let the user" Wait a moment.........", and when loading complete, the messagebox close.

 

Thanks.

Can I run existing crystal reports from a vb 2013 project I created?

$
0
0

I'm writing a visual basic project in Visual Studio 2013 Professional. I would like to be able to click on a button and run some existing 2008 Crystal Reports version 12 reports that were made for Microsoft Dynamics SL 2011 using vb script. Is there any way to do this? How and with what version of Crystal Reports?

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

Number formatting changes

$
0
0

I am using Visual Studio 2012 to make a web site that displays reports made in Crystal Reports 2011. I am having an issue where the number formatting on my graphs changes from when I open it in Crystal and when I open it on my web page. In Crystal is formated as integers but when you look at the graph on the web site they look like 19.00. Any ideas how what is happening and how to fix it?

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.

 

 

 

 

 



Uninstall of Crystal Reports XI R2

$
0
0

I am trying to uninstall Crystal Reports XI R2 on a development machine and I am getting errors about missing files and registry entries.  After doing some research I think it may have occurred because I previously had Visual Studio 2005 installed and uninstalled it before uninstalling the stand-alone version of Crystal.   I see other posts with links to a document on how to do a manual uninstall but that link is no longer valid.  Does anyone know where I can find that document?


ODBC and ADO connections not working from Database Expert

$
0
0

I am using 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 (version 12.1.0.12 - 64-bit) installed.  However, I can't seem to get ODBC or ADO connectivity to work from any of my Crystal Reports.  However my ODBC DSN connection using the Oracle 12c driver tests successfully from the ODBC Data Source Administrator (64-bit).  And my ASP.NET application that runs on the same server has no problem connecting using the Oracle 12c ADO.NET drivers.

 

In the VS 2013 IDE, when editing my report and selecting ODBC (RDO) in Database Expert, I see my user DSN (but not my system DSN) that was created under the ODBC Data Source Administrator (64-bit).  However, when I select the DSN and click Next and then enter the password and click Finish, I get the following error message: Logon failed. Details: IM014:[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application.  (I use the same password to test the connection under the ODBC Data Source Administrator - and that works!)

 

Also in the VS 2013 IDE, when editing my report and selecting OLE DB (ADO) in Database Expert, I don't see the Oracle 12 driver showing up at all!  (Again, my ASP.NET app runs on the same server and ADO.NET connectivity using the Oracle driver works fine!)

 

Are these not working under the VS/Crystal IDE because the Oracle 12c driver is 64-bit - or is something else going on?  Does the Database Expert require a 32-bit ODBC DSN and ADO.NET driver?

 

Thanks in advance!

How to print reports to the chosen printer using .NET, SAP Crystal reports Engine 64 bit on a 64 bit server (Win2k8)?

$
0
0

We have a windows application that is built on .NET remoting. It’s a 32 bit application built using .NET Framework 2.0. We are using SAP Crystal reports run time engine for .NET Framework 4 (32-bit – Version 13.0.3) for reports functionality. There is a printing functionality also which prints the respective report to the chosen printer by the user during the batch run . This entire setup works fine on a Windows server 2003 server. Now we are trying to migrate the application to Windows server 2008 , the printing is not working correctly. It is always printing the reports to the default printer on the Windows server 2008 machine instead of printing it to the chosen printer.

CrystalDecisions.CrystalReports.Engine, CrystalDecisions.ReportSource & CrystalDecisions.Shared are the DLL’s that are referenced from

C:\Program Files\sap businessobjects\crystal reports for .net framework 4.0\common\sap businessobjects enterprise xi 4.0\win32_x86

We converted the application to 64 bit version. On the Windows server 2008 even though we installed , SAP Crystal reports run time engine for .NET Framework 4 (64-bit – Version 13.0.3), the printing is not working correctly (Printing always to the default printer). Also couldn’t find the above DLL’s in the 64 bit installation folder.

C:\Program Files\sap businessobjects\crystal reports for .net framework 4.0\common\sap businessobjects enterprise xi 4.0\win64_x64

I couldn’t find any issue with code, I think it’s definitely a compatibility problem. I am stuck with this issue for more than a month. Please help.

How to resolve allInOne.js errors?

$
0
0

We're upgrading to CrystalReports 13 and .Net 4.5 in Visual Studio 2013 using SP9. Most of it was a breeze. The only thing that doesn't work is the integrated view in our website.

 

The knowlegde base article: Redirecting...

and the thread Javascript error in allInOne.js do not resolve the issue we're having.

 

The issue is that that the viewer is not visible. This is caused by errors (below the errors reported in Chrome, in IE it is something similar).

What am I missing?

 

The crystalreportviewers13 is available in C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13

However, while debugging using IIS expres (in VS2013) the only way to get past the famous BOBJ issue is to copy the directory locally. Any tips?

 

Thanks.

 

Best regards,

 

Michiel

 

 

  1. Uncaught TypeError: undefined is not a function allInOne.js:10
    1. TreeWidget_getHTMLallInOne.js:10
    2. bobj.crv.ToolPanel.getHTMLallInOne.js:12
    3. bobj.crv.LeftPanel.getHTMLallInOne.js:12
    4. bobj.crv.Viewer.getHTMLallInOne.js:12
    5. Widget_writeallInOne.js:10
    6. bobj.crv.writeWidgetcrv.js:212
    7. (anonymous function)ReportView.aspx:109

 

 

  1. Uncaught TypeError: Cannot read property 'style' of null allInOne.js:10
    1. Widget_initallInOne.js:10
    2. bobj.crv.Viewer.initallInOne.js:12
    3. bobj.crv.ViewerListenerallInOne.js:12
    4. (anonymous function)

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--

Not able to view CrystalReportViewer in Azure Application.

$
0
0

Hi All,

 

We have an application which was developed in VS 2005 with .Net framework 2.0 and crystal report version 10.

 

We have migrated this application to azure using VS 2013 with .Net framework 4.5 and crystal report version 13.2.

 

We have included the Crystal report msi in the package for deploying it on azure.

 

We have used the CrystalReportViewer on one of the page in our application to view the reports but we are not able to view it.

 

Thanks

Viewing all 3636 articles
Browse latest View live


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