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

Can this be used for commercial software

$
0
0

Hi, I'm using Visual Studio 2013 Express(free version) for making a software and selling it. Can I add reports made using Crystal reports Developer version for Visual Studio in it without any problem. Or do I have buy a license for Crystal reports?

 

-Thanks


Crystal Reports 'pull' method supported in ASP.NET applications?

$
0
0

Given the following response we have had after experiencing intermittent crashes in our application and submitting an incident to Microsoft

 

"The AV is happening at COM, Oleau32.dll, module which is part of the COM plumbing.

 

I hate to be the bearer of bad news, but your application which is an Asp.Net 4.0 application that is using the ADOBD PIA assembly that shipped with visual studio 2005, unfortunately, is not supported in server side application such as ASP.Net and is and has not been recommended for usage  anymore by Microsoft.

 

ADODB was merely provided as temporary workaround in the early days of .net, until our customer fully migrate to ADO.Net"

 

do SAP still support use of the 'pull' method in reports embedded in ASP.NET applications, or should ASP.NET applications only use 'push'? We could not tell whether the crashes were occurring in our VB code, which currently still uses ADODB, or in the embedded Crystal Reports, which use OLEDB connections (and the connection may or may not use the ADODB assembly internally - this is obviously outside our control). We are currently updating the VB code in our application to only use ADO,NET, but we have 100+ reports in our application, and we don't want to have to convert them all to 'push' if we can avoid it!

 

We have been advised by SAP to update the reports to use the native SQL drivers (rather than SQLOLEDB), but if the problem is more basic, i.e. in using 'pull' mode per se, changing the drivers is not going to help.

 

It is worth noting that we only started to experience these intermittent errors when we installed the app on Windows 2008 R2, It has run fine on Windows 2003 for many years.

$ symbol is does not appear when field object is embedded in text object

$
0
0

There has been an uncanny issue where a $ symbol is not visible when field object is embedded in text object. The field object is embedded in text object in following format

"<Text1><Formula field (amount)><Text2>"

Ex: BeforeString $650.00 AfterString

 

Some of the findings related to this issue are:

  • Issue only persist if report is previewed in Crystal report viewer of VS 2010, i.e. the $ symbol does not display.
  • If same report of step 1 above is exported to .RPT format and opened in crystal designer then there is no issue as the $ symbol displays.
  • If report is directly exported to any format (without preview), then also there is no issue as the $ symbol is always visible.

 

We tried certain options but none of them worked out:

  • Fetch and display the currency symbol from current locale.
  • We tried looking for some property of text object using which we can set the currency format.
  • We tried most of the field object properties to set the currency format.
  • We installed Crystal Report Service Pack 11 to check if there is any fix by SAP.

 

We also faced similar issue where in the date formatting was lost when field object contains date instead of Amount, we couldn’t find any suitable solution for that issue as well.

 

Appreciate if someone can help.

 

Version details:

VS 2010 SP1

Crystal Report for Visual Studio: Support Pack 10 (v.13.0.10.1385 )

Crystal Report Designer 2013

 

Thanks in anticipation.

Prateek

"Enter Parameter Values" dialog freezes for several minutes in some cases

$
0
0

Hello.
Some of our customers utilize Crystal reports, which have a string parameter with a very long list of possible values (about 20000 strings with descriptions).
For such reports it takes about 2-3 minutes before "Enter Parameter Values" dialog is displayed for the first time and every time when refresh button is pressed on the Crystal report viewer toolbar. During this time application eats 100% CPU of one of processor cores. Crystal progress dialog is frozen most of this time. This behavior can be observed for both WPF and WinForms Crystal report viewer.

 

Is it a bug in Crystal Report viewer? Is there any way to reduce this time?

 

Thanks in advance,
Gleb.

 

P.S.
We are using the latest Crystal Reports for Visual Studio (SP5). This issue can be reproduced using an empty report with the single parameter defined (with a list of possible values of ~20000 entries) under project auto-generated on the base of "Crystal Reports WPF Application"/"Crystal Reports WPF Application" template in MSVS 2010/2012. It looks like such reports works fine in some old (not the latest) Crystal Reports RDC engine.

Crystal Reports 2011 and rcapi via inproc ras?

$
0
0

First of all, we are using Crystal Reports 2011 (v14.0.2.364)

I'm working in a small non-profit in healthcare, where there are very limited budgets.

 

=> This lead to me using VS Express, meaning i can't use the CR for VS stuff (right?)

 

What i'm trying to do is create ad hoc report definitions (select certain stuff in a small application, and based on that, a very basic report should come out) to facilitate report creation (otherwise i need to define 50+ subreports manually, all on the same DB, with different column definitions, ...)

 

Now i've read around a lot in the last few days, and while at the moment i've succeeded in opening an existing report, and 'browsing' through its contents using the VS Debugger, it seems i'm missing the ReportDef assemblies,

 

=> so i can't change the definition of the report. (right?)

 

I'm confused... i've read that CR XI SP2+ contains the RAS SDK, which should contain the RCAPI, and i should be able to use this in-process.

Since "CR 2011" > "CR XI SP2", i assumed it would work...

 

Obviously i've read either the wrong documents, or i'm misinterpreting them, or i've overlooked something...

Just to be clear: there is no budget (not money-wise, nor time-wise) to be going after the Crystal Reports Server things, so if that is the only way i can produce the desured outcome, i might as well just ditch the current project and go after something else (like generating myDBR code)

 

could someone offer some clarifications on this please? (and maybe i'm posting this in the wrong forum, but i'm accessing cr rpt files from VS...

(using C# btw)

 

thanx in advance

 

Michael

ExportToStream method no longer returns System.IO.MemoryStream in cr vs 2010 latest run time 11 - platform windows 8.1 .net 4

$
0
0

Dear All,

 

 

         I recently downloaded the latest crystal report for visual studio 2010 run time (v 11) installed on my

windows 8.1 with visual studio 2010 pc

 

 

everything was fine but suddenly the error that described in the below

link happened

 

 

ExportToStream method no longer returns System.IO.MemoryStream in CR 2008 SP5

 

and i can see there is no resolution provided by sap to this issue

 

 

exactly the same issue

 

oStream = (MemoryStream)

  cr.ExportToStream(

  CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);

 

 

 

i revered back to the v10 by uninstalling 11 everything is fine now

 

 

 

 

Any luck or resolution for the version v11?

Crystal reports connecting to Azure SQL database. The table x could not be found

$
0
0

I have a vb.net application which currently uses crystal reports for VS and connects to an SQL Server 2008 database. The application now needs to use an SQL Azure database but when connected to the SQL Azure database is raising the following error for all of my crystal reports: -

The table '' could not be found. Error in file . The table could not be found. This error is being thrown by Crystal reports when the database connection is set. The stack trace is raised from my code but with the following Crystal reports trace: -

CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.SetTableLocation(ISCRTable CurTable, ISCRTable NewTable) at CrystalDecisions.CrystalReports.Engine.Table.set_Location(String value)

The report actually uses a stored procedure which I have verified is on the Azure database.

To try and resolve this I went to the database expert in the report designer, connected to the database and intended to just check the stored procedure was actually showing for the report, however when connected the database expert is only showing tables and views and no stored procedures. The username I am using is actually the master user for the Azure SQL Database and when using any other tool (for example using Microsoft SQL Server management studio or SQL Server object explorer) the stored procedures and visible and accessible and can be run without any issues.

As soon as I switch back to the SQL Server 2008 database the report runs fine. I would normally assume this is a database permissions issue but given the above evidence I don't believe it to be so. Is anyone using Crystal reports for visual studio connecting to an Azure SQL database from within an application?

I am using the crystal reports for visual studio 13.2 libraries.

Crystal Reports runtime for 2013?

$
0
0

Hello,

 

My company is moving from Crystal Reports 11.5 r2 to Crystal reports 2013, looks like the version is 14.1.1.1036.  Where can I find the runtime for this version so that I can add files to reference in my .net applications?

 

Thanks.

 

Greg


Crystal report runtime

$
0
0

Hi ,

 

I have installed latest Crystal report runtime Support Pack 12 (CRforVS_redist_install_32bit_13_0_12). But I cannot find dotnet managed dll files

 

CrystalDecisions.CrystalReports.Design.dll

CrystalDecisions.CrystalReports.Engine.dll

CrystalDecisions.ReportAppServer.DataSetConversion.dll

CrystalDecisions.ReportSource.dll

CrystalDecisions.Windows.Forms.dll

CrystalDecisions.Shared.dll

 

I am using VS2013 and reference above file in my .net application.

 

Which runtime version 13.x I can use to add files reference in my .net applications?

 


Thanks

Annapurna

Crystal reports refuse running on pc

$
0
0

Hello there i have project which runs very well on my Windows 7 pc 32bit. but the issue comes when running reports. it brings the following error

 

"The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.\n\n   at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()

   at Octopus.Reports.Report.LoadDocument()

   at Octopus.Reports.Report.GetDocument()

   at Octopus.Reports.ReportService.LoadReport(Report report)

   at Octopus.Reports.Forms.ReportBrowserControl.OnLoadReport(Object sender, DoWorkEventArgs e)

   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)

   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)"

 

I have installed CRRuntime_32bit_13_0_11 and Crystal Reports Viewer 2008 but all in vain. could it be a windows issue?

I need your help. Please any one

Thank you

Need to set connection string's Application Name in crystal report viewer

$
0
0

My company has been using teh crystal report viewer. We've never understood why, but the connection string the crystal report engine is using is specifying an application name that is the name of the executing assembly. We'd like to change this to the actual name of our product (to make it easier to track using Sql Profiler with other Sql Queries made by our application).

 

 

 

Is there a way to specify the Application name in the TableLogonInfo object?

Load Report Failure

$
0
0

We are using Crystal Report XI Developer full product. We have been able to access our report on the server successfully, until a week ago a "Load Report Failure" started bugging us.

 

In order to fix this issue, we do either one of the following two steps:

1) We have just re-apply the permissions of the folder "Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files on the server", and the report gets fixed

  Note: We do not add new permissions, we just open the security tab, change few settings, revert back to the original settings and just apply.

2) We recycle the app pool in IIS linked to our application

 

The above change is not a permanent fix, we are doing it every time the report fails. However we do not know the actual/root cause of this, therefore would like to know what could be the possible causes leading to this Report Failure

 

On server we have OS : Microsoft Windows Server 2003, Service Pack2

 

I have checked the memory and there is ample space left in the C: Drive

 

Please help us on this.

Reg: Getting exception while calling Viewer.viewcore.printReport() method

$
0
0

Hi,

 

     We are using latest version of crystal report which includes SAP WPF Viewer to display crystal reports.

     Getting an object reference exception while calling the PrintReport() Method of the report viewer. Please see the stack trace.

 

   at SAPBusinessObjects.WPF.Viewer.MainReportDocument.GetPage(PageRequestContext context)

   at SAPBusinessObjects.WPF.Viewer.ReportDocumentBase.GetPage(Int32 pageN)

   at SAPBusinessObjects.WPF.Viewer.PrintControl.ShowPrintDialog()

   at SAPBusinessObjects.WPF.Viewer.ReportAlbum.PrintReport()

   at SAPBusinessObjects.WPF.Viewer.ViewerCore.PrintReport()

  at AIMSWPFControls.AIMS360ReportViewer.ReportViewerPrint()


Please suggest is how to click on print button  which is inside the report viewer toolbar.


Regards,

Chakradhar.

How to set the max/min value in chart axis using C#?

$
0
0

Hi, sap experts

 

As the picture shows, how can i set the max and min value in chart using C#?

 

QQ截图20141107101152.png

 

For example, in a winform, i have a textbox, when i type a number in it, the number can be automaticly filled into the max value?

 

Thanks.

Crazy Issue with having to set Report Source twice

$
0
0

Hi,


We are using the latest CR References (13.0.12.1494).

 

We create a report document, set some parameters and some values then set the that report document as the report source of the CR Viewer.

 

The report generates but it does not take the parameters.


If we set the report source a 2nd time, the report takes the parameters and it generates just fine.

 

Actually...if we pause the code, inspect the Report Document object in Visual Studio, then continue the code it also generates just fine. (Without setting a 2nd time).

 

Actually if we do this:

if(rd.HasRecords) and just put anything after (like Int32 I = 0 or something) the report generates just fine.

 

The other interesting item is that our project has been using the 10.5 version of the DLL's for years. We are now trying to use the 13 version. I removed and added the references...but is there something else that we need to do to 'upgrade' our project?

 

Thanks.M


Report containing subreports created via rcapi, logon data not passed through

$
0
0

Hi all

 

I've "succeeded" in generating a reportdefinition dynamically (using only C# code, didn't do any creating/defining in the Designer), based on choices made by the user of my application:

 

"succeeded", because the report definition looks ok - it contains the correct CommandTable definition, the correct subreports are imported.

When i try to view it in the designer, it looks ok, it even produces the wanted results

 

BUT: When viewing the report, i have to enter manually the password for the mainreport and for each subreport.

When i create a report using the Designer i have to enter it only once, and it seems the credentials are then passed on to the subreports.

 

This is also true when using an exporting tool like CRExport, that enters the login and password in the mainreport, but not in the subreports:

CRExport works perfectly for Designer-created reports containing subreports, but not for reports that were created by my code which is - of course - the point of the application.

 

 

Obviously i'm missing something.

I've used this tool to generate the necessary code, but even when trying this in a simple standalone testapplication, with most of the things hardcoded, i can't seem to get it to work. (I used the tool on a working report, only changed the content of CommandText)

 

Could someone please tell we what i have to set in the mainreport/subreports to make the logoninformation from the mainreport be passed on to the subreports?

 

Version: CR 2011

Attempted to read or write protected memory

$
0
0

Hi,


I'm using visual studio 2010 with crystal reports (Support Pack 12 (v.13.0.12.1494).

 

Most of my crystal reports use data from an access database, for an unknown reason I cannot print or export my reports because I'm always presented with the following error "crystal report print Attempted to read or write protected memory. This is often an indication that other memory is corrupt." The application then crashes!

 

I have a MainForm(startup form) -> projectListForm -> reportForm(crystal report)

 

In my mainForm's Load event, I'm connecting to the access database that the crystal report also connects too, if I remove this connection in the MainForm then I can actually Export and Print from crystal report when I open the report form;

 

Also if I set my startup form to the reportForm, the Export and Print work without a problem.

 

I would greatly appreciate any help I can get!

Thank you,


The exception detail is :

 

System.AccessViolationException was unhandled

  Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

  Source=System.Windows.Forms

  StackTrace:

       at System.Windows.Forms.FileDialogNative.IFileDialog.Show(IntPtr parent)

       at System.Windows.Forms.FileDialog.RunDialogVista(IntPtr hWndOwner)

       at System.Windows.Forms.FileDialog.RunDialog(IntPtr hWndOwner)

       at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)

       at System.Windows.Forms.CommonDialog.ShowDialog()

       at CrystalDecisions.Windows.Forms.ReportDocumentBase.Export()

       at CrystalDecisions.Windows.Forms.PageView.ExportReport()

       at CrystalDecisions.Windows.Forms.PageView.exportButton_Clicked(Object sender, EventArgs e)

       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

       at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)

       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

       at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

       at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

       at System.Windows.Forms.Control.WndProc(Message& m)

       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

       at System.Windows.Forms.ToolStrip.WndProc(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)

       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

       at System.Windows.Forms.Application.RunDialog(Form form)

       at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)

       at System.Windows.Forms.Form.ShowDialog()

       at WindowsApplication1.Form1.Button3_Click(Object sender, EventArgs e) in C:\Users\fcapozio\Desktop\Ncl Envirotek\Programming\Test\NCLADMIN\NCLADMIN\Form1.vb:line 345

       at System.Windows.Forms.Control.OnClick(EventArgs e)

       at System.Windows.Forms.Button.OnClick(EventArgs e)

       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

       at System.Windows.Forms.Control.WndProc(Message& m)

       at System.Windows.Forms.ButtonBase.WndProc(Message& m)

       at System.Windows.Forms.Button.WndProc(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)

       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

       at System.Windows.Forms.Application.Run(ApplicationContext context)

       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()

       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()

       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)

       at WindowsApplication1.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81

  InnerException:

Does anyone know how to set a timeout on the database call the report viewer makes when loading the rpt file?

$
0
0

I have a web app that has a crystal reports viewer that executes rpt files. The data in the rpt files are populated with a stored procedure that runs on a sql database. The crystal report viewer is the latest version. On .net framework version 4.5. The rpt files are created in crystal reports 2013. We have a case when an end user generated the a rpt file, the stored procedure gets a bad query plan, and just runs and runs on our database server until our db administrator sees it and manually cancels it. Even after the end user has closed the viewer. My question is does anyone know of a way I can set a timeout on the data call the report viewer executes? I can not set a global timeout on SQL batch types because our application has other processes that need a longer timeout property than the crystal report does. I have explored CrystalDecisions.Shared.ConnectionInfo options and haven't had any success. If there is not a way to set a specific timeout on the viewer.. is there a way to change the event type the stored procedure is executed as to RPC? Thanks in advance for your responses.

VS 2010 and Access accdb causes login popup when there are no credentials for the DB

$
0
0

in all my years I have never connected an external report to an Access accdb data source. There are no log-in credentials for these DB's but the .net (VS 2010) code causes a popup from Crystal Viewer asking for username and password. Of course I am resetting every table def within the Crystal report via code to the new db name and location. What am I missing.

 

Visual Studio 2010

framework 4.0 complete

Crystal latest for Visual Studio 2010

Visual Basic .Net

testing on Windows 7 and XP

is crystal reports compatible with VS Pro 2013?

$
0
0

is crystal reports compatible with VS Pro 2013? if so, what do I need to get it to work?

Viewing all 3636 articles
Browse latest View live