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

Crystal Report does not move to next page

$
0
0

hi

i have used crystal report 13.0 to make report

when i load data on button click its working fine

but when i click on nextbutton then it shows me error


Problem in displaying Arabic text while exporting Crystal Report to PDF

$
0
0

Hi,

  I am facing a problem when I am trying to export the Crystal report with Arabic text to PDF. The arabic characters are appearing as "?"

The PDF is working fine for English characters.

 

Please help I have been struggling with this issue for quite a long time.

 

Note:- We are using Crystal report 8.0 version

Error Previewing report after upgrading to SP6 (from v12).

$
0
0

Just upgraded references in my VB.NET 2010 program from Crystal Reports Developer for VS v12 to v13 (SP6).

 

When I preview a report, I get the following error:

Preview_Error.jpg

 

This error pops up just after ReportViewer.ReportSource = reportdocument in the ReportViewer_Load subroutine.

 

It appears that this statement (above) is not causing the error.  It gets through that fine (as I have stepped through it in debug mode), but when it is existing this subroutine (Load), it errors.

 

The PrintToPrinter method works, but preview is not working.

 

Any ideas would be appreciated?

 

Thank you

SP6 and database provider compatibility

$
0
0

Can you please confirm:

 

A report is created in Crystal Reports 2008 designer with the SQL Server Native Client 11.0 provider for OLE DB.

 

Is the SQL Server Native Client 11.0 for OLE DB backwards compatible to connect to a SQL Server 2005 database using the newest SAP Crystal Reports, developer version for Visual Studio (SP6) in order to generate (print and preview) the above report?

After SAP upgrdation from crystal report Xi to crystal 2010. Not able to connect to dll through dot net 4.0 application

$
0
0

After SAP upgrdation from crystal report Xi to crystal 2010. Not able to connect to dll through dot net 4.0 application

Getting below error

 

USER NAME - administrator

Password =""

apsserver =
Reportservername

authmethod
=
ENTERPRISE

 

When application is trying to create the instance we are getting
COM exception.  We tried to register the dll using regsvr32.exe   but no
success.

Please suggest are we missing
some supporting dll . Please help us approach to configure the SAP tool dot net
paltform

 

  Exception :

                            

Please guide

While exporting from Cyrstal Report to CSV, data is showing null

$
0
0

Hi All,

 

 

My application is using crystal report 10.

 

It first runs crystal report and records are fetched successfully. And then records are exported to following 2 formats.

 

  1. Excel Format
  2. CSV Format

 

 

Report is exported to excel successfully, but when exported to csv then have some problem. For Instance if report is having 30,000 records, then after export excel sheet shows 30,000 records but csv file shows 26,000 records and rest of the records are not shown. and in csv on line no 26,001 half recrod is exported and for rest of half it shows null.

 

 

Its very urgent and any help will be highly appreciated.

 

Regards,

SA

Error in CrystalReport 2011 in windows 7 64-bit

$
0
0

Hi

 

    I am developing the ERP in .Net 2005 and now i need to  migrate my project to .Net 2012

 

    We were using crystal report 1.0 from the begining and now i  downloaded crystal report standard edition 2011 and installed in the

    project in that i am unable to load the data to CR2011 it is giving  and error   "Failed to load database information" and was suffering

    from 2 days by this issue and i changed CRR runtime 32-bit and also 64-bit.

 

   I was using

 

    OS                :    Windows 8 64-bit and now changed to Windows 7 64-bit (not working)

    DataBase    :    Oracle 11g R2 client(32,64-bit) and changed to 10g r2 client 32-bit

     

   Can any one please help me out of this !!!!!!

Problems with CrystalReportViewer after SP5!

$
0
0

Hello members!

 

After having Problems with Crystal Reports we upgraded the pc of a customer and my developer machine (VS2010) to Service pack5.

 

The application is divided into different regions (ribbon bar, mainregion, state bar, ..) and the content is added to the region via Prism mechanisms. The report viewer is loaded into the main region. The view in the main region treats the different views like a register.
When I open a second view that is loaded into the main region, the view with the CRViewer gets deactivated and the other form is active. When I switch back to the view on which the CRViewer is placed, the view stays blank.

 

Closing and reopening of the View with the CRViewer makes the CRViewer visible again. Switching between the different views makes the CRViewer blank.

 

I checked if it is something in the code and copied the same assemblies to a computer without any Crystal report service pack (version 13.0.0.99). Started the program, open different views and the CRViewer is visible evertime.

 

On my dev machine (SP5 installed) i tried to create a new CRViewer when the view is activated but this approach was without any luck. The view stays blank.

 

Did someone of you had any similar problems?

Thanks for your help.

Alex


Deploying CR for VS 2010 with Installshield 2010

$
0
0

I am trying to deploy a Windows desktop application that uses CR for VS 2010 13.05.  I used the prerequisite editor, and added the .msi file that I downloaded from this site, and set the "Application to run" to the name of the .msi file. When I built the installation, I got the warning “ISDEV : warning -6248: Could not find dependent file crpe32.dll, or one of its dependencies of component Crystal_Reports_Hello.exe” I have crpe32.dll, but I do not know what to do with it in Installshield. I tried to add it to the .prq file that I created, but got the same warning.

 

How can I deploy this application with Installshield?

 

Thanks   

CR .NET API: Attempt to change property of group chart fails

$
0
0

I am using the CR .NET RAS API to work with chart objects in a report.

 

If the chart is in the Report Footer area I can successfully change its type and other properties with code like this:

 

   ChartObject newChartObject = (ChartObject)chartObject.Clone();

   newChartObject.ChartStyle.Type = (CrChartStyleTypeEnum)value;

 

   reportDefController.ReportObjectController.Modify(chartObject, newChartObject);

 

However, if the chart is in a Group Footer area I get an exception when I call Modify:

 

COMException: The summary data field of group chart does not exist.

 

In fact the summary field that the chart is based on is present as a field object in that same section.

 

Any insights?

 

- rick

Crystal Reports ClickOnce install fails after upgrade to run time 13.0.2

$
0
0

I realize this is very similar to two other posts but the ClickOnce failure was not addresses in the two threads I found.

 

Visual Studio 2010 V 10.0.40219.1 SP1Rel

.NET Framework V 4.0.30319 SP1Rel

Crystal Reports for .NET Framework 4.0 BuildVersion=13.0.2.469.Cortez_CR4VS (from ProductId.txt in the download folder)

 

Application was original developed using CR BuildVersion=13.0.1.220.Cortez_CR4VS

 

So since I upgraded this week, if a user clicks the Launch link on the deployment web page the application loads the appl;ication update and starts. Does not even check with Crystal Reports but everything seems to work.

 

The new version of the Crystal Reports runtime tries to install for users I have that enjoy clicking the run button. The install fails and points at a log file, the key part of which is

 

Installing using command 'C:\WINDOWS\system32\msiexec.exe' and parameters ' -I "C:\DOCUME1\clyle\LOCALS1\Temp\VSDC8.tmp\Crystal Reports for .NET Framework 4.0\CRRuntime_32bit_13_0_2.msi" -q '

Process exited with code 1603

Status of package 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' after install is 'InstallFailed'

 

Uninstalling the previous version manually alleviates the failure as does manually running the msi on the target machine. But that kind of defeats the purpose of ClickOnce. Looking at product.xml that accompanies the runtime download I see it tests for the 13.0.2 version and bypasses the install if it finds it but it does not check for earlier versions.

 

Another thread I read indicated changing the switches in the install command would work but I am not clear on how to do that from ClickOnce, I cannot locate where the command is being given. Is there a way to get it to test for previous versions and delete them or force an overwrite using the ClickOnce?

error 1935.. during installing SAP crystal report.

$
0
0

 

I using VS 2010. but when i add a crystal report to my WPF Application, i get a page with message

"Crystal Reports for Visual Studio 2010 is a free download for adding presentation quality reports to WPF, WinForms, and ASP.Net Web Sites.

Major new features include:

64-bit runtime WPF viewer Enhanced embedded report designer Supportfor exporting to XLSX

Learn more and download Crystal Reports for Visual Studio 2010 today

Then i am trying to download and install this SAP Crystal Report version on my PC. But this error appear:


tidaaaakkkkkk.png

 

Can anyone help me?

 

 

Thanks.

Crystal Reports for VS can't use .Net Objects for a dataset in designer

$
0
0

In Crystal Reports for VS’s designer I couldn’t successfully
use “.Net Object” under “Project Data” for any new reports.  I found I had to create a DataSet object manually
that mimics my classes public properties and then load that using “ADO.NET DataSets”
option.  Then through code I was able to
use my classes GetData method to populate the report at run-rime like normal.  In the past I was able to use “.Net Object” to
get the classes public properties to use at design time.

 

 

I didn’t like creating a DataSet to mimic my code for two
reasons.  One if I had to change my class
I had to also update DataSet to refresh the definition in my report.  Two it just felt like I was coding twice.  Because of this I dug deeper.  I then created a method in my class to return
my List as a DataSet.  This was easy
enough after finding a generic List to DataSet conversion class to use.  Then through using “Create New Connection”s “ADO.NET
(XML)”, I was able to use “Make New Connection” to link to my compiled assembly
(the dll in bin), choose the class and set the “Use DataSet from Class” option
and choose my method which returns a DataSet.
Everything was fine with this solution except, when I went to compile my
project.  The dll was locked and compilation
failed when trying to copy the dll.  It
seems the designer didn’t release the dll when it read the DataSet.  I found if I closed VS and restarted,
everything was working fine.

 

So I have one question, is “.Net Object” not supported anymore?  I have a few reports that were created using
this from years ago, and they run fine and I can change them in the designer.  But when I tried to “Verify Database”,  it threw up a message stating  the table couldn’t be found and asked if I
wanted to remove it.  When I said yes it removed
the table and all the fields, which in affect erased the report.

Replace Connection on Subreports

$
0
0

I am using The Replace Connection code from this document (

http://scn.sap.com/community/crystal-reports-for-visual-studio/blog/2011/09/02/when-to-use-the-replace-connection-method-using-the-crystal-reports-or-inproc-ras-sdk-for-net ), but I have found it does not change the Provider for a subreport.  And, if I try to use this same code for a subreport, the following exception is generated when I try to use the ReportClientDocument.DatabaseController.SetTableLocation forthe subreport:

"Not supported within subreports."

 

I can use the DataSourceConnections(0).SetConnection which updates ther server, database, user id, password, but I need to update the provider so it is the same as the main report. 

 

How do you do this?

Crystal Report Viewer displayed wrong with IE 9 in compatibility mode when parent had text-align set

$
0
0

I found while doing compatibility testing, with IE 9 in compatibility mode (which is the default behavior for intranet sites), that the Crystal Report viewer displayed wrong when the parent element had any text-align set other than left.  This would be true if the setting is inherited too.  What I observed is the horizontal start position of the report in the control was starting at the text-align setting.  Meaning that if text-align was left, the report started at the left, showing the whole report; if text-align was center, the report would start at the center showing only left half of the report; and if text-align was right, the report would start on the right and wouldn’t be visible at all.

The workaround is to wrap the viewer in a div and add to its style text-align:left.  Hope this helps others.

This code will not show the report (it’s off the viewer rendering space):

                <div style="text-align:right">

                    <CR:CrystalReportViewer

                        ID="myReport"

                        runat="server"

                        AutoDataBind="true"

                        HasCrystalLogo="False"

                        ToolPanelView="None"

                        ToolPanelWidth="100px"

                        HyperlinkTarget="_Blank"

                        EnableDatabaseLogonPrompt="False"

                        EnableParameterPrompt="False"

                        HasToggleGroupTreeButton="False"

                        HasToggleParameterPanelButton="False" />

                </div>

This code will show the report:

                <div style="text-align:left">

                    <CR:CrystalReportViewer

                        ID="myReport"

                        runat="server"

                        AutoDataBind="true"

                        HasCrystalLogo="False"

                        ToolPanelView="None"

                        ToolPanelWidth="100px"

                        HyperlinkTarget="_Blank"

                        EnableDatabaseLogonPrompt="False"

                        EnableParameterPrompt="False"

                        HasToggleGroupTreeButton="False"

                        HasToggleParameterPanelButton="False" />

                </div>


Crystal Reports 11_5_NET_2005.msi install - not seeing file version updated

$
0
0

I've recently installed Crystal Reports XI R2A SP6 but only seeing a few files updated from current SP4 FilerVersion=11.5.9712.1838 to SP6 FileVersion=11,5,12,1838 .  I'm using the chart below as reference.  Is there something else we should be installing to have all files reflect SP6 version of 11.5.12.1838? Install went on w/o errors, yet not seeing all files refliecting SP6 versions of 11.5.12.1838.  Please advise.

 

 

  VS2005     CRXI R2 (11.5.x)         RTM        11.5.3700.0       11.5.9500.313
       VS2005     CRXI R2 (11.5.x)         SP1        11.5.3700.0       11.5.3.417
       VS2005     CRXI R2 (11.5.x)        SP2        11.5.3700.0       11.5.9508.826
       VS2005     CRXI R2 (11.5.x)         SP3        11.5.3700.0       11.5.9509.1076
       VS2005     CRXI R2 (11.5.x)        SP4        11.5.3700.0       11.5.9510.1263
       VS2005     CRXI R2 (11.5.x)        SP5        11.5.3700.0       11.5.11.1470
       VS2005     CRXI R2 (11.5.x)        SP6        11.5.3700.0       11.5.12.1838

Backward compatibility problem between Crystal 9 & 2011

$
0
0

I've copied over 200 Crystal 9 reports from a server with an ASP.NET application using CRRedist2008_x86 to a new server that is using CRRuntime_32bit_13_0_6.

 

All of the Crystal 9 reports except 1 open and render fine on the new server.  The error returned is:

 

System.Runtime.InteropServices.COMException (0x80042009): The browse field type is not compatible with the parameter field type.

  at Microsoft.VisualBasic.CompilerServices.Symbols.Container.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags)

  at Microsoft.VisualBasic.CompilerServices.NewLateBinding.CallMethod(Container BaseReference, String MethodName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, BindingFlags InvocationFlags, Boolean ReportErrors, ResolutionFailure& Failure)

  at Microsoft.VisualBasic.CompilerServices.NewLateBinding.ObjectLateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)

  at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)

  at reports.DisplayPage.AddParameter(String NameOfParameter, String ValueOfParameter)

 

I opened this report in 2011 and it previews fine in Crystal.  I saved it to see if saving the Crystal 9 report in 2011 would fix the problem.  The report is still giving the same error.

 

Is there some kind of backward compatibility issue that affects only this one report?

Crystal Report Viewer's Navigate event on code-behind triggers body.onunload

$
0
0

I found I needed to know the current page number on postback so I can restore the report to that page on a refresh. To get the page number, I added a handler to the CR Viewer’s Navigate event on the code behind to store the current page number (see code below). The issue I found is that the body.onunload event is now getting triggered. This is an issue because I keep the ReportDocument in session and remove it through in a web method call from the body.onunload. So now after adding the handler, my program unloads the document and has to reload it including pulling the data again from the db every time I press a navigate button. If I don’t have the handler on the page, the body.onunload doesn’t get triggered when I press the navigate buttons.


Protected Sub CRVs_Navigate(ByVal source As Object, ByVal e As CrystalDecisions.Web.NavigateEventArgs) Handles CRV.Navigate
     Session(“ReportViewer_PageNumber”) = e.NewPageNumber
End Sub


Is there another way to get the page number without using this event?

Where does CR for VS 2010 look for UFLs?

$
0
0

Hi

 

We are upgrading our apps from CR 8.5 to CR for VS 2010. We have a couple of ancient UFLs written in C++ that are currently being installed in c:\windows\crystal. Much to my surprise, CR for VS 2010 finds them there and is able to use them.

 

We're modifying our install to accommodate the new version of CR and we're considering putting the UFLs somewhere other than c:\windows\crystal to avoid security issues.

 

In another thread it was suggested that a UFL be put in C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86 which is where CR for VS 2010 appears to put them.

 

Are there just the two locations that CR looks for a UFL - <windows>\crystal and C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86? Are there any others?

 

For the setup program, what's a reliable way to determine the actual location of the standard CR UFL directory? (For example, on a 32-bit PC it will be under c:\Program Files)

 

Thanks

 

- rick

I am deploying a report to a client using Visual Studio 2012. I got error message.

$
0
0

Unable to install or run the application.  The application requires that assembly CrystalDecisions.ReportAppServer.CommonObjectModel Version 13.0.2000.0 be installed in the Global Assembly Cache (GAC) first.  Please Contact your System Administrator.

 

I seems that I need to install some merge modules, Where are located? What are their names? and How?

I have seen this answer responded for other older versions of visual studio.

Viewing all 3636 articles
Browse latest View live


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