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

Error when trying to export to PDF - "The system cannot find the path specified"

$
0
0

About half of our development team and half of our customers have started getting this error when trying to export a report to PDF..."The system cannot find the path specified".  I'm not sure when this started but I used to be able to export and now I cannot. 

 

We are using version 13.0.13.1597

 

Thank you,

Lindsay


Exception while exporting the CrystalReport to PDF/Excel/Word

$
0
0

My .NET application works fine when I use the CrystalReportViewer to view the generated reports and later export to pdf/excel/word.
However it throws me this runtime exception when I try to export the report programmatically to one of the formats as mentioned above.

 

The code basically tries to export the crystal report to a certain format

 

For ex:

rptLayout.SetDataSource(dataset);

rptLayout.ExportToDisk(ExportFormatType.PortableDocFormat, "C:\\TEST.pdf");

 

 

 

Method not found: 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()'.

 

A little bit of search on the web yielded me no proper response except to install latest CR Runtime.

 

My dev pc configuration

 

  • IDE is Visual Studio 2010
  • Programming language as C# .NET 4.0
  • Version of SAP Crystal Reports for Visual Studio : 13.0.14.1720

 

Can anyone at SAP let me know what could be the possible reason for this issue

 

This issue needs to be fixed on priority in our application

 

Thanks

Srivatsa

I get blank page after publish Crystal Report to ISS

$
0
0

Hello,

 

I have a website in VS2013 and I have created a Crystal Report witch work in development environment but when I deployed it to server I get a blank page. I know there is a lot of information about this error but I’ve tried all I’ve read and don’t work.

 

My development machine:

Windows 8 64 bits. VS2013 with Crystal Report (13.0.13.1597). 32 bits

 

Server machine:

Windows Server 2012R2 64 bits

Crystal Report (13.0.13.1597). 32 bits

 

I have copied the folder "aspnet_client\system_web\4_0_30319\crystalreportviewers13" to my website folder.

 

I have added to my web.config the following elements:

 

<configSections>

<sectionGroup name="businessObjects">

<sectionGroup name="crystalReports">

<section name="rptBuildProvider" type="CrystalDecisions.Shared.RptBuildProviderHandler, CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, Custom=null"/>

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

</sectionGroup>

</sectionGroup>

</configSections>

 

<businessObjects>

<crystalReports>

<rptBuildProvider>

<add embedRptInResource="true"/>

</rptBuildProvider>

<crystalReportViewer>

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

</crystalReportViewer>

</crystalReports>

</businessObjects>

 

<appSettings>

<add key="vs:EnableBrowserLink" value="false"/>

</appSettings>

 

I have checked with browser developer tools that all files are served (crv.css, style.css …)

 

I have configured IIS to run 32 bits applications.

 

I have developed an application running as a service (VB.NET) in the server that create the same report and export to PDF and works.

 

In the web application, I have tried export the report to a PDF and send it to browser and don’t use the Crystal Report Viewer with the same result. I can see the pdf in the development machine, but not in the server.

 

Can anyone help me? I appreciate your help.

 

Thanks.

MaxRowsetRecords Registry Entries Not Working

$
0
0

Hi.  I am using Crystal Reports for Visual Studio with Visual Studio 2013 and have the reports running on .NET 4 website on Windows Server 2008 R2. One of my reports uses a dynamic parameter and the dropdown is not showing all the values.  I had this problem about a year ago and I was able to solve it by adding the MaxRowsetRecords registry entries with a value of 2000.  Now there are about 2500 values.  I have changed the MaxRowsetRecords values to 10000 and restarted the server but the dropdown still only shows 2000 values

 

Here are the registry entries I have changed:

 

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DatabaseOptions\LOV]

"MaxRowsetRecords"="10000"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DatabaseOptions\LOV]

"MaxRowsetRecords"="10000"

 

[HKEY_USERS\.DEFAULT\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DatabaseOptions\LOV]

"MaxRowsetRecords"="10000"

 

[HKEY_USERS\.DEFAULT\SOFTWARE\Wow6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DatabaseOptions\LOV]

"MaxRowsetRecords"="10000"

 

Does anyone have a solution for this?

 

Thanks,

 

David Perry

How can I pass the number (short type in C#) to the parameter of Stored procedure in Crystal report?

$
0
0

I want to generate a report with C# and Crystal Report.

 

in Crystal report, the data  come from a stored procedure with parameter, there is a number parameter named @type, the valued was assigned form C# code:

 

    discretevalue1 = new ParameterDiscreteValue();

 

    discretevalue1.Value = "1";

 

    ParameterValues values1 = new ParameterValues();

 

    values1.Add(discretevalue1);

 

    this.objRpt.DataDefinition.ParameterFields["@Type"].ApplyCurrentValues(values);

 

 

 

in Stored Procedure,  the parameter was declared as:

 

 

 

Create PROCEDURE SP(@Type smallint) as ...

 

    IF (@Type=1)

 

    Begin

 

        //doit

 

    end

 

...

 

 

 

if I commented the line in SP: IF (@Type=1), the statement in doit could be executed successfully, I could see the correct data on the report. but if I did not commented the this line, the statement in doit would be executed, no data would be appeared on the report.

 

 

 

run the SP in SQL server: EXEC SP 1  will get the correct result.

 

 

 

I do not know what caused this issue. Could someone tell me how can I pass the number parameter to Stored Procedure in Crystal report?

 

 

 

Thanks for any help

Report using wrong database name in fully qualified table names

$
0
0

Background

Consider three SQL databases: Test, Production, and ProductionCopy. All three databases have identical schemas. All are running on the same server.

 

I have a report with several subreports. This report makes use of both Crystal Reports database commands and directly reading the database tables.

 

When developing the report inside the Crystal Reports IDE, I have set all datasource locations to point to Test. At runtime in my .NET application, all report datasources in the CrystalDecisions.CrystalReports.Engine.ReportDocument object are recursively set to Production.

 

Problem

When I run this report against Production, all data from tables is being read from Test. All data from Crystal Reports database commands is being read correctly from Production.

 

When I run the report against ProductionCopy, the problem goes away.

 

The only change being made to switch between the two is to the connection string in the application's Web.Config file.

 

When I run the application from Visual Studio, the problem goes away. To recreate, I have published the application to run locally on IIS.

 

Running traces in SQL Server Profiler, all report queries are being executed against the proper database. However, when running against Production, the queries reading directly from tables are using Test in the fully qualified table name.

i.e. SELECT "SomeTable"."Foo", "SomeTable"."Bar", "SomeTable"."Baz" FROM "Test"."SomeSchema"."SomeTable"

 

However, when running the report against ProductionCopy, the fully qualified table names are correct.

i.e. SELECT "SomeTable"."Foo", "SomeTable"."Bar", "SomeTable"."Baz" FROM "ProductionCopy"."SomeSchema"."SomeTable"

 

What I Have Tried

Restoring ProductionCopy directly from the live version of Production, to ensure that both contain identical data.

 

Attaching a debugger to the IIS process to check the values of the data connections in the ReportDocument object at runtime. At the point ExportToStream is called on the report, all database and datasource connections for the report and all subreports point to Production.

 

Attempting to serialize the ReportDocument object so that it can be searched for all instances of the string "test", though I was unsuccessful in my attempts.

 

Updating to the latest versions of Crystal Reports 2013 (14.1.6.1702) and Crystal Reports for Visual Studio (13.0.15.1840).

 

Running another report with a similar structure, but the problem does not occur.

 

Next Steps

It turns out I can't attach a .rpt file to this post, and I definitely can't attach a MCVE.

Crsytal Report for windows server 2012 R2

$
0
0

Hello

From the beginning of my career I developed many reports using crystal reports XI (version 11.0.3300.0) and IIS6.0 , ASP.NET (2003) . Recently I tried to migarte this application using visual studio 2013 & deployed solution to windows server 2012 R2  IIS8.5 . Could you please help me to know wich version of crystal report to use it , because i try with

Crystal report XI R2 version 11.5.3300.0

Crsystal report SP 12.13.14.15

But dosn't work for me

 

 

PS : With windows 7, IIS7, visual 2013 and crystal Report XI R2 it work for me but when i try it winth windows server 2012 R2 and IIS8.5 . Crystal Report not working for me

 

 

Best regards

Med

Problem running setup after publishing solution using VS2012 & CR for VS

$
0
0

I have developed a Resort Operation Support System using VS2012 & CR for VS.. After I publish the solution, and then execute the setup on a client computer, I get the following error:

"setup has detected that the file 'C:\Users\Roger\AppData\Local\Temp\VSDE0CF.tmp' has changed since it was initially  published."

The options given are to cancel setup or retry(futile)..

 

Anybody have any idea what I am doing wrong???? 


Crystal Reports 9 PDF creation in Windows 2012 R2 Server

$
0
0

We are using Crystal Reports 9 ( called from VC++ application) for generating reports

In windows 2012 , exporting to text or CSV works fine but PDF reports fails

 

Operation not yet implemented

 

This PDF creation works fine in Windows 2008 R2.

 

 

 

Is Crystal Reports 9 is supported with Windows 2012?  if yes any settings needs to be changed?

 

 

 

Regards

Ganesh

Detect Print/Export Event Crystal Report Viewer Control on ASPX

$
0
0

Hello,

 

I do not see the event in Crystal Report Viewer control to capture event when Print or Export button was clicked.

Clicking these two buttons will create HTTP post back to ASPX web page. I can see this result using Fiddler.

 

__EVENTTARGET and __EVENTARGUMENT have values

 

This code work i.e. if I want to attach any code for control when Search button is clicked

 

 

Please refer to code sample I provided. For some reasons I could not insert the C# code using Insert option.

 

 

 

Thank you.

 

Serghei

Using Crystal Report for VS runtime from DLL which is called be C++ exe

$
0
0

Hello,


I am doing some evaluation about moving our current reportsystem to a newer state using the newest "Crystal Report for Visual Studio" with the newest servicepack 5 and Visual Studio 2013.


I managed to create and load new reports to the CrystalReportViewer in C# quite easily and I is it also possible to load our existing reports, which were created with Crystal Report XI.

They use ODBC Text Drivers.

 

This all works perfectly fine in a stand alone application which uses .Net 4.5.2.

 

As the next step I tried to add this simple client as a dll library to our existing program, which is written in c++.

 

When debugging it works just fine and as expected, but when I then start the main program normaly and try to show a report Crystal Report crashes with the following message when CrystamReportViewer.ReportDocument is set.:

Crash CR.PNG

As you see the message does not help that much here.

Since it is working as a stand alone application and it gives the same error in all reports I suppose it is not a problem of the reports.

 

Have someone experienced something like this before?

 

The Crystal Report Assemblies use .Net Framework 2.0.

I have read that it is needed for standalone programs to add a app.config file with

 

<?xmlversion="1.0"encoding="utf-8"?>

<configuration>

  <startupuseLegacyV2RuntimeActivationPolicy="true">

    <supportedRuntimeversion="v4.0"sku=".NETFramework,Version=v4.5.2"/>

  </startup>

</configuration>


But this is not possible for library dlls.

As far as I know this needs to be set in the main program, which is the exe written in C++.


So the problem is to use the Crystal Report runtime in a .Net 4.5.2 library dll which is called from an exe written in C++.

Do someone maybe have an idea what to do here and how this can be fixed.



Help is pretty much appreciated and thanks in advance.


.NET application - no extra instalation

$
0
0

Hi

 

Is it possible to create a portable client side application without having to install in all machines client tools or .net sdk. Idealy would have all necessary dlls loaded in my project.

 

I thought I had gotten this working, however it stoped working with below error loading sessionmgr

 

 

Error Retrieving the COM class factory for component with CLSID {6670DE06-3F39-4C5D-9238-71FF984D265

4} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040

154 (REGDB_E_CLASSNOTREG)).

 

Thanks

Change database table at runtime

$
0
0

Hello, I have more than one table with the same columns, then when I build the report fieldObject, it works like table1.column, but I also have table2, table3 with the same column. So when I try to view the report for table2 or table3, it does not show anything.

 

could anyone help me, please?

Form front to pass parameters to crystal report

$
0
0

Hi all,

 

I had hoped to build a simple VB6 front to allow the user to pass parameters to a Crystal Report, facilitate exporting/email reports, alter the sort order, suppress groups etc However, I am working with Crystal 2011 and have learned that the crviewer.dll was retired in Crystal XI. What can I use instead to allow a user to run reports?

 

Thanking you in advance,

Imelda.

Operation not yet implemented error in PDF export

$
0
0

Greetings!  This error started to appear just this morning (everything was working just fine yesterday) when the users attempt to export a Crystal Report to a PDF file.  I've searched the net, and nothing out there solves the problem.  The report is using just Arial font, so it is not do to some esoteric font.  The msvcp100 and msvcr100 files are from July, so they are fine.  Frankly, I'm stumped, so if anyone has any suggestions on what we can try, I'd appreciate the input.  In the meantime, I have modified the code to export to a Word format, which is working just fine, as does exporting to an RTF format; it is just the PDF export that is causing this issue.  Help!  Thanks....


Issue with dll (crdb_adoplus.dll)

$
0
0

Hello,

 

 

I'm trying to use crystal report with vs 2015 and when I use the "Main report preview" it works fine, but when I try to use the "Crystal Report Viewer" I get the following error:

 

 

Message: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

Additional information: Could not load or assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI4.0\win64_x64\dotnet1\crdb_adoplus.dll' or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference

 

 

I've found the dll (crdb_adoplus.dll) in C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI4.0\win64_x64

 

 

After that I've created the dotnet1 folder and put the dll into it, but then I got the following error:

 

 

System.IO.FileLoadException was unhandled

Message: An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll

Additional information: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

 

 

Could you please help me solving this problem?

 

 

Thank you.

Why the ToolBar and GroupTree plus the Row separators in the Crystal Report not seen while viewing through IE 11 browser?

$
0
0

I am unable to view the ToolBar and GroupTree plus the Row separators in the Crystal Report(rpt file) while rendering through IE 11 browser.

 

In IE 8 there are no such issues .

 

The crystal report package in the hosted machine is crystal report for vs 2008. The CR  Version is 10.5.3700.0

I can't see reports in the browser

$
0
0

Hi!

I upgrade to Windows 10 recently; before this, I was in Windows 7. I wrote code with VS2010 (Visual Basic exactly) for desktop and web. Desktop reports works fine, but not the same with web. I visited the page where are Updates & Runtime downloads (SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads) and installed SP15 in my laptop. In theory, SP15 fix my problem, but no. When I run a web report the browser go to the page (response.redirect) but does nothing. I can't see report, nor the viewer; even the application buttons in the page don't work. To get out there, I might to go back. I appreciate the help you can give me.

Problem with BarcodeC39

$
0
0

Anybody ever get u25azalea.dll or u212azalea.dll  BarcodeC39ASCII function to work using

Crystal Report 13_0_8 and MSVC 2012 x64 ultimate ?

 

All I ever get printed in the report is *MYTEXT*.

 

This is the code in my custom formula

 

BarcodeC39ASCII({Qry_Conditions.city})

 

There is no barcode font in the format object, should there be one ?

 

I downloaded u25azalea.dl and u212azalea.dll for both x64 and x32

and copied then to

 

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\Crystal Reports 2011\

 

and my report  still doesn't show up with any barcodes.

 

I change target to x86 and x64 and still no barcode.

I tried BarcodeC39 and BarcodeC39ASCII and they don't work for me

 

I'm not getting any errors, its just that my report is showning *MYTEXTSTUFF* instead of a barcode.

 

what am i doing wrong ?

Barcode fonts licence

$
0
0

Do I need to buy standalone licence for Azalea builtin barcode fonts in CR 2011 (to distribute reports via web forms) ?

I use currentrly free 3 of 9 fonts and it works only for PDF export.

 

Thanks,

Miroslav

Viewing all 3636 articles
Browse latest View live


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