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

Upgraded to the lastest SDK but reports not working.

$
0
0

Hi,

 

I have downloaded the latest SDK for VS2010 :-

 

SAP Crystal Reprots runtime engine for .NET Framework (64-bit)     13.0.14.1720

SAP Crystal Reports, version for Microsoft Visual Studio                    13.0.14.1720

 

I then installed the latest version of the runtime library's on Windows Server 2012 :-

 

SAP Crystal Reports runtime engine for .NET Framework (64-bit)     13.0.14.1720.

 

My web based project now runs on the new server with references to Crystal reports but when it comes to this command:-

 

 

ExportFormatType.PortableDocFormat, Response, False, "CIC Preview")

 

 

The report returns and exception:-

 

The system cannot find the file specified.

 

The strange thing is it steps over the report.load line of code because I have put traps in. I have also output the full path / filename it is trying to load and this is correct to.

 

 

Any help please as I need to transfer to the new server as soon as possible because the old one is being de-commissioned soon.

 

 

Thank you for any help,

 

 

Roger


Crystal Report Works with IIS Epress but not with Local IIS

$
0
0

Hi,

 

I have an ASP.Net MVC solution (Visual Studio 2015 - C#) and I am trying to export a crystal report to pdf.

If I apply IIS Express to my project, then I can export successfully the report to pdf .

But when I change it to Local IIS and run the same code

reportDocument.ExportToStream(ExportFormatType.PortableDocFormat)

I get the error below :

 

System.Runtime.InteropServices.COMException: The system cannot find the path specified.

 

I googled it and found that it may be an authentication error, so I added the "IIS AppPool\DefaultAppPool" user to the security section of the folder that contains the Crystal Report files. But the problem remains..

 

Do you have any workaround about this?

 

Thanks in advance for your help!!!

Nicholas

Error while disposing ReportClientDocument during postback

$
0
0

Hi,

 

My web application is develop using the following:

 

- VS2013, most web pages uses a master page.

 

- CRforVS (13_0_14), use just to create a report document and preview result on developer machine. no reference of this assembly in my web.config.

 

- BOE 4.0, these objects I use to preview reports at runtime, below is a sample reference on my web.config file.

  <add assembly="CrystalDecisions.CrystalReports.Engine, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" /> etc

 

- Windows 7 32-bit developer machine

 

- All report documents are deployed in Crystal Report Server (BOE 4.0) and my web app access it without any issue.

 

 

Problem:

I have experience 'Not anough memory' during peak hours, I have notice that the report object (ReportClientDocument) is not properly dispose.

 

My action:

Created a javascript that will trigger a postback event whenever the user close the report page, then from the server-side code of that (page_init event triggered) I dispose the report objects(see my sample code).

This works fine to all pop-up report-pages that are not belong to master page.

 

dispose.PNG

 

 

Issue:

Now using the same code I use on report pages belong to master page, it gives me an error (see below)

postback.PNG

 

I notice that the value of "theForm.onsubmit" is null.

 

Hope you can give me a solution or other workaround to get out of this.

 

Thanks,

Erwin

Production runtime for 64bit Server 2008(?) .net framework 4.5.

$
0
0

Hello. Created console application which is used to generate pdf files. http://scn.sap.com/docs/DOC-7824 contained needed installation (Support Pack) files but what about production envinroment. Certainly Install Executables in this page are intented only for development use, but I failed to find executable for production use. I just can't figure out what must be installed to allow my console application to run in production server.

 

Target envinroment would be 64bit Server 2008(?)  and .net framework 4.5.

order month and year value in X-axis

$
0
0

Hi All.

I created function to display X-axisvalue format such "Jan, 2015". In original month and year are integer numbers. When I use month field of cause order is OK. But when I use the function as axis value I'm loosing of order. How do I display function value, for instance, from Jan 2015 thru Dec 2015, left to right in the correct sequence?


My function look like:

 

MonthName({Graph.Month}, true)& ', ' &ToText({Graph.Year},0,"");

 

How to fix the problem?

 

Thanks

Wrong reportsource shown in crystalreportviewer

$
0
0

Hi,

 

I'm trying to dynamically get my data source from my database using a query but it shows the wrong report source even though the query and data source is correct.

Public DA AsNew SqlDataAdapter

Public DS As DataSet 


PublicFunction executeViaSQL(ByVal sqlquery AsString)As DataSet

DS =New DataSet

DA =New SqlDataAdapter(sqlquery, Conn)

DA.Fill(DS,0) 


Return DS

EndFunction 


PrivateSub formload

Dim RS AsNew rptDaily

DS =New DataSet

DS = executeViaSQL(query)'query is public and has a stored query

RS.Load()

RS.SetDataSource(DS.Tables(0))

CrystalReportViewer1.ReportSource = RS

EndSub

The report is showing the default report source even though I've set the report source to a dataset from my database.

crystal report runtime for client machine

$
0
0

hi hope all you are fine

I have a simple asp.net web project. In my developer PC I have

VS 2010,

CRforVS_13_0_9

Windows 7 64bit

And in my client\customer PC I have

UltiDev Cassiny web server

Windows 7 32 bit

.Net Frame work

CRforVS RunTime on Server_redist_install_32bit_13_0

When I Run publish file in client computer all forms are running well except Crystal report

I have read so many post and I have tried but i could not find my Report.

Please Help

Group Tree selection causes database prompt

$
0
0

SAP Crystal Reports, version for Microsoft Visual Studio v 13.0.14.1720

Microsoft Visual Studio 2013

 

I am writing a ASP.NET application to display CR2013 reports. These reports could run on any of our client databases (all of which have the same schema). There is a separate DSN for each client.

 

So, when I set the ConnectionInfo based on the client's DSN.

 

I can get the report to render just fine, but when I select something from the Group Tree, I get "Failed to open the connection."  (see attached file)

 

I tried to set the connection info each time Page_Init runs, but I am still missing something.

 

Does anyone know what I am missing?

 

Thanks


errors when calling Crystal report from dotnet

$
0
0

I am having an issues connecting dotnet application with Crystal report 2013.

 

In (existing) production, application is using old BusinessObjects Enterprise 11.5(CR-X1 R2) and old dotnet framework V 2.0.

In new test-VM, reports are migrated from CR-XIR2 to CR2008 and CR2008 migrated to CR2013 after server installations.

Also dotnet application framework is upgraded, all other features are running fine except crystal reports.

I am getting following error when trying to access the reports, i did not change the code after reports migration:-

ERROR: The document has not been opened.

at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.get_DatabaseController()

 

This error appearing when i am using .rpt files from the server folder location, same mechanism used in old crystal server. After getting these errors, i tried to use reports that are in CR repository which i migrated through upgraded tool by changing Crystal.UseLocalReports = true , i am getting below error:-

 

ERROR: Method 'get_HistoryInfos' in type

'CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper' from

assembly 'CrystalDecisions.CrystalReports.Engine, Version=14.0.3500.0,

Culture=neutral, PublicKeyToken=692fbea5521e1304' does not have an

implementation.

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

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

 

any advice is appreciated.

Zoom report from javascript?

$
0
0

Hey guys,

 

Is there any way to zoom the report from javascript/jquery?


Other functions like print, export or search can be called by "clicking" the button from javascript like this:

<script type ="text/javascript">

  function ExportReport()

  {

     document.getElementById('CRViewer_toptoolbar_export').click();

  }

</script>

 

And I want to use the zoom control from javascript/jquery. The value can be changed with that:

$('input[name="text_CRViewer_toptoolbar_zoom"]').val("125%");

 

But I have no idea to "confirm" or "submit" this input field.

 

Any ideas?

 

Kind regards

OutOfMemoryException after Windows-Update KB3078601

$
0
0

After installation of the Windows-Security-Update KB3078601 my report-printing throws a System.OutOfMemoryException. The exception throws in the Methode CrystalDecisions.Shared.PageRender.draw_FieldObjectInstance.

 

I use .NET 4.5.1. The report contains Database Fields. The Problem has a field for a Bar Code 2/5 Interleaved. I bind the field and set font "Bar 25i e".

 

If i implemented the field as text object and in this object I embeded the database field. I doesn't get the exception.

 

Has someone an idee for this Problem?

vs 2010 app prints single label as admin user, double when logged in as other user

$
0
0

I know double printing of labels has been addressed many times on here, but I can't find anything relating to what is happening in this instance.

 

OS - Win 7

VS2010 SP 1

CRforVS2010 SP14

 

Printer. Eltron TLP 2742

 

I developed a Windows label app that simply prints a barcode label from a textbox input. I developed it under the admin account.I tested it out and It works fine. A nice singel 2X4 barcode label.

 

Moved the exec and config files to a folder in the Program Files (x86) folder and ran the exe from there. Again, it worked fine.

 

I then logged out and back in as another user. When I ran the exe, I got 2 labels, one of which was blank.

 

I then logged out of the other user and back in as Administrator. I copied the vs 2010 project from the Administrator vs 2010 folder to the other users 2010 folder, logged back in as the other user, opened the project in vs 2010 and proceeded to compile and run the program in the development environment. I got 2 labels again, 1 blank, 1 with the barcode.

 

Both developed programs use the same report from a designated folder in the root of C.

 

The code sets the "Disassociate Formatting Page Size and Printer Paper Size" property to true prior to printing the label. .

 

I'm at a loss.

PrintToPrinter: A generic error occurred in GDI+ everytime

$
0
0

Hi,

 

We've deployed a windows .net application with Crystal Reports .net 2010, version 13.0.13.1597.

 

The application prints 3 crystal reports. 1 out of the three don't print on specific machines, which are Windows 7, 4GB, X64. There machines are brand new.

 

The error message thrown when trying to print (via the PrintToPrinter Method) is:

 

System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.    

at System.Drawing.Graphics.CheckErrorStatus(Int32 status)   

at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)    

at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, Single x, Single y, StringFormat format)    

at CrystalDecisions.Shared.PageRender.draw_FieldObjectInstance(FieldObjectInstance fieldObject, Graphics g)

 

 

Please help!!

 

-F

Crystal Reports 14 - Publish Reports (Print?) Help

$
0
0

Complete novice at CR.

 

I am upgrading a clients system from Version 8.5, to 14.

 

The report version of this seems to be fine, migrated the DSN and database fine, i can connect, merge data, etc.

 

In the old system, the reports were being viewed inside of WonderWare InTouch through an ActiveX control

 

The new CRViewer for active x control does not work, as the CRViewer1.ReportSource = Report points towards an object, which is not allowable inside of WonderWare.

 

I can pretty easily embed an ActiveX Explorer where I can open html files (like offline webpages), but for the life of me I can't even figure out how to force CR to publish, or print reports to a file???

 

I basically want to automate CR to make daily reports for me, in .htm / html format that I can view inside of a browser.  

 

Is this possible?

 

Current system is:

Win 7 Pro 64 Bit

Crystal Reports 2013 - Support Pack 4

Version 14.1.4.1327

 

 

Even if i can't do this, how do I publish these reports without going in and doing the "Preview View" and having to enter a date / time?  (This is probably a bit more than operations can handle, and will be cumbersome / tiresome effort for them).

CR runtime uses tables from the wrong schema (Oracle)

$
0
0

Hello:

 

I am in process of re-writing an old Delphi app that ran CR reports via the VCL component to a .Net app that uses the .Net CR components.

 

As for versions, I am using VS 2013, .Net 4.5.1 and I installed CRforVS_13_0_14. The reports connect to an Oracle 10g database. The reports that I am testing haven't been created by me. Some of them are very old.

 

I am experiencing a weird behavior in the .Net version where the CR runtime uses tables from the wrong schemas while the designer (11.0.0.895) works fine.

 

At runtime I am using the following code to set the connection information:

 

private ConnectionInfo CreateConnectionInfo()
{
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.UserID = _reportRequestInfo.ReportRunUser;
connectionInfo.Password = _reportRequestInfo.ReportRunPassword;
connectionInfo.ServerName = _reportRequestInfo.ReportRunInstance;
return connectionInfo;
}

 

private static void SetDbLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
{
Tables tables = reportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
{
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);

 

}
}

 

So, the report accesses a bunch of tables all in the same schema, let's say SCHEMA1. In design mode all works fine. However, at runtime, somehow CR assigns a different schema (or schemas) to some of the tables. The problem is that there is another schema in the database - let's call it SCHEMA2 -  that contains some tables with the same names as in SCHEMA1. I used a session browser to see the open cursors that the CR runtime runs and I can see that it runs queries such as this one:

 

  SELECT owner, object_type

    FROM sys.all_objects

   WHERE OBJECT_NAME = 'TABLE1'

ORDER BY object_type ASC

 

In some cases this returns more than one row, and unfortunately the first row is for the wrong schema, i.e. SCHEMA2.

 

What can I do to fix this? I have to admit, I am freaking out a bit. So far, I tested about 100+ reports, they all seemed fine, until today, when I compared the results for one report and the rows returned by the different versions of CR didn't match. I looked then at the queries both runtimes executed, the old version was fine, but the new one had used the wrong schemas for some of the tables.

 

Thanks


Reports Don't Match

$
0
0

I am having an interesting problem.  I have created a report using CR2013 (full version).  I then pulled the report up in the VS Crystal Reports Viewer.  Note that Capture2 (VS Rpt Viewer) has a line "Documentation" which is not in the Capture1 (CR2013).  The CR2013 has the correct data. I am using a suppression formula in CR2013.   Is there something that I should be doing in the application to make the views the same? 

 

 

Using:

Sap Crystal Reports 2013 (Version 14.1.1.1036) to create report

Visual Studio 2010 (CRforVS_13_0_14.exe) to view report

 

 

This is from the VS application using the report viewer:

Capture2.PNG

 

This is from the Crystal Reports 2013:

Capture1.PNG

What is the best way to run a CR report generically from a .Net application ?

$
0
0

Hello:

 

I came across the issue I reported here: CR runtime uses tables from the wrong schema (Oracle)

 

Now I am confused because what I thought it would work it actually doesn't work in all cases.

 

I used code like this to set the connection and run any CR report in our system.

 

private ConnectionInfo CreateConnectionInfo()
{
ConnectionInfo connectionInfo = new ConnectionInfo();
//  connectionInfo.DatabaseName = "rdDev";
connectionInfo.UserID = _reportRequestInfo.ReportRunUser;
connectionInfo.Password = _reportRequestInfo.ReportRunPassword;
connectionInfo.ServerName = _reportRequestInfo.ReportRunInstance;
return connectionInfo;
}

 

private static void SetDbLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
{
//  Database database = reportDocument.ReportClientDocument.DatabaseController.Database;
//  foreach (ISCRTable table in database.Tables)
//  {
//    _log.DebugFormat("table: {0}", table.QualifiedName);
//  
//  }

 

Tables tables = reportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
{
TableLogOnInfo tableLogonInfo = table.LogOnInfo;

 

_log.DebugFormat("table={0}, location={1}", table.Name, table.Location);

 

tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
}

}

Digging more into the issue, I have I found code such as this one: crls/CrlsReportDocument.cs at master · chrishibler/crls · GitHub

or the one that is generated by Ludek's utility (very similar with the code from the previous link) that sets all sorts of properties and it makes use of the RAS Server classes

 

Do I need to code this way or the other way? It seems that my way of doing it has the issue that it doesn't retain the original report table schema names.

 

Basically there are two sets of objects, one under the CrystalDecisions.ReportAppServer.DataDefModel and the other one under CrystalDecisions.CrystalReports.Engine. When do I use one and when do I use the other?

 

I looked with .Net reflector and the objects under CrystalDecisions.CrystalReports.Engine seem to be wrappers of objects under CrystalDecisions.ReportAppServer.DataDefModel. Why have two sets of objects? I personally find it confusing.

 

 

Thanks

"Loading..." during report generation?

$
0
0

Hello,

 

we have several reports which take minutes to generate. Is there a way in CRVS to show a "Please wait" or "Loading" message while the report is loading?

 

SAP Crystal Reports, version for Microsoft Visual Studio v 13.0.14.1720

Microsoft Visual Studio 2013

 

 

Thanks

Generating an RPT file

$
0
0

This question has probably been asked before, but I didn't find anything that specifically answered it, so here we go:

 

We have a database with hundreds of tables, and I need the capability to generate reports on the fly from a custom query.  These would, of course, be simple reports showing the contents of a table or a view. 

 

However, I will also need to be able to specify the fields, set the column headings, include rudimentary filters, indicate the report orientation (portrait or landscape), and possibly other report characteristics.  In other words, I would like to be able to generate an RPT file by taking an existing RPT file template, making the necessary changes, and then running the report.

 

Ideally, I would like to be able to work with an xml version of a Crystal Report template, and generate an RPT file from that.

 

We have both CR 2013 and CR for Visual Studio, so either one could be used.

 

What is the best way of doing this?

Crystal Report license FOR VS 2012/2013

$
0
0

Our company is into software development of customized web applications for different clients/customers.

We use VS2012/2013 to develop our applications and Crystal Report for VS-2012/2013 to develop the reporting template requirements.

 

 

In the terms and conditions with our clients, we will be providing the SOURCE CODE to them and that includes

the Crystal Report templates for them to publish the application to their production server ( to be used internally by their employees ). Our clients have an internal development team which also uses VS2012/VS2013.

 

 

This time we will be asking them to download the Crystal Report for VS 2012/2013 and its equivalent runtime for them to be able to review the templates and publish them together with the source code of the web application into their production server.

 

 

Our question is, do they need to buy a Crystal Report license to be able to publish the application into their production server? As per our understanding they also fall into the FREE category of Crystal Report for VS 2012/2013.

 

 

Would appreciate your help.

 

aaron

Viewing all 2556 articles
Browse latest View live


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