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

Crystal Reports SP9 Memory and CPU issue

$
0
0

Hi,

 

We are using the latest version of CR (13.0.9) within our software product to render reports and are having a number of errors raised within our production environments relating to report rendering.

 

our product is ASP.NET Web Forms and WCF-based using .NET 4.5 and Visual Studio 2013.

 

We are generating the reports using the ReportDocument object

 

1. "Error Creating Window Handle"

Error creating window handle.<br>   at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)     at System.Windows.Forms.Control.CreateHandle()     at System.Windows.Forms.ToolStripDropDown.CreateHandle()     at System.Windows.Forms.Control.get_Handle()     at System.Windows.Forms.Control.PointToScreen(Point p)     at System.Windows.Forms.ToolStripItem.TranslatePoint(Point fromPoint_ ToolStripPointType fromPointType_ ToolStripPointType toPointType)     at System.Windows.Forms.ToolStripDropDownItem.DropDownDirectionToDropDownBounds(ToolStripDropDownDirection dropDownDirection_ Rectangle dropDownBounds)     at System.Windows.Forms.ToolStripDropDownItem.GetDropDownBounds(ToolStripDropDownDirection dropDownDirection)     at System.Windows.Forms.ToolStripDropDownItem.get_DropDownDirection()     at System.Windows.Forms.ToolStripDropDownItem.get_DropDownLocation()     at System.Windows.Forms.ToolStripDropDown.GetDropDownBounds(Rectangle suggestedBounds)     at System.Windows.Forms.ToolStripDropDown.SetBoundsCore(Int32 x_ Int32 y_ Int32 width_ Int32 height_ BoundsSpecified specified)     at System.Windows.Forms.Control.SetBounds(Int32 x_ Int32 y_ Int32 width_ Int32 height_ BoundsSpecified specified)     at System.Windows.Forms.Control.set_Size(Size value)     at System.Windows.Forms.ToolStripDropDown.OnLayout(LayoutEventArgs e)     at System.Windows.Forms.ToolStripDropDownMenu.OnLayout(LayoutEventArgs e)     at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args


Why would SetLocation on an Oracle database result in COMException 0x80047E4C?

$
0
0

CR version XI release 2

 

The description of the error is this:

 

De database gegevens kunnen niet worden geladen, which translated to English is something like this:

The database data cannot be loaded.

I'm puzzled as to what might cause this behavior.

 

The fragment of code resulting in the error works fine normally.

 

table.DllName = "crdb_oracle.dll";

 

SetProperty(table, "Server", _dataServiceSettings.DatabaseName); -> tns names reference

SetProperty(table, "Database Type", "OLE DB");

SetProperty(table, "UserId", _dataServiceSettings.DatabaseUserName);

SetProperty(table, "User ID", _dataServiceSettings.DatabaseUserName);

SetProperty(table, "Password", _dataServiceSettings.DatabasePassword);

 

table.Location = string.Concat(_dataServiceSettings.DatabaseUserName.ToUpper(), ".", table.Location.ToUpper());

 

Could anyone shed any light on this case for me to be able to solve it?

 

Thanks in advance,

 

Henk Spaan.

4 page form letter setup, best way

$
0
0

Is the best way to set up a report that has 4 different pages to insert 4 detail sections. Page 1 would be Section 3 (details a), page 2 would be detail b, etc. We have no need for headers or footers. Then to get page 1 to page break at the end of the page set New Page After to true. We have experimented with this but we are getting blank pages before and after a page but not consistently for every page if that makes sense. The 4 pages will reference the one row of data from the data set to print name and address on first page and various other details on pages two thru four. Then start over again with page one for the next row in the database.

 

Is this the wrong way to set up a four page report?

 

Bruce

SAP Crystal Reports 2011 and Visual Studio 2013

$
0
0

I am creating a Visual BASIC .Net windows application in Visual Studio 2013.

 

The application sets up a connection, command, command builder, and Data Adapter to connect to an Oracle database to fill data into a Dataset.

 

All the that works great but the problem I am running into is with trying to run a Crystal Report with the Dataset.

 

I have set up a Crystal Report to use the dataset in SAP Crystal Reports 2011.

 

The Visual Basic .Net application is not using the Crystal Report Viewer.  It is using the Report Document class to export the report to a PDF and/or Excel file.  SAP Crystal Reports for Visual Studio has been installed.

 

At first I ran into a problem where I got an exception error "Could not load" message regarding the crdb_adoplus.dll when the following line of code is executed:

 

reportDocument1.SetDataSource(ds)

 

I was not able to find crdb_adoplus.dll on my system so I found a place I could download it.  I have put the .DLL in the directory the error message was referring to.  Still got the error.

 

Then I found an old 2009 discussion on here about someone having the same error.  In that discussion, Ludek was helping them.  One of the things that Ludek mentioned to try doing was placing the .DLL in the bin folder for the Visual Studio project.  I have tried that and still did not work.  Then I copied the .DLL to the Debug folder under the bin folder.  Now that statement works but got a Database logon failed error message when the following line code is executed:

 

reportDocument1.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "C:\Users\Public\Documents\Novelis870TransactionReport4.pdf")

 

I am using reportDocument1.SetDatabaseLogon statement with the correct User Id and Password for the database but still keep getting the Database logon failed error.

 

I know the Dataset (ds) is working because I can use that as the data source for a DataGridView.

 

What needs to be done to resolve this issue?

An Enterprise Report Application Server was not found.

$
0
0

Hi all ,

 

I have installed Crystal reports 2013 OEM ,I am getting this follwin error "An Enterprise Report Application Server was not found." any one please any help or explination of this exception.

 

tempFile = C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\Samples\En\Reports\NiceReporter\tth2730334.rpt;

 

crystalReport = new ReportClientDocumentClass();

object path = (object)this.tempFile;

crystalReport.Open(ref path, 0);

 

Thanks all

An Enterprise Report Application Server was not found.

$
0
0

Hi all ,

 

I have installed Crystal reports 2013 OEM ,I am getting this follwin error "An Enterprise Report Application Server was not found." any one please any help or explination of this exception.

 

tempFile = C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\Samples\En\Reports\NiceReporter\tth2730334.rpt;

 

crystalReport = new ReportClientDocumentClass();

object path = (object)this.tempFile;

crystalReport.Open(ref path, 0);

 

Thanks all

ExportToDisk - generated code is incorrect

$
0
0

Hi,

 

I am trying to track down an error that occurs in Crystal Reports in one of our environments, but not in another. This implies the code is working ok, but something in the environment is different.

 

I have a Crystal Report, using version 11.5, which takes 2 date time parameters (@DateFrom and @DateTo). The report has a datasource set up to a SQL 2012 database, which uses a stored procedure which takes 2 datetime parameters, using SQLNCLI10 as a provider.

 

We then create the report, assign parameters to it and then run ExportToDisk.

 

In one environment this works correctly. The SQL generated by Crystal to get the data from the database is as follows (captured with SQL profiler):

exec "DORA"."dbo"."up_SiteUsageReport_NumberSearches_lst";1 {ts '2010-04-01 00:00:00'}, {ts '2014-07-01 00:00:00'}

This version works correctly and no database error is thrown.


The other environment we have throws an error when we run ExportToDisk generates the following SQL:
exec "DORA"."dbo"."up_SiteUsageReport_NumberSearches_lst";1 CONVERT(DATETIME, '2014-04-01 00:00:00', 120), CONVERT(DATETIME, '2014-07-01 00:00:00', 120)

 

This second SQL is not valid, and causes the command to fail with the error below, but I am unable to determine the cause of the error. Is anyone able to offer any suggestions on why the 2 environments may have different SQL generated by Crystal?

 

Thanks,

Natasha

CrystalDecisions.CrystalReports.Engine.InternalException: Failed to retrieve data from the database.

Details: [Database Vendor Code: 156 ]

Failed to retrieve data from the database.

Error in File C:\WINDOWS\TEMP\UsageReport {DE43AF3C-0286-42C8-9881-3729F134B1F8}.rpt:

Failed to retrieve data from the database.

Details: [Database Vendor Code: 156 ] ---> System.Runtime.InteropServices.COMException (0x800002D3): Failed to retrieve data from the database.

Details: [Database Vendor Code: 156 ]

Failed to retrieve data from the database.

Error in File C:\WINDOWS\TEMP\UsageReport {DE43AF3C-0286-42C8-9881-3729F134B1F8}.rpt:

Failed to retrieve data from the database.

Details: [Database Vendor Code: 156 ]

at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)

at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

--- End of inner exception stack trace ---

at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)

at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)

at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)

at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)

Page Range in Export Options in Visual Stuido 2008

$
0
0

Hi,

 

We have legacy application in VB 6.0 with Crystal reports 2008 which has page range option in Export Report functionality. We are rewriting the application to VS 2008 and Crystal Reports 2011.

 

While we are clicking on the Export options icon in the crystal report viewer we are not getting the page range option. Please suggest the approach to get the page range in the export options.

 

Thanks and Best Regards,

 

Yugandhar Simhadri


Report getting crossed between users?

$
0
0

Hi,

 

Setup:

ASP.Net V4.0 website. IIS7. Windows Server Web Edition (2007) Service Pack 2.

 

Not sure if the problem we have is a Crystal Report (CR) problem yet or not, but wanted to ask here just in case anyone had come across the same issue.

 

We have a site that obviously uses CRs. It's not a generally high usage site. It varies throughout the year. At the moment there might be 50 users using the site at any one time.

We have had a couple of users of the site report that they had seen data in a CR that had recently been viewed by a completely different user (i.e. user number two saw user number one's CR).

 

Looking at the session state data, which we log ourselves, the session all seems intact and completely separate per user. We use some session state variables to obtain data from the database to produce the report (like record ID's).

 

We are looking into the 'Cache Rule' in IIS to 'Prevent all Caching', but have not yet implemented it.

 

Does anyone know of any other reason why a CR created by one user could then be picked up by another user? And is there a switch anywhere to possibly turn something like this off in Crystal?

 

Any help or ideas would be greatly appreciated, as the data being shown to the user is potentially very sensitvive.

 

Note: It looks like the .tmp files in C:\Windows\Temp are being tidied up succesfully each time.

 

Thanks

 

Julian

Failed to connect to server "%MACHINENAME%

$
0
0

Hi;


I have problem with opening report with crystal report 2013 EOM ,  i got this strange exception  I have google it and didnt find any helpful data


"Failed to connect to server "%MACHINENAME%".Error returned from Windows Sockets API getaddrinfo: 11001."


i am using this code

 

tempFilePath += "Evaluators Trend.rpt";


            ReportClientDocumentClass crystalReport = new ReportClientDocumentClass();

            object path = (object)tempFilePath;

            crystalReport.Open(ref path, 0);

 

 

can you please  advice how can i avoid this issue .


Thanks ,

Fade Ismaeel

Open report using memorystream or byte array

$
0
0

Dear All,

 

I am using .Net4.0 with CR13, is it possible to load a report document using a memory stream or byte array in stead from a physical file from disk?

 

If not, will this be made available?

 

 

regards

VS install works, CRRunetime does not

$
0
0

I am new to Crystal Reports and would appreciate some help.  We are running an older version of Crystal Reports.  I needed a new feature and installed Crystal Reports 2013.  I have IIS setup locally to test our website and everything works great on my development machine.  The feature works perfectly.

 

Before pushing this to our production server, I want to test it and determine exactly what changes need to be made.  From what I have read, all that I need to do is install "CRRuntime_64bit_13_0_10.msi" on the server and the new report, and all existing reports, will work perfectly.  To test this I have Uninstalled everything Crystal Reports from my machine, then installed "CRRuntime_64bit_13_0_10.msi".  If I attempt to run any report it will give the same error with/without "CRRuntime_64bit_13_0_10.msi" (the report is not available and error getting [report name])  and continue to fail until I reinstall "CRforVS_13_0_10.exe" (Crystal Reports for Visual Studio) OR "51046782.ZIP" (Install for Crystal Reports 2013).

 

 

 

I have .net 4.0 installed and been sugggested I need to update the References for the project.  The current CR references are below but if I remove them when attempting to add references there is no references that match these that I can find.  There are many others but I don't know what they are for.  If I remove them and build I get namespace errors from 'CrystalDecisions' the only reference i can install that will change that message is "Crystal Reports HTML Report Renderer 13.0.  If I use that with/without any other references I receive an error saying the below Error 3.

Error3Could not resolve COM reference "6ae44ff1-eccf-4a72-96ce-95bcd1ea2097" version 13.0. The type library importer encountered an error during type verification. Try importing without class members.[Redacted by Dale]

     Project References

  1. CrystalDecisions.CrystalReports.Engine
  2. CrystalDecisions.Data.AdoDotNetInterop
  3. CrystalDecision.Enterprise.Framework (Has a yellow caution sign, not sure what this means)
  4. CrystalDecision.Enterprise.InfoStore (Has a yellow caution sign, not sure what this means)
  5. CrystalDecision.ReportSource
  6. CrystalDecision.Shared

 

 

Is there something else I need to do for the runtime to work properly?  I want to to test what needs to be done to the server locally first so I don't screw up the server and make more work for everyone.  I know this is long but thought the extra information might be helpful.  Please let me know what additional information you require

Access denied. Please check directory setting for files you can access.

$
0
0

Hi ,

I am trying to run this code but i am faceing strange issue with this code that the path is access denied

can you please advice ?

 

 

RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Wow6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\Server\LocalConnectionMgr");

            if (key != null)

                tempFilePath = key.GetValue("ReportDirectoryPath").ToString();

 

 

            if (tempFilePath == "") //set the default

                tempFilePath = @"C:\Program Files\Business Objects\Crystal Reports 12.0\Samples\EN\Reports\";

 

 

            tempFilePath += @"NiceReporter\";

            if (!Directory.Exists(TempFilePath))

                Directory.CreateDirectory(TempFilePath);

            tempFilePath += "Evaluators Trend.rpt";

 

 

            CrystalDecisions.CrystalReports.Engine.ReportDocument rd = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

            CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument boReportClientDocument;

            boReportClientDocument = new CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument();

            boReportClientDocument.ReportAppServer = System.Environment.MachineName;

            object path = (object)tempFilePath;

            boReportClientDocument.Open(ref path, 0);

 

thanks

Fade

CrystalImageViewer not displaying images

$
0
0

Hi,

 

I have a Webforms website I've made to display some reports I've upgraded from an older version, so they'll display properly in IE11.  The reports work perfectly when I run them from Crystal Designer, or when I export them to PDF, however when I view them on the webpage themselves, the embedded images do not load.

 

The site is running as an application within a larger site, so its address would be http://server/CR/ .

I've set my app pool to Classic, moved aspnet_client into both the /server root as well as the /CR root (because why not, it wasnt working anyway), and I've made the necessary changes to web.config. I've added the whole web.config (as a txt file), but pasted the specific bits I believe I need to add here.

 

<sectionGroup name="businessObjects">

      <sectionGroup name="crystalReports">

        <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler"/>

      </sectionGroup>

    </sectionGroup>

  </configSections>

 

<businessObjects>

    <crystalReports>

      <crystalReportViewer>

        <add key="UseBrowserLocale" value="true"/>

        <add key="resourceURI" value="~/aspnet_client/system_web/4_0_30319/crystalreportviewers13" />

      </crystalReportViewer>

    </crystalReports>

  </businessObjects>

 

<system.web>

<httpHandlers>

  <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

  </httpHandlers>

  </system.web>

and finally

 

<system.webServer>

  <handlers>

  <add name="CrystalImageHandler.aspx" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

  </handlers>

</system.webServer>

 

Doing an inspection in Chrome gives me

GET http://server/CR/CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_ddc49144-4220-4239-80d1-4dc87b61e96a.png 500 (Internal Server Error)allInOne.js:12

as the error response (This doesnt work in IEv9 and 11 either, Chrome's just better for seeing these errors).

 

Every piece of information I've looked at for the past day has said that all I need to get this working is the above changes, so I'm pretty stumped right now and would appreciate any assistance I can get.  I think the final piece of information is that I'm using Crystal for VS SP10 with VS2013, and last edited the report file in Crystal Designer 2013.  I also attached an image showing the images not loading on the report - there should be a black bar across the top with the school logo in the top right corner.

 

Thanks,

Dean

failed to load report application server settings from the system registry

$
0
0

Hi ,

 

I have make test to run the reporter application server with simple double click but I got  the attach Error message.

 

can any one please advice ?


WPF Crystal report throws an exception when user tries to replace a file which is open during export of report.

$
0
0

WPF Crystal report throws an exception when user tries to replace a file which is open during export of report. How to handle this exception?

I am getting following exception. Please let me know how to handle this exception.

"System.ArgumentNullException was unhandled

Message: An unhandled exception of type 'System.ArgumentNullException' occurred in PresentationFramework.dll

Additional information: Value cannot be null."

Repeated column headers in Crosstab report when exported to Excel

$
0
0

I have created a Cross tab report and wanted to export it in the format "Microsoft Excel(97-2003) (*.xls)", as the formatting of the report is lost in Excel  Data Only format. But when I export the data the column headers are repeated in the Excel. Is there any solution to avoid repeated column headers without losing the formatting of layout?

Need to create processing dialog similar to CR 8.5

$
0
0

Hello Everyone

 

I am trying to recreate the functionality earlier supported by crystal 8.5. Earlier we had a dialog which is displayed when we export any report through CR8.5 or lower PE call. This dialog box is still displayed in SAP crystal reports designer but we can't figure out its support using CR 2013 API.

 

 

In new crystal, below processing dialog is provided.

 

 

New crystal 13 API doesn't provide the same processing dialog anymore. We can just customize the text being displayed in the dialog. We checked the feasibility of building same dialog but there were few issues too. We are not able to find any event through which we can cancel the export once the process has started. It means we can't support "Cancel Exporting" functionality anymore.

 

It will be great if anybody can help us to recreate this behavior by either sharing code or sharing events and properties needed.

Export to exchange folder in HTML format not working

$
0
0

Hi All

 

I am trying to export report in HTML format directly to exchange folder and sending it as mail. I am using below code for it but it is not working for html format only. I am able to export other formats (rpt, pdf, word, excel...) using below snippet.

 

Crazy thing is that it doesn't give any error or exception. It just ignores the code. It will great if someone can sneak in below code and point out what I am doing wrong.

 

Dim destination As ExportDestination = ExportDestination.ExchangeFolder
Dim options As New HTMLFormatOptions
options.HTMLFileName = "report1.rpt"
options.HTMLBaseFolderName = System.IO.Path.GetTempPath()
ExportToExchangeFolder(format, options)
Private Sub ExportToExchangeFolder(ByVal format As ExportFormat, ByVal options As ExportFormatOptions)    Dim myExchangeOpts As ExchangeFolderDestinationOptions = ExportOptions.CreateExchangeFolderDestinationOptions()    Dim myExportOpts As New ExportOptions        myExchangeOpts.DestinationType = ExchangeDestinationType.ExchangePostDocMessage    myExchangeOpts.Profile = "Outlook"    myExchangeOpts.FolderPath = "abc@xyz.com#Drafts"    myExportOpts.ExportDestinationOptions = myExchangeOpts    myExportOpts.ExportDestinationType = ExportDestinationType.ExchangeFolder    myExportOpts.ExportFormatType = ExportFormatType.HTML32    myExportOpts.ExportFormatOptions = options        report.Export(myExportOpts)
End Sub

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

Viewing all 2556 articles
Browse latest View live


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