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

crystal report 2011 viewer crash

$
0
0

Hi there,

 

We are developing an application which generates reports in .rpt format. When we open the various types of report using Crystal Report Viewer 2011 all of them work fine except for one, which causes Crystal Report Viewer to crash ( - [Internal Error DataViewL573] ).

 

The application is built with Visual Studio 2005. The reports are generated with the Crystal Decisions plugin. The "bad" report can be viewed in Visual Studio just fine.

 

I have two reports; One that loads fine in the Viewer (GOOD), and one that causes it to crash (BAD). I have attached them but I had to change the file extension to .txt to get around the filter. If anyone has time to look at these please remember to change the file extension back to .rpt before you open them.

 

Thanks in advance,

Adam.


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

 

 

 

 

 

 

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.

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.

FxCop does not let me drive because of the missing KeycodeDecoder.dll

$
0
0

Hello,

 

I'm using VSCR2010 SP2. As part of our software department process I run FxCop against my C# projects and on every compilation I do FxCop complains about missing KeycodeDecoder.dll:

 

Microsoft.FxCop.Sdk.FxCopException: The indirectly-referenced assembly 'BusinessObjects.Licensing.KeycodeDecoder, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be found...

 

I searched SCN extensively and found [this thread|FxCop complains about missing BusinessObjects.Licensing.KeycodeDecoder; with the exact problem I just described; unfortunately, the thread does not have any responses and is closed.

 

I also ran across another [thread|KeycodeDecoder.dll  cannot be loaded - VS 2010 RTM  - CR 2010 ver 13 Prod; where Ludek Uher explains that

KeycodeDecoder.dll does not impact any functionality of any app. E.g.; a non working right blinker on your car does not impact how your car drives...

 

 

I disagree with this argument as one can drive his car without a working blinker, but he will get a ticket from a police officer if this is noted.  I cannot speak for other countries but in the US one cannot pass an annual car inspection with a not-working blinker.

FxCop is this inspection and unless itu2019s passed I cannot use my software.

 

Please fix it!

 

Vladimir

When Export to Excel Column Allignment is Mismatching

$
0
0

Dear Expert ,

 

I am using Visual Studio 2010 and  CR Version 13 Service Pack 13.0.6.1027  . . My report is working fine when export to PDF ,

 

But Same report when I export to Excel Record  Format  , Column is getting  mismatching ..

 

I am using Following Code to export in Excel Record .

 

rpt.ExportToHttpResponse(ExportFormatType.ExcelRecord, Response, False, "Profit_Loss")

1.jpg

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


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!

Compatability Between Runtimes for CR 2008 and CR 2008 SP3

$
0
0

A while back we contracted a developer to create a .Net application to display Crystal Reports in a Dot Net Nuke (DNN) portal. The module was written in Visual Studio and uses the CR Runtime_12_0_mlb.msi.

 

The client is running Windows Server 2008 R2 Enterprise, with IIS 7 and CR 2008 is installed on the server.

 

Recently an IT technician upgraded CR 2008 to CR2008 SP3 as a pre-requisite for Prolog Converge. The upgrade broke the existing Crystal Viewer module. Although the page was displayed in IE the report was blank and the toolbar in the Crystal Viewer did not display with the exception of the Export icon which appeared in the middle of the pane. Why does an application developed with an older version of a runtime no longer function with a new release?

 

The client subsequently decided they were no longer interested in Converge and uninstalled CR2008 SP3, deleted the Business Objects directory and all its contents and reinstalled CR2008 (v 12.0.0.549). However the module continues to be be broken and will not display the Crystal Viewer and the report data. The error displayed in the event viewer from DNN is detailed below.

 

Now I am tasked with trying to restore the system to its previous state. The client does not want to upgrade CR2008 to SP3 and update the Crystal Viewer module in DNN to the new runtime. I have tried to uninstall CR 2008 using add/remove programs in the control panel and re-install but the module remains broken with the same error message. I have also tried to uninstall CR2008 and just install the CRRuntime_12_0_mlb.msi but receive an error message saying another version of this product is already installed when I try and execute the msi.

 

I was also wondering whether the "document not opened error " could be related to a permissions issue? I would appreciate any help in this matter. Many thanks. 

 

 

UserAgent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64;

Trident/5.0)

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider,

DotNetNuke.SqlDataProvider

ExceptionGUID:

f38dc7a8-a280-4179-99c1-e90d4930249a

InnerException: The document has

not been opened.

FileName:

FileLineNumber:

0

FileColumnNumber: 0

Method:

CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.set_ProductLocaleID

StackTrace:

 

Message: DotNetNuke.Services.Exceptions.ModuleLoadException: The

document has not been opened. --->

System.Runtime.InteropServices.COMException (0x8004180B): The document has not

been opened. at

CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.set_ProductLocaleID(CeLocale

pVal) at

CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.CreateRptDoc() at

CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper..ctor() at

CrystalDecisions.CrystalReports.Engine.ReportDocument.Initialize() at

CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() at

BCS.Modules.CrystalViewer.ViewCrystalViewer.ConfigureCrystalReport() --- End of

inner exception stack trace ---

Failed to retrieve data from the database. Database Vendor Code: 2812

$
0
0

Hello,

 

We have upgraded the Crystal Reports 9 to 2008 and upgraded the runtime
to 12.05 on our web server. After that we began getting random errors:

 

Failed to retrieve data from the database.

Details:  [Database Vendor Code: 2812]

 

During a day we have about 1-5 users running Crystal Report at
the same time. If the number of users is greater than 3 then one of them gets
2812 error (not each time but randomly). If error appears then this user will
get this error until the user logout from the web site. We’ve made a stress
test for 6 connections/reports. Once in a while (not every time) one of them
ends with 2812 error code and other 5 are finished fine at that time and
continue working fine after that.

To solve this problem we upgraded to Crystal Report 13 runtime (for
Visual Studio) and the error still exists with the same behavior.

The error happened at fourth line:

 

crExportOptions.DestinationOptions = crDiskFileDestinationOptions;

crExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;

crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;

crMainRpt.Export();

 

We are recording the parameters, *.rpt name, output file name and
they are looking fine. We have about 1000 reports in a day for 200 users and 50
random errors for 10 users. We are using third party SSCSDK80.dll for custom
graphics but still getting error with original one.

 

Any help would be really appreciated.

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;

Crystal Reports Reportviewer causing Windows Authenication popup

$
0
0

Environment

-


- Asp 2 Web app built with VS 2005

- Using Crystal reports integartion with VS.

- Using Forms authenication in app

- App running on WIndows server 2008.

- Have a single copy of Crystal Reports 2008 installled on server.

 

When I try to render a page with a CrystalReport viewer on it I am prompted to enter my Windows credentials. When I enter my credentials the page renders and the report works fine. This appears to be only happening when I use Forms authentication.

 

To troubleshoot, I created an asp 2.0 page and added a Reportviewer control to the page. I did not specify a report source and there was no code behind defined. When I attempt to render the page, I get a Windows Authenication dialog. If I remove the control from the page, I am not prompted for Windows credentials. Also this issue is only occurring when using Forms Authenication. There are no issues when I use Basic Authentication.

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

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
 
 
 
 
 
 
 
 
 
 





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?

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?

Visual Studio 2010 Report Viewer next button does not move past page 2

$
0
0

The application did not change but we updated the CR runtime from 13.0.3 to 13.0.6.

 

After updating the runtime the next button does not advance past page 2.  However, entering the page number still works.

 

Similar posts refer to moving page_load code to page_init.  This did not work in our case and resulted in a runtime error.

 

The CrystalReportViewer object is defined in the ASPX page as:

 

<CR:CrystalReportViewer ID="ACRISCRV" runat="server" AutoDataBind="True" ShowAllPageIds="True"

                                                                                          EnableDatabaseLogonPrompt="False" ToolPanelView="None" BorderStyle="None" EnableDrillDown="False"

                                                                                          HasCrystalLogo="False" HasDrilldownTabs="False" HasDrillUpButton="False" HasToggleGroupTreeButton="False"

                                                                                          HasToggleParameterPanelButton="False" BestFitPage="True" width="100%"

                                                                                          Style="border-width: 1pt; border-color: transparent; border-style: solid"

                                                                                          HasRefreshButton="True" ToolbarStyle-CssClass="crtoolbar1" ReuseParameterValuesOnRefresh="True" />

 

the code behind is:

 

protected void Page_Load(object sender, EventArgs e)

        {          

                // we are filtering the repoprt export functionality only to PDF document.

                int exportFormatFlags = (int)(CrystalDecisions.Shared.ViewerExportFormats.PdfFormat);

                ACRISCRV.AllowedExportFormats = exportFormatFlags;           

            //// Removed the code from page_Init and pasted down here.

            if (IsPostBack)

            {

                if (Session[HidReportName.Value.ToString()] != null)

                {

                    ACRISCRV.ReportSource = (ReportDocument)Session[HidReportName.Value.ToString()];                                       

                }

            }

            else

            {               

                    lblLogin.Text = ReportConstants.LOGINWELCOME + Context.User.Identity.Name.ToUpper();

                    //// Will remove the report session if any                   

                    FillDropDowns();                            

            }           

        }

 

Is this a known issue with 13 update 6?

 

Is there an alternative or workaround for this problem?

 

This problem is seen in both debugging (Win 7 Pro) and production (win server 2008 r2 - 32 bit runtime)

 

Thank you for your help.

 

Jon

Viewing all 3636 articles
Browse latest View live


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