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

Is there a way to set ForceLargerFonts registry setting for CR for .NET 4.0 for different versions of Crystal on same server?

$
0
0

Hello,

 

my company is running XI and 2011 in parallel using a .NET application.  For XI we do want Crystal to shrink fonts but for 2011 we do not. I'm able to fix 2011 by updating the registry setting  for  ForceLargerFonts under HKLM\Software\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\Export\PDF. However, this affects both versions.  Is there a way to control this setting by Crystal version for .NET?

 

Thanks,

Odette


Desktop Application hangs after upgrading to Visual Studio 2010 and SAP crystal reports for VS 2010

$
0
0

Hello,

I have a desktop application that was developed in VS 2005. Recently I upgraded the solution to VS 2010. It prompted me that I should install the SAP crystal report separately and I installed the Crystal Report for Visual Studio 2010 installation.

The rpt files were developed using Crystal Report 9.

 

However after the upgrade the reports fails to display. If i debug the code and step through the crystal report will display the first time i select a rpt but hangs the second time i select another rpt. I created a simple crystal report using Crystal Report 9 and it works with my upgraded application. But my original complex report does not load. It hangs saying Please wait while the document is being processed and freezes there.

 

I am using SQL Server 2008 and I have made sure that I am using SQL Server Native Client 10.

 

I use an ODBC(RDO) in my simple report and complex report.

 

I tried upgrading my complex crystal report using Visual Studio 2010 interface. This did not help as well.

 

 

Here is the code that I use to display the report. It works in the old Visual Studio.

 

 

ReportDocument rd = new ReportDocument();

          

 

rd.Load(reportPath + cmbReport.Text);

rd.SetDatabaseLogon(userID, pwd, WNPOCDataPvd.DSN, string.Empty);

  

 

                              TableLogOnInfos infos = new TableLogOnInfos();

                              foreach(Table t in rd.Database.Tables)

                              {

                                        TableLogOnInfo inf = t.LogOnInfo;

                                        ConnectionInfo connect = inf.ConnectionInfo;

 

 

                connect.ServerName = WNPOCDataPvd.DSN;

                connect.DatabaseName = string.Empty;

                connect.UserID = userID;

                connect.Password = pwd;

                         

         

 

                                        t.ApplyLogOnInfo(inf);

                                        infos.Add(inf);

                              }

          

    

            crystalReportViewer1.LogOnInfo = infos;

       

            crystalReportViewer1.ReportSource = rd;

 

 

Few issues I noticed

1) The upgraded code (VS 2010) is able to display a simple report but not my complex report. The previous version was able to display my complex report.

2) If I step through the code (debug), then my complex report will display the first time, but if I try to select a new report (from a combo box) and run this code again in debug mode it hangs at crystalReportViewer1.ReportSource = rd;.

3) If I just run the code (without stepping through) then the application hangs.

 

Thanks

Anina

Save SQL Server Username & Password in subreport calling a stored procedure

$
0
0

Hi,

 

I have a crystal report designed by Crystal Report 2008 developer driving data from a ADO.NET (XML) data source. Inside this report, I have a sub-report driving data from a SQL Server 2008 stored procedure set up as OLE DB (RDO) - SQL Native Client 10 . When my ERP software launches this crystal report, it knows how to put data in XML file and pass it to crystal report. But when crystal report engine wants to launch the sub-reports, it prompts my user at runtime for the database username and password. For security reason I do not want my user to know any username on my SQL server.

Is there anyway I can save username and password inside my subreport so Crystal Report engine would not prompt for database username and password at runtime?

Thanks,

Is the ReportDocument class thread safe?

$
0
0

Hi there,

 

I'm using the ReportDocument class (in CrystalDecisions.CrystalReports.Engine namespace) for generating the reports to PDF files base on the report templates prepared by CR2011. Due to the performance issue, I employed multi-thread approach to use different ReportDocument objects simultaneously in order to speed up the large number of reports generation. The following is my calling sequence on each thread:

 

 

ReportDocument crReportDoc = new ReportDocument();

crReportDoc.Load(templName);

crReportDoc.SetParameterValue(crParam.name, crParam.value);

 

DataSourceConnections dataSourceConnections = crReportDoc.DataSourceConnections;

IConnectionInfo connectInfo = dataSourceConnections[0];

connectInfo.SetConnection(m_crDBServer, m_crDBName, true);

 

crReportDoc.ExportToDisk(ExportFormatType.PortableDocFormat, outpName);

crReportDoc.Close();

crReportDoc.Dispose();

 

 

This approach seems woking fine with me and I tested to spawn upto four threads (by using ThreadPool.QueueUserWorkItem()) for executing the above code segment simultaneously without any problem. Does that means the ReportDocument class is thread safe? As we are going to launch the product soon, so want to have a confirmation that this usage is OK. Thanks in advance.

 

Cheers,

Elliott

 

PS: I'm using SAP Crystal Reports, developer version for Microsoft Visual Studio version 13.x Library and VS2005 for the development, and the target running environment is on Win2003Svr Enterprise.

ExportToStream Error

$
0
0

Hello:

 

I am writing some VB.Net code that runs a report when the user selects the type of report and how they want to export it.

 

Right now I have 2 reports. One runs off of a SQL command line and the other gets it's data from a stored procedure.

 

The SQL Command line report runs fine. The issue is with the report that runs off a stored procedure. The error happens when the ExportToStream line occurs. (On any export request. Line 71, 76, 81 in the attached file)

 

We are exporting our reports this way due to the security in place in the overall application.

 

All of the reports are stored in a subfolder that is accessible to the user. (Other reports reside there and have no problem running.)

 

I have used this process with other reports and they run fine. (General thought, is the issue with the report running a stored procedure?)

 

Attached is the code. Thanks for taking a look and for the help in advance.

Crystal Reports 2011 designer menu

$
0
0

Hi,

 

Our application written in C# allows users to build custom reports using RAS. Once report has been built user can modify it in designer. In our old version we used Crystal embedded designer which is not supported anymore.

The workaround for us would be to launch SAP Crystal Reports 2011 designer as different process. Using this solution causes only 1 problem for us - security breach. Users can browse through [Save As], [Open] and other menus.

 

Is there some way to completely or partially hide Designer menu? Is there an option to disable it?

 

Thanks in advance,

 

Igor

Justified text displaying error

$
0
0

Hi,

 

I've found that justified text in a report wasn't formatted as well.

 

I have CR 2008 with SP1, SP2 and SP4, and I'm tryin' to display a justified text report, within a .NET WebPage developed with Visual Studio 2010.

 

What I have to do??

 

Thanks,

"method not found" error at runtime

$
0
0

I'm trying to deploy a report application.  Working fine on development machine (Windows 7).  Using Visual Studio 2010 with Crystal 2011.  I am getting the following error on a test machine (Windows 7) where the app is installed:

 

Method not found: 'Void CrystalDecisions.Windows.Forms.CrystalReportViewer.set_ShowCopyButton(Boolean)'.

 

I was thinking at first that the Crystal DLL's installed with the app didn't match what is referenced in the application, but I have verified that they are the same.  I did some searches, but couldn't find any other posts related to this error and I'm kind of stuck on this one.

 

Any help would be awesome!

Terry


can't see the parameter dropdown on testserver, but can see it on local pc..

$
0
0

Hi,

  I have question, why I can see parameter dropdown on my local laptop, but after I move to testserver, it doesn't show up the paremeter dropdown?

  do I need to do anything?

 

crystalReportpopup.png

crystalReportpopup2.png

Thanks

Kelvin

VS 2010 ClickOnce App does not work on Win 7 x64

$
0
0

Use VS 2010 on 32-bit machine to create a ClickOnce app that uses Crystal Reports; the app targets x64 but with no prerequistes checked. The project includes references to these four Crystal libraries, but does not copy to local:

 

CrystalDecisions.CrystalReports.Engine.dll

CrystalDecisions.ReportSource

CrystalDecisions.Shared

CrystalDecisions.Windows.Forms

 

The development machine has got CRforVS_13_0_5.exe installed.

 

On a freshly-built  Win 7 x64 computer, with .NET Framework 4.0 (Client and Extended) installed, along with the latest Microsoft updates, install CRRuntime_64bit_13_0_5.msi from CRforVS_clickonce_13_0_5.zip.

 

Install the ClickOnce app - this message is displayed:

 

"Unable to install or run the application. The application requires that assembly CrystalDecisions.ReportAppServer.CommonObjectModel Version 13.0.2000.0 be installed in the Global Assembly Cache (GAC) first"

 

On exploration of the Win 7 x64 computer, there is indeed no such file in the GAC.

 

The only location on the computer that has Crystal files is:

 

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

 

This location does not contain any file whose name starts with CrystalDecisions.

 

I have also tried the above test on a clean machine with the install file from CRforVS_redist_install_64bit_13_0_5.zip - same result.

 

Has anyone else got a different result?

 

Have I missed something out?

Crystal Reports 10.2 print button non-responsive in windows7 64(bit) machines.

$
0
0

Hi,

Crystal Reports 10.2 print button non-responsive in windows7 (64-bit) machines.


This issue has been reported quite few times here. I did all that is suggested and nothing seem to help me.

Applied service pack crvs05sp1 in the development machine (which is a 32-bit machine),

targeted platform to x86 and made the click once publish. But it did not fix.

Client machine has both CRRedist2005_x86.msi and CRRedist2005_x64.msi installed.

 

Here are my queries:

1) Did I Miss anything here?

2) Is there an alternative?

3) What should be the steps I should be doing, if I plan to migrate my code to VS2008?

4) Can Processor of the machine also has impact on this?

 

Thanks.

Printcontrol.dll not downloading

$
0
0

Hi,

 

 

In a same client machine when i try to print the crystal report from crystal report xi and crystal report developer 2008 printcontrol.dll download and install from crystal report XI and show print dialog successfully

 

but in crystal developer 2008 its not downloading i check with fiddler also but i can't find the problem. help me to solve this issue client want to know the reason.

 

Thank you.

Sub Reports Not Linked?

$
0
0

Hi,

 

I have a main report which has 4 sub reports. In code I build a table and populate it for the main report and set it's datasource to my memory table. I then want to do the same for the sub reports in that I build a table in memory and populate it with data. I then want to set the subreports datasource to my new memory table.

 

For some reason I am getting missing parameter error.

 

Any help please,

 

Roger Porter

Does need refresh the database connection when changed DB password

$
0
0

Hi,

 

I have developed reports in Crystal Report XI. These reports are deployed in the production and working fine. Recently we changed the database password. The reports are used the direction connection with database. The database is Oracle 11g.

 

Please let me know that do i need refresh all the reports to update the new DB password or not.

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.


Missing Parameter Error while exporting to PDF

$
0
0

I have created a crystal report using crystal 2008 (not the crystalreportviewer) and have one parameter. My problem that I am going through is that, when I click the button to open the report without passing any parameters , the report opens fine, when I pass the parameter and try to open the report in pdf it throws the missing parameter value error.  What surprises me even more is, when I pass the same exact parameter and display it in excel, it opens fine.

 

So, I know that the database connection is not wrong. and I also know that the parameter that I am passing is not wrong either (because it opens in Excel) but why does it throw the missing parameter value error when I try to open it in PDF then? I have the code attached. Please HElP, I have been doing everything and anything I have found over in the net, but nothing helped.

Have the runtimes needing deployed changed with Crystal Reports 2013?

$
0
0

Hello,

 

We have a VS .NET application that currently uses the runtimes from CRVS2010 that are then distributed to our users along with the install to our app using the CRRuntime_32bit_13_0_5.msi.  If we were to upgrade all of our reports to the new Crystal 2013 version, are there any new runtimes that need deployed to users in order for the reports to work properly?  Thanks you very much!

Valorise a CrystalReport parameter from a vb.net application

$
0
0

Hi

Is it possible to valorise a CrystalReport parameter from a vb.net application?

If so, thank you very much for guiding how

Thanks

Table.ApplyLogOnInfo() does not apply all ConnectionInfo properties (missing Database Name)

$
0
0

I am writing a Windows Forms desktop application that uses Crystal Reports to display information from a SQL database, but I am having trouble getting my code to work in both my development and production environments.  I set a connection string in the app.config file that is used to connect to a SQL database, and set the logon information for a Crystal Report dynamically in C# before loading it in the application.  My code is as follows:

 

public ReportDocument getReport()

{

     ReportDocument doc = new ReportDocument();

     string filename = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Reports", crReportName);        
     doc.Load(filename);

     //Set Connection Info For Each Table
     doc.DataSourceConnections.Clear();

     foreach (Table crTable in doc.Database.Tables)

     {

           TableLogOnInfo crTableLogonInfo = crTable.LogOnInfo;

           crTableLogonInfo.ConnectionInfo  = getReportConnectionInfo();

           crTable.ApplyLogOnInfo(crTableLogonInfo);

     }

 

     return doc;

}

 

 

private static ConnectionInfo getReportConnectionInfo()

{

            System.Data.Common.DbConnectionStringBuilder builder = new System.Data.Common.DbConnectionStringBuilder();

            builder.ConnectionString = ConfigurationManager.ConnectionStrings["dbConnectionString"].ConnectionString;

            ConnectionInfo crConnectionInfo = new ConnectionInfo();

            crConnectionInfo.ServerName = (string)builder["Data Source"];

            crConnectionInfo.DatabaseName = (string)builder["Initial Catalog"];

            crConnectionInfo.UserID = (string)builder["User Id"];

            crConnectionInfo.Password = (string)builder["Password"];

            crConnectionInfo.IntegratedSecurity = false;

 

          

            return crConnectionInfo;

}

 

 

When I run this code in my development environment, everything works smoothly, and the report is displayed on the screen with the correct information.  However, when I run this code in my production environment, I get a "Database Login" popup with the correct server name and login ID, but with a blank database name.  I've run variations of this code to set each ConnectionInfo property directly to a string, and I've uninstalled/reinstalled different (32 and 64 bit) versions of the Crystal Reports runtime, but I continue to get the same dialog with a blank database name.  What's even more puzzling is that I've successfully deployed this application to another environment (using the same version of the CR Runtime) and everything works fine.  Is there something that I'm not doing in my code?  Has anyone experienced a problem like this in the past?

複数ページ印刷時のデータ欠落について

$
0
0

初めて問合せ致します。

この度Crystal Reportを使用した印刷機能で以下の現象が発生しました。

同様の事象、及び対応方法等、ご存知の方がいらっしゃいましたら、教えて下さい。

 

1.製品 SAP Crystal Reports for Visual Studio 2010

2.現象 

 

  複数ページに渡るデータを印刷する際、欠落するデータが存在する。

 

  帳票には以下を設定

   ○ ページヘッダ

     ・タイトル(アプリから指定)

     ・印刷日時(「特殊フィールド・出力日付、出力日時」を指定)

     ・ユーザー名(アプリから指定)

     ・出力データのヘッダ×9カラム(アプリから指定)

   ○ 詳細

     ・出力データ×9カラム

   ○ ページフッタ

     ・ページ番号(「特殊フィールド・ページ番号」を指定)

 

  1ページあたりの出力件数に関しての制御は行わない。

  (アプリケーションや、式フィールド、セクションエキスパートのページング等で制御しない)

 

  出力データのカラム数は9個用意しているが、実際には3~4個のみ出力している。

 

  出力の際に、出力カラム数および、出力幅の調整をアプリケーション側で行っている。

 

  印刷プレビュー画面には、以下のボタンを表示している。

   ・ShowPageNavigateButton

   ・ShowPrintButton

   ・ShowZoomButton

 

  この状況で、6000件のデータ出力を行ったとする。

  このとき、1ページあたりの件数が50件だったとする。

 

  この場合、ページ数は120になるはずである。

  しかし、プレビュー表示後、ツールバーの「最終ページ」を押下すると、

  最終ページ番号は120にならず、それより小さな値になっている。

  実際に印刷を行っても、120枚印刷されない。

  出力されたデータを確認すると、ページ切替りの際に、欠落するデータが存在する。

 

  ただし、欠落する件数は一定ではない。(0件の場合もあれば10件程度欠落する場合もある)

 

  また、プレビュー表示後、ツールバーの「次ページ」を押下して1ページづつめくっていくとほぼ全件出力される。

  (こちらで確認した際には、1ページ目と2ページ目の間に欠落するデータが存在する。

   それ以降は欠落するデータはない)

 

  つまり

   ・出力の際に欠落するデータが存在する。

   ・プレビュー表示後、「最終ページ」を押下した場合と、「次ページ」押下で最終ページまで移動した場合で

    ページ数に差がでてくる。  

  という現象が発生している。

 

  ちなみに、「セクションエキスパート」-「詳細」-「ページング」で「出力後に改ページ」を指定した場合、

  データ欠落せず、正常に出力できた。

  ただし、出力カラム数が固定の帳票では、データの欠落は発生していない。

 

 

 

以上、よろしくお願いいたします。

Viewing all 3636 articles
Browse latest View live


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