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

Missing dlls?

$
0
0

I'm new on a project with a company that has Crystal Reports and had it for years, and also works in Dotnet, using Visual Studio 2005.

I've got Crystal Reports on my machine, but when I go into Visual Studio, I have all but 2 of the Crystal-related references.  I do
not have these 2 dlls.  CrystalDecisions.Enterprise.Framework and
CrystalDecisions.Enterprise.InfoStore


Load Report Failed VS2012

$
0
0

I am getting Load Report Failed when I try to open a particular CR report.

 

I have 6 reports and 5 of them work but I have one of them that fails every time.

I can't even drag and drop into VS2012 or VS2010. I can only open it in VS2008.

 

1st message when drag&drop:

VS2012 CR fail drag & drop 1.PNG

2nd message when drag&drop:

VS2012 CR fail drag & drop 2.PNG

 

diff rpt file, had no issues when drag&drop:

VS2012 CR success drag & drop 1.PNG

 

I had SP5 installed, then saw this thread http://scn.sap.com/message/14194418#14194418

so I installed SP6 (exe) and I'm still having the same issue.

 

 

Thanks,

James

Upgrading from Windows Server 2003 32-bit to 2008 R2 64-bit

$
0
0

Hi, I'm upgrading my server from Windows 2003 32-bit to Windows 2008 R2 64-bit

 

I have an ASP.NET application with Crystal Reports. The server has CRRedist2008_x86 installed. The application works fine on the 2003 server but I'm getting this error on the 2008 server. "is not a valid Win32 application. (Exception from HRESULT: 0x800700C1) "

 

I also tried CRRedist2008_x64 on the new server but the same error happens.

 

The application is a Visual Studio 2008 ASP.NET website

 

I have successfully moved 2 applications to the new server that do not have any Crystal dll's in the bin folder.

 

I have 2 other applications with Crystal dll's in the bin folder that work fine on the 2003 server.  But on the 2008 server the site will not even come up.

Server Error in '/reports' Application.

is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[BadImageFormatException:  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)]

System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint,

StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0

System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark,

Boolean forIntrospection) +416 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&

stackMark, Boolean forIntrospection) +166 System.Reflection.Assembly.Load(String assemblyString) +35

System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190 

 

[ConfigurationErrorsException:  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)]

System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11241896

System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +388

System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +232

System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +48

System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +210

System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +76

System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +283

System.Web.Compilation.BuildManager.CompileGlobalAsax() +50 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +676

 

[HttpException (0x80004005):  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)]

System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +76

System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +1012

System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory

configMapPathFactory, HostingEnvironmentParameters hostingParameters) +1025 

 

[HttpException (0x80004005):  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)]

System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11335894

System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88

System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4355316

 

Has anyone run into and resolved this?

 

Thanks for your help.

Simple CR2008 SP6 Report is not visible on web page (empty page)

$
0
0

I have installed Crystal Reports 2008 SP6 on a Windows Server 2008 R2.  I created a simple report to verify that the Crystal Reports Viewer is working properly.  I have verified that the report works via the Crystal Reports designer.  I have verified that the report is getting data from the database.  However, when I view the report via IE9 or IE10 from the ASP.NET 4.0 website, the web page the report should appear on is blank.  When I right-click on the browser and request "View Source", the report is there with all the data.  How do I make the page visible?

 

From other posts, I think it’s a permission issue on the CrystalReportsViewer12 virtual folder, but not sure how to resolve.

 

Our environment is:   

  • Windows Server 2008 R2
  • ASP.NET Website (using .Net 4.0 framework)
  • Crystal Reports 2008 SP6 (currently installed on server)

 

Verified that the following are working:   

  • Can view test report in Crystal Report 2008 application
  • Report is retrieving data

 

I have reviewed the following SAP documents, in additions to
others:

http://scn.sap.com/docs/DOC-27917

http://scn.sap.com/docs/DOC-21522

http://scn.sap.com/docs/DOC-21524

Reviewed numerous posting on googled topic “crystal reports 2008 blank page”

Most postings are related to blank lines, sections and first page.

 

Any information to resolve this issue is greatly appreciated.

 

TIA, Gary.

How to change the text direction in chart series text?( By default it is horizontal)

$
0
0

chart.png

In this chart I want to rotate the series text (student1 & student2 )  to vertically. Is there any solution for this.

 

 

Thanks,

Deepan

.NET - Multiple datasources on ReportDocument

$
0
0

In my .NET program I'm trying to setup ReportDocument to have two datasource (XML and MDB):

I'm looping through the ReportDocument.Database.Tables and based on the table name I either setup the XML or MDB datasource on the Table's TableLogOnInfo.

If I only use one datasource at a time everything works ok so I think I'm doing it correctly. But once I try to use both I get "Failed to load database information. Error in File..." in my report viewer.

If I play around with the two datasources in Crystal Reports designer everything works ok.

Any suggestions? Is it because the .NET libraries can't work with multiple drivers together?

Thanks!

 

Using version 12.0.2000.0

The request could not be submitted for background processing.

$
0
0

I found that for a report to display a picture (from the database), it must have the following characteristics:

 

-Allowed by CR-format (jpg, etc.)

-Size <200Kb

 

If the imagedoes not meetthose specifications,gives the error: The request could not be submitted for background processing.

 

Furthermore there are image resolutions does not allow, for example 673x369. Regarding this last point, what resolutions are not allowed?

 

Thanks.

CR login failure on Production System

$
0
0

Hi.

 

 

I'm facing a strange behavior.

My Dev system is a x64 Win 7, with VS 2010, CR for VS 13.0.4.750 and runtime x64 13.0.4.750.

I setup  some old RPTs to my production DB that is a MSSQL 2008 R2 on a Win 2008 R2 x64.

All works pretty fine when running locally.

After deploy my web application to Production, all reports throws the same error:

Falha ao abrir a conexão.

Detalhes:  [Código do Fornecedor de Banco de Dados: 18456 ]Falha ao abrir a conexão.

Detalhes:  [Código do Fornecedor de Banco de Dados: 4060 ]Falha ao abrir a conexão.

Report {2014DF7F-C0F7-4FB1-8B55-05FC4E21FB4F}.rpt

Detalhes:  [Código do Fornecedor de Banco de Dados: 18456 ]

 

 

Also, I tested the same scenario in another server that is a win 2003 r2 x86 running a MSSQL 2008 R2 and everything works.

The connection is setting up by c# code both to main RPT and SubReport.

Despite of that, I manually setup the connection by hand to de production server.

 

 

Help!

Thanks for all in advance.


Crystal Report run time error:

$
0
0

HELP: I'm using VB.NET 2005 to open Crystal Report at run time.

I am receiving the following errors,

when I try to open Crystal Report at run time.

 

Crystal Report Windows Form Viewer
   Failed to open the connection,                                                                                              

   Details: [Database Vendor Code: 12154]                                                                                        

   Failed to open the connection.                                                                                 

  CrystalReport1 {12C114E9-EC2A-46C3-2D1A78C4BC48].rpt                                                  

  Details: [Database Vendor Code: 12154       

                                                                                  
Here is my code:                                                                                                                                       

Sub OpenCrystalReport()
        Imports CrystalDecisions.Shared
        Imports CrystalDecisions.CrystalReports.Engine
        Imports CrystalDecisions.CrystalReports.Engine.ReportClass
        Imports CrystalDecisions.CrystalReports.EPFPageObjectFactory
  

   Dim gsql as string=nothing                                                

   Dim gsRptPath as string = "C:\CrystalReport1.rpt"

   Dim cr As New ReportDocument
   Dim ExportOpts As New CrystalDecisions.Shared.ExportOptions
   Dim DiskOpts As New CrystalDecisions.Shared.DiskFileDestinationOptions
  

    gSql = "{CASECLM.Case_NUM}>0 AND {CASECLM.Case_NUM}<1000000"
 
    With cr
          .Load(gsRptPath)
          .SummaryInfo.ReportTitle = gsReportTitle.ToString
          .SummaryInfo.ReportSubject = gsReportSubject
          .SummaryInfo.ReportComments = gsReportComment
          For Each myTable In .Database.Tables
             myLogin = myTable.LogOnInfo
             myLogin.ConnectionInfo.ServerName = gOrDaSur     '"DSN or Server Name"
             myLogin.ConnectionInfo.DatabaseName = ""               'Oracle empty string.
             myLogin.ConnectionInfo.UserID = gOrUsrId                '"Your User ID"
             myLogin.ConnectionInfo.Password = gOrPswd          '"Your Password"
             myTable.ApplyLogOnInfo(myLogin)
             myLogin.ReportName = gsRptPath  & gsReportName & ".rpt"
         Next
    End With      

                                                       

    With crRptVwr  

            .SelectionFormula = gSql 

            .ReportSource = cr                                                                                                        

            .RefreshReport()                                                    

            .Zoom(72%)                                                                      

     End With 
End Sub

 

 

 

 

 

 

Missing features: Print Progress, Cancel button

$
0
0

We are migrating our applications from using CRPE and the VCL to the .NET API. All is going well, except for a couple of missing features.

 

When an app prints to the printer via CRPE, a Print Progress dialog appears and the user can cancel printing. And when an app creates a print window, the window has a Cancel button on the toolbar.

 

Both of these features are absent from the .NET API. In addition, it doesn't appear that there is a way for the app to stop report processing (for print or preview) programmatically. Although ReportDocument fires certain events during processing, there is no provision (as far as I can see) for the app to respond to one of these events in such a way as to stop processing normally. The app can throw an exception in the event handler, and this will stop processing, but will also cause an error message dialog to appear.

 

Our use of the .NET API is entirely in-process, so in our scenario there is no issue of coordinating with a remote report processing server.

 

Our apps can create gigantic reports and our users have often benefited from the ability to cancel a big job started in error.

 

Can you please feed back to Product Management that the ability to cancel a print or preview job is very desirable?

 

It should certainly be possible to restore the cancel button to the preview control. I can understand the reasons why the Print Progress dialog is not shown: the print engine itself does not want to be in the business of UI. However, I think the engine could fire events during processing that allow the app to signal cancellation, and it would be up to the app to manage the UI for this.

 

To other 3rd-party developers: if you agree that these features are very important, please add a brief comment to this discussion.

 

Thanks!

- rick cameron

Softrak

Upgrading ASP.NET website from Crystal Reports 9 to 2011

$
0
0

Hi,

 

I currently have a web server that uses CRRedist2008_x86 to deliver Crystal Reports 9 to clients.  I'm planning to upgrade the rpt's from version 9 to 2011 and copying the upgraded rpt's to the web server.  Will the CRRedist2008_x86 runtime still work for the 2011 reports?  If not, is there a link to the new runtime I will need?

 

Thanks!

Crystal Reports ASP.Net Not Move on Next Page

$
0
0

Dear All,

 

I am using Visual Studio 2010 and its built-in Crystal Reports in ASP .Net.

On Crystal Report I have more then 1 pages and I am on first page when I click on "Go to Next Page", progress bar start and continuous start not move on the next page but in Page Navigation text box shows 1 of 2. My all code is in Page_Init() already.

 

Please anyone can tell me.... How can I get rid of this problem??????

 

Thanks & Regards;

CrystalReportViewer shows windows authentication dialog when remote access

$
0
0

My App running on WIndows server 2008. In LAN (in browser writing servername/applicaiton Name from other maching) I can see the report properly but when I try to see the page remotely (writing domain name in browser), I am prompted to enter my Windows credentials. When I enter my credentials  it shows nothing. How to solve this problem?

Programatically Passing null value to Crystal Report Viewer

$
0
0

Hi guys,

 

I have developed an application in VS 2010 that uses the Crystal Report Viewer. I programatically passing values to the reports. Many of the reports have optional prompts for their parameters. I would like to be able to run the report and send a blank or null value to the parameters. If I don't pass parameters the viewer prompts the user to enter them, if I pass null I get an exception that the types are not compatible. Can anyone help? Here is a sample code:

 

                                crParameterDiscreteValue.Value = null;

                                crParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFields;

                                crParameterFieldDefinition = crParameterFieldDefinitions["@BPGroup"];

                                crParameterValues = crParameterFieldDefinition.CurrentValues;

                                crParameterValues.Add(crParameterDiscreteValue);

                                crParameterFieldDefinition.ApplyCurrentValues(crParameterValues);

 

 

thanks,

 

Costas

Cystal Reports 2011 does not install .net runtime dlls(CrystalDecisions.CrystalReports.Engine.dll) for crystal automation to execute on deployed nodes

$
0
0

Hi,

We are using Crystal reports in our software to generate reports programatically via .net Crystal automation references. We are adding support to latest crystal version ( i.e. "Crystal reports 2011 SP4 Full Build + CR 2011 SP6 Update" ) in our product, we are using VS2012 and installed "CRforVS_13_0_6.exe" to fully integrate Crystal reports with VS2012. Things compile and work fine on Development nodes; But when deployed on Test nodes where only Crystal reports software is installed (i.e. CR2011 SP4 full build + CR 2011 SP6 update) ,report generation fails. The supporting .net dlls for crystal automation to work is not present on the test node even after crystal software is installed. Note: This was NOT the case/issue in Cystal 2008.

 

We are aware that "CR 2011 does not include any softwareDeveloper kits(SDK)" but without crystal .net automation dll's; our software fails and for it to work we are forced to install CRforVS_redist_install_32bit_13_0_6.

 

Now, we have the overhead of either informing our customers to install Crystal 2011 software  + Crystal runtime OR we need to include the Crystal merge modules as part of our software installation. Question: Are above 2; the only options? Or is there any other way to get crystal .net automation dlls with crystal software?


ReportDocument.PrintToPrinter print multiple copies not working

$
0
0

I would try to print multiple copies for my report(by crystal report), but only can get one copy to be print out. Following is my code:

BTW, the app is winform app. and I am using CR XI.

about reportDoc.PrintToPrinter(2, false, 0, 0), I have tried to set the parameter (collated ) to both true and false, but nothing works.

Required Runtime Files for Crystal Reports 2011

$
0
0

Hello,

We are trying to evaluate CR2011 with our .NET projects before we buy it.

We have sucessfully changed our .NET projects to use CR2011 assemblies (Version 10.5.3700.0)

Everything works fine. Now we need to build an installation package. It is not possible for us to install CR Runtime separately. All files must be installed with our application as one package.

Just for info: we create Microsoft-Manifest files for each file, which has to be registered in the Windows registry. All our projects have been compiled as x86.

We have tried to place serveral assemblies and unmanaged dlls, which we have found on the development comptuter.

Now we are getting the known error message (see screeenshot)

 

error.png

 

Which files (.NET Assemblies and umnaged Dlls) must be included in our installation package to get the Crystal Reports working?


Best Regards,

Igor
 
 
 
 
 
 
 
 
 
 





Intermittent error: Missing Parameter Values, while exporting to PDF

$
0
0

Hi,

 

I have an urgent problem.  In a system that has been in production for more than a year an error has been happening intermittently during the last few weeks.  The application code has not changed.  When this error occurs all reports fail.  It is necessary to restart the IIS each time the error happens.  After restarting the IIS the same reports that were failing start to work again.  This leads me to think it is a problem independent of the application. 

 

The error occurs exactly in the line that export to PDF: crReport.ExportToDisk(ExportFormatType.PortableDocFormat, sName).  The error message is: "Missing parameter values".

 

The application is made in Visual Studio 2005, which uses Crystal Reports for Visual Studio 2005.  However in the server is installed Crystal Reports XI.  Product version: 11.5.8.826. 

 

I have found in the web that sometimes this error happens because the report parameters are set before setting the data source, but I've checked and the data source is set before setting the parameters.  Also this would not explain why the same reports that were failing work after restarting the IIS, with exactly the same parameters. 

 

This system has a heavy use from the web.  I tried changing the registry value PrintJobLimit.  Yesterday it was set to 5000 and the error happened this morning again.  Today I changed it to -1, I don't know if this will work.  I think that if the cause of the problem were this registry entry then the error message would be different. 

 

Could this be a bug in Crystal Reports?  What could be done?

Connecting to Access File

$
0
0

I am using Visual Studio 2012 and the Crystal Reports that goes with it. I have an Access file that I am trying to report from. I have been looking through other posts and know that the .accdb file extension isn't recogonized. I have used my ODBC driver to connect to the Access file. When I try to connect to that ODBC driver through Crystal Reports I keep getting errors. If I try to connect using OLE DB I get a memory full error. If I try to connect using ODBC I get HY001: System resource exceeded. I can't seem to figure out what I am doing wrong. Please help.

Load Report failed: Invalid Field Name

$
0
0

Using SAP Crystal Reports runtime for .NET Framework 13.0.6.1027.

 

When we attempt to open a report through the API, we get the following stack trace:

 

CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException:

Invalid field name.

test {F5113347-127C-404A-8BDC-F80657C83034}.rpt

 

I have removed all the database fields, formulas, etc from the report so that it is just a shell at this point, and we still get this error. This report would load fine using the legacy RDC API, but as soon as we switched to .NET, the "Invalid Field Name" error was thrown.

 

It is not a security/permissions issue. We are able to open other reports using the .NET interface properly. Certain reports only are causing this error. I attached the report file (please rename to .rpt as the form would not allow me to attach it otherwise).

 

Any assistance would be greatly appreciated as we have spent a considerable amount of time trying to debug this issue, without success.

Viewing all 2556 articles
Browse latest View live


Latest Images

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