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

Problems with CrystalReportViewer after SP5!

$
0
0

Hello members!

 

After having Problems with Crystal Reports we upgraded the pc of a customer and my developer machine (VS2010) to Service pack5.

 

The application is divided into different regions (ribbon bar, mainregion, state bar, ..) and the content is added to the region via Prism mechanisms. The report viewer is loaded into the main region. The view in the main region treats the different views like a register.
When I open a second view that is loaded into the main region, the view with the CRViewer gets deactivated and the other form is active. When I switch back to the view on which the CRViewer is placed, the view stays blank.

 

Closing and reopening of the View with the CRViewer makes the CRViewer visible again. Switching between the different views makes the CRViewer blank.

 

I checked if it is something in the code and copied the same assemblies to a computer without any Crystal report service pack (version 13.0.0.99). Started the program, open different views and the CRViewer is visible evertime.

 

On my dev machine (SP5 installed) i tried to create a new CRViewer when the view is activated but this approach was without any luck. The view stays blank.

 

Did someone of you had any similar problems?

Thanks for your help.

Alex


Cannot perform CAS Asserts in Security Transparent methods

$
0
0

Hello everyone.

I'm having an issue with cristal reports when moving to a shared hosting.

My first question is:

 

1) Is there any problema with crystal reports and shared hosting? For example, something related to Full Trust level?

 

If not must use Full Trust, why when I ftp all the files to the remote server, and try to get de report, I obtain this exception:

 

Cannot perform CAS Asserts in Security Transparent methods

 

In my developing machine there is no problem.

I'm not finding too much information about it, and that's because i'm starting this discussion.

Thanks a lor for your answers.

Regards.

Report Layout

$
0
0

Hi people. I need some help with a report made in crystal reports 2012 for visual studio (ver 2008).

 

My problem is that the same report is with different layouts in different computers.

 

For example: in my computer, a report has one page. In other computer, the same report has two or more pages...

 

What can cause this?

 

Thanks in advanced for any help.

Deploying correct CR runtimes for CRforVS Project/exe

$
0
0

We've found many posts/blogs/etc. about deploying the Crystal Runtime components For instance:  http://wiki.sdn.sap.com/wiki/display/BOBJ/Deploying+Crystal+Reports+for+Visual+Studio+2010+Runtime and

http://scn.sap.com/thread/3366125

 

But, we want to make sure we understand the correct runtimes (meaning 32-bit or 64-bit) to install on a client, with a corresponding CRforVS project, based on the following:

 

A CRforVS project created in VS2010 (VB.NET) uses the latest components (SP6) to display (print/preview/export) a Crystal Report created in the Crystal Report designer.

 

The CRforVS project is compiled with a Target CPU of x86 (this is how SAP/BO had advised past versions of CRforVS to be compiled as Crystal did not support 64-bit.), and Target framework of .NET Framework 4. 

 

Now that Crystal does support 64-bit, in order to support executing this particular CRforVS project from both 32-bit and 64-bit client machines, our questions are:

 

  • Does the CRforVS project still need to be compiled with a Target CPU of x86? 
    • If so:
      • Do we only need to include the 32-bit runtime components for all types of client machines (32-bit and 64-bit) since the Target CPU is x86? or
      • Do we need to distinguish (at time of install) that if the client machine is 32-bit, install the 32-bit runtime and if 64-bit, install the 64-bit runtime regardless of the CRforVS project's Target CPU setting?

CR2011: Failed to open the connection - only for reports that use parameters

$
0
0

(CR2011, iSeries database, nothing else)

 

I have one report for which I set filters.  I have two reports that receive parameters.

 

All three reports are on a network drive and accessed in .Net C# Windows (VS2010) applications.  Everything works fine on my development computer (both Crystall Reports 2011 and VS2010 projects are created here).  All three reports load up and execute in the CrystalReportViewer(s).

 

When I run my application on computers other than my development computer, the one report for which I set filters works fine.  The two reports that receive parameters get messages in one window:

 

"Failed to open the connection."

"Failed to open the connection."

"MyReportName {looks like a guid here}.rpt"

 

(These two reports have subreports, the report that works fine does not.)

 

If I set up an ODBC connection on the client computer (with the name I used on my development box) then those two reports execute.

 

Obviously, I can add ODBC connections on everybody's computers.  But the one report that gets filters works without that.  Is there something I should be doing regarding the reports that receive parameters so that I don't have to set up ODBC connections on every user's computers?

 

Thank you,

Gary

I encounter a "export failed" message when I use Crystal report viewer in my application

$
0
0

Hi,

  I use Crystal report viewer in my application. I use "export" button to export a pdf report to outlook 2010, I select the destination "Exchange folder", then next. next.. in the last , a "Export failed" message pop up,the title is "Crystal report viewer". This issue only appear in outlook 2010. It work fine in outlook 2007.  I research it and found the mail type is POP/SMTP in 2007, IMAP/SMTP in 2010. base on this I create a

IMAP/SMTP in outlook 2007 and also reproduce this issue. So I think the mail type may be the cause of this issue. But I am not sure.

I want to know if this is a compatibility issue of Crystal report ?

Problems Migrating from CR XI (v11) to CR2011(v13) - Subreports - Params

$
0
0

Dear Forum

 

I am wondering if someone can help and guide me.

 

We have just migrated our runtime versions from v11 to v13.

 

We have made no changes to the code to view the report

 

We have a report with the following configuration

 

Main report.

Param 1

Param 2

Param 3

 

Sub report

 

Param 1 linked to Param 1 Main Report

Param 4

 

In v11 this ran without issue

in v13 the report fails informing us we are missing a dll

 

If i reconfigure the report

 

So that

Main report has

Param 1

Param 2

Param 3

Param 4

 

Sub Report

Param 1 linked to Param 1 main report

Param 4 linked to Param 4 Main report

 

The report works fine

 

I am aware the the second report configuration is the best configuration. Unfortunatly our customers have a number of reports with a conguration illustrated in the first example and are enquiring why the reports were working in the older version

 

Question

 

Are any changes required to our existing code to accomodate the params in subreports with the latest version of the runtime

or have we in some way not distributed the dlls as suggested by the error message.

 

With Kind Regards

 

 

Paul

After SAP upgrdation from crystal report Xi to crystal 2010. Not able to connect to dll through dot net 4.0 application

$
0
0

After SAP upgrdation from crystal report Xi to crystal 2010. Not able to connect to dll through dot net 4.0 application

Getting below error

 

USER NAME - administrator

Password =""

apsserver =
Reportservername

authmethod
=
ENTERPRISE

 

When application is trying to create the instance we are getting
COM exception.  We tried to register the dll using regsvr32.exe   but no
success.

Please suggest are we missing
some supporting dll . Please help us approach to configure the SAP tool dot net
paltform

 

  Exception :

                            

Please guide


Wrapping problem in Web Crystal Reports Viewer

$
0
0

I am using can grow fields in my reports. It has s wrapping probem where fields overlab. this problem occurs in the webviewer but not when you export to pdf from the web viewer.

 

The reports were created using 14.0.4.738 RTM. The Viewer seems to be 13.0.2000.0. Below are scresnshots of the problem.

 

How do I fix this?

 

Overla.png

CrystalDecisions.ReportAppService.CommonObjectModel not in Global Assambly Cache (GAC)

$
0
0

Hello everybody,

 

 

i've developed a .NET Application with Crystal Reports for Visual Studio for a friend of mine.

Developing Maschine:

Win 8 64 bit

VS 2012 Utlimate; CR for VS 2012 13.0.5.891

 

Target Maschine:

Win 7

.NET Framework 4.5

 

In my Application both, the .NET Framework 4.5 and the Crystal Reports Runtime Engine, are marked as required components.

While installing the Application both components seem to be installed.

 

On a x64-System my friend gets an error message: "CrystalDecisions.ReportAppService.CommonObjectModel not in Global Assambly Cache (GAC)", but in the Folder C:\Windows\assambly there is a file CrystalDecisions.ReportAppService.CommonObjectModel.dll. This DLL has as processor architecture AMD, but the processor is a Intel.

 

What can I do?

 

On x86-System everything works fine!

Problems with CR export files

$
0
0

QQ拼音截图未命名.png

 

as above picture is shown, I developed a program with cr for vs 2012.

 

normally,user can export many formats of files, including rpt files.

 

But for some reason, I have to prevent users to export  rpt files.

 

 

And how can I do ?

 

write some codes in my program?

 

 

Many thanks.

Reading Dynamic Parameter Values using BOE SDK in .NET

$
0
0

I am using VS2010 with BOE SDK 3.1 to read Crystal Reports from the BOE Server.

 

I use query for and parse InfoObject into CrystalDecisions.Enterprise.Desktop.Report and read all the ReportParameters.

 

Now if the ReportParameter is of type Dynamic instead of Static, I would like to read all the PickListValues.

 

How do I achieve this?

 

Thanks,

Kumar

Report Stopped Working

$
0
0

I have some reports that are served via a website (using CrystalReportViewer/CrystalReportSource).  Up until a few days ago, things were working well (and have been for several months).

 

Suddenly I'm getting reports from users who are experiencing timeout issues on some (but not all) the reports.  There have been no changes to the reports nor (as far as I know) the web server box nor database.

 

Checking the reports via the browser does show that they are, indeed, showing timeout errors.  Checking the reports through the Crystal Reports XI app on the web server box displays the error "Failed to open the connection"

 

Checking the report locally (on my machine where the reports were initially developed) and everything runs fine.  Loading the data takes about two or three seconds. 

 

Copying the working report from my box to the web server box and running it within the Crystal Reports XI app there and it fails as above.

 

Any ideas?  What should I be looking for?

 

TIA

Crystal reports will no longer print out from within a C# application

$
0
0

I have a couple of CRVS 2010 reports built into a C# application which already existed as a  .NET Framework 2 application (VS 2005) before I updated to VS 2010 and added the reports within the VS2010 environment whilst still compiling with .NET Framework 2. Everything worked fine until I started compiling with .NET Framework 4. I now get the error message which a lot of other people seem to have had:

 

Die Datei oder Assembly "file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.

 

I have also carried out just about all the steps that various people have advised - installed the redistributable runtime with the msi file so that the merge modules are also installed, added the following to the application's app.config file:

 

<startup useLegacyV2RuntimeActivationPolicy="true"><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>

 

I normally compile as Any CPU. I have now also tried compiling for x86 only, as the target system is 32-bit XP Service Pack 3, but it makes no difference. (my developer PC is running Windows 7 64 bit, which I don't think can be an issue as the setup is identical to when I was compiling with .NET2 and it worked fine - just have to install the right runtime and provide the right support dlls).

 

I have also:

 

In increasing desperation installed a copy of crdb_adoplus.dll at precisely the path in the error message

 

Downloaded and installed the latest versions of the runtime and the support pack

 

My code looks like this:

 

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

report.Load(Application.StartupPath + @"\Templates\EinlagernDE.rpt", CrystalDecisions.Shared.OpenReportMethod.OpenReportByTempCopy);

report.SetDataSource(dt);  //DataTable

report.Refresh();

report.PrintToPrinter(1, false, 1, 1);

 

If anyone has any suggestions as to what is going wrong here I'd be most grateful to hear them - this little problem is preventing me from rolling out a number of associated .NET modules.

Deploying correct CR runtimes for CRforVS Project/exe

$
0
0

We've found many posts/blogs/etc. about deploying the Crystal Runtime components For instance:  http://wiki.sdn.sap.com/wiki/display/BOBJ/Deploying+Crystal+Reports+for+Visual+Studio+2010+Runtime and

http://scn.sap.com/thread/3366125

 

But, we want to make sure we understand the correct runtimes (meaning 32-bit or 64-bit) to install on a client, with a corresponding CRforVS project, based on the following:

 

A CRforVS project created in VS2010 (VB.NET) uses the latest components (SP6) to display (print/preview/export) a Crystal Report created in the Crystal Report designer.

 

The CRforVS project is compiled with a Target CPU of x86 (this is how SAP/BO had advised past versions of CRforVS to be compiled as Crystal did not support 64-bit.), and Target framework of .NET Framework 4. 

 

Now that Crystal does support 64-bit, in order to support executing this particular CRforVS project from both 32-bit and 64-bit client machines, our questions are:

 

  • Does the CRforVS project still need to be compiled with a Target CPU of x86? 
    • If so:
      • Do we only need to include the 32-bit runtime components for all types of client machines (32-bit and 64-bit) since the Target CPU is x86? or
      • Do we need to distinguish (at time of install) that if the client machine is 32-bit, install the 32-bit runtime and if 64-bit, install the 64-bit runtime regardless of the CRforVS project's Target CPU setting?


Error in CrystalReport 2011 in windows 7 64-bit

$
0
0

Hi

 

    I am developing the ERP in .Net 2005 and now i need to  migrate my project to .Net 2012

 

    We were using crystal report 1.0 from the begining and now i  downloaded crystal report standard edition 2011 and installed in the

    project in that i am unable to load the data to CR2011 it is giving  and error   "Failed to load database information" and was suffering

    from 2 days by this issue and i changed CRR runtime 32-bit and also 64-bit.

 

   I was using

 

    OS                :    Windows 8 64-bit and now changed to Windows 7 64-bit (not working)

    DataBase    :    Oracle 11g R2 client(32,64-bit) and changed to 10g r2 client 32-bit

     

   Can any one please help me out of this !!!!!!

Printing to dot matrix printers

$
0
0

I have a client that uses multi-part pre-printed stationery for printing their invoices.  We have developed a VB.net application for them to use to run their operations and part of the functionality is printing these invoices.  Their printer of choice is an OKI ML5521.

 

I have designed the invoice based on the OKI printer with a fanfold page size of 13.6" x 11" in Crystal Reports 2011 and set it to use the Utility 12cpi font on the printer.  I can preview the report in the designer and print it to the printer and it comes out with the correct font, printed in high-speed draft mode.

 

However, when I print from our application, .Net changes the font and the print mode of the printer to NLQ.  As a result it is very much slower and our layout doesn't come out correctly.

 

I am using the CrystalDecisions.CrystalReports.Engine.ReportDocument object and calling PrintToPrinter(nCopies As Integer, collated As Boolean, startPageN As Integer, endPageN As Integer). 

 

My code looks something like this (simplified version):

 

oRpt.Load(sReportName)

oRpt.PrintOptions.PrinterName = sPrinterName

ConnectReport(objCon.DataSource, objCon.Database, oRpt)

oRpt.PrintToPrinter(nCopies, False, 0, 0)

I assume I need to take more control of the printer settings using the System.Drawing.Printing.PrinterSettings and System.Drawing.Printing.PageSettings, but I am not able to find much information on this.  Any help or links to resources would be appreciated

Cyrstal repot viewer bug : errorkind

$
0
0

Hello,

 

I have an crystal repot viewer application, developed in C++.net platform. My viewer works fine with some reports, but for some reports it throws the next error :

 

This field name is not known.

Details: errorKind

Error in File : "file path"

Error in formula <Record_selection>

'{V_ADDITIONAL1TODDINFORMATION.CUSTOMER} in ["000"] and '

 

This field name is not known.

Details: errorKind

 

I have research the internet for causes and solution but I could not find an clear answer.

What could cause this error for some reports, and what options could i have to solve it ? 

 

In the development of the application i have used the SAP SDK for .NET and crystal reports XI.

Thanks in advance for your help.

Pagination With Crystal report in Asp.net

$
0
0

Hi,

     I have developed my crystal report with asp.net and now I have issue with it's paging I mean I have query which is returning more than 1 lk , For this i searched many thing on google but could not get any solution. My code is as below...

 

ReportDocument rptMainDoc = new ReportDocument();

  protected void Page_Load(object sender, EventArgs e)

{               

                DataTable dtMain = new DataTable();

                dtMain.Clear();

                SqlParameter[] sqlMainPara;

                sqlMainPara = new SqlParameter[7];

                sqlMainPara[0] = new SqlParameter("Id", 1);             

                string repName = string.Empty;

                dtMain = DbFactory.GetDataByProcedure("GetData" sqlMainPara).Tables[0];

                repName = "Paging Testing";

                rptMainDoc.Load(Server.MapPath(@"~\Reports\RptFile\Paging.rpt"));

                rptMainDoc.SetDataSource(dtMain);

                CrystalReportViewer1.ReportSource = rptMainDoc;

                CrystalReportViewer1.ReuseParameterValuesOnRefresh = false;

                CrystalReportViewer1.EnableParameterPrompt = false;

                CrystalReportViewer1.HasRefreshButton = false; // this is set to false because giving parameter missing error.

                CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;

 

}

 

Now If i use IspostBack() property then when i clicked on second page , I am not able to view any records on page , I can't use Session (as I read many blogs regarding that " i should store that data at some where on server" )but I am storing my session data on sql server so that option is not useful for me.

 

So Can you please tell me what should i do , when user click on second , or any other page then query should not fire again and again.....

 

Thanks in Advance.

Two graphs in one plot

$
0
0

Is there please a possibility to modify the parameters of the two graphs?

graph.png

e.g. to have blue as bar graph and

the orange presented as points interconnected with a line?

 

 

Another question I have.

 

Is there a possibility to upadte 'Main Report (desing)' with real data (at least snap of it) ?

and not need to switch to 'Main report preview'?

 

Thank you in advance for your answer.

 

I use free plug-in SAP Crystal Reports, version for Microsoft Visual Studio. 13.0.6.1027

Viewing all 3636 articles
Browse latest View live


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