Crystal report require SQL login while ran on EDGE platform
Hello Experts:
I created a crystal report to run in BOBJ Edge X3.1 info view.
I created the crystal against a OLB DB datasource. Every time it started to run it ask for SQL connectivity information, such as sa and password. I certainly don't want the user have to put in a SQL connectivity string in there before they can run the crystal. Some one had suggested to me to create the crystal against Universe, however we are talking some pretty complex SQL statement that the OLB DB is running against, So it is very difficult to create a Universe for that and could change very frequently. Is there a way in BOBJ to record connectivity information for specific databases or some else on Crystal report that I can store that information so user wouldn't need to ask that every time?
Logon into the CMC and under Folders navigate to the report. Select it and in the context menu (right mouse button) select Database configuration . Make sure that the Use original database logon information from the report option is selected and enter there the credentials fof the DB users you want to use. Scroll down at the bottom of the page and select the Use same database logon as when report is run option. Save your changes by pressing the Update button.
Regards,
Stratos
Similar Messages
-
SAP Crystal Report using SQL Server Authentication and Windows Authenticati
I'm a SAP Crystal Report, version for Visual Studio 2010 Beginner
my ingredients are
1.windows 7 ultimate service pack1
2.sql server 2008 standard edition
3.visual studio 2010 pro
4.SAP Crystal Report, version for visual studio.net
I was created a report named customersByCity.rpt using OLE DB (ADO) -> Microsoft OLE DB Provider for SQL Server -> I'm supply Server, User ID, Password and Database. I assume me using SQL Server Authentication for my report
Then, my ASP.NET files as following
//ASP.NET
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="viewCustomersByCity.aspx.cs" Inherits="viewCustomersByCity" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div><asp:Label ID="lblMsg" runat="server" BackColor="Yellow" ForeColor="Black"></asp:Label>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true"></CR:CrystalReportViewer>
</div>
</form>
</body>
</html>
//code-behind
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
public partial class viewCustomersByCity : System.Web.UI.Page
private const string PARAMETER_FIELD_NAME = "city";
private ReportDocument customersByCityReport;
private void ConfigureCrystalReports()
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.ServerName = @"WKM1925-PCWKM1925";
connectionInfo.DatabaseName = "Northwind";
connectionInfo.UserID = "sa";
connectionInfo.Password = "sysadmin25";
SetDBLogonForReport(connectionInfo);
private void SetDBLogonForReport(ConnectionInfo connectionInfo)
TableLogOnInfos tableLogOnInfos = CrystalReportViewer1.LogOnInfo;
foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos)
tableLogOnInfo.ConnectionInfo = connectionInfo;
private void SetCurrentValuesForParameterField(ReportDocument reportDocument, ArrayList arrayList)
ParameterValues currentParameterValues = new ParameterValues();
foreach (object submittedValue in arrayList)
ParameterDiscreteValue parameterDiscreteValue = new ParameterDiscreteValue();
parameterDiscreteValue.Value = submittedValue.ToString();
currentParameterValues.Add(parameterDiscreteValue);
ParameterFieldDefinitions parameterFieldDefinitions = reportDocument.DataDefinition.ParameterFields;
ParameterFieldDefinition parameterFieldDefinition = parameterFieldDefinitions[PARAMETER_FIELD_NAME];
parameterFieldDefinition.ApplyCurrentValues(currentParameterValues);
protected void Page_Load(object sender, EventArgs e)
customersByCityReport = new ReportDocument();
string reportPath = Server.MapPath("customersByCity.rpt");
customersByCityReport.Load(reportPath);
ConfigureCrystalReports();
ArrayList arrayList = new ArrayList();
arrayList.Add("paris");
arrayList.Add("Madrid");
arrayList.Add("Marseille");
arrayList.Add("Buenos Aires");
arrayList.Add("Sao Paulo");
ParameterFields parameterFields = CrystalReportViewer1.ParameterFieldInfo;
SetCurrentValuesForParameterField(customersByCityReport, arrayList);
CrystalReportViewer1.ReportSource = customersByCityReport;
1st scenario
When in a runtime, it's keep appear a dialog box. This dialog box ask me to suppy Server, User ID, Password and Database. Once all information is supplied, my report display the data as expected
2nd scenario
I change my report using OLE DB (ADO) -> Microsoft OLE DB Provider for SQL Server -> checked on Integrated Security. I just choose Server, and Database. I assume me using Windows Authentication
When in a runtime, there's no dialog box as above. My report display the data as expected. really cool
Look's like, when report using SQL Server Authentication there's some problem. but, when report using Windows Authentication, it's fine.
I'm looking for comment. Please help meHello,
MS SQL Server 2008 requires you to install the MS Client Tools for 2008.
Once install then update all of your reports to use the SQL Native 10 as the OLE DB driver.
The try again, if it still fails search, lots of sample log on code in this forum.
Don -
Crystal report and SQL 2000 Integration to BW?
HI All,
We have following two requirements to be implemented
1) We need crystal reports to be integrated with BW system.Please guide about the prerequisites as well as the procedure to be followed so as to generate Crystal reports once the plugins are in place.
2) We need SQL 200 server to be interfaced with our BW system.Pleas do let me know apart from DB2 connect is there any other method that can be implemented and aslo If we use DB2 how should we go about handeling Delata.Hi
1, once you setup the SAP Plugins you can connect to the BW system and view the tables and objects such as Query etc.
then you build the report (Crystal Rep) using this data source.
My experiance is that the performance is quite bad, so good luck to you.
2, we use a data base level access in our BW.
it means that the user has access rights on the DB level and then we can
access the db using MS Query Analyzer.
Reg's
Edan -
Crystal Reports 2008 runtime error while running on Windows Server X64
I have a .NET web application compiled as X86 in Visual Studio 2008 invoking Crystal Reports 2008 SP2 that's running fine at a number of sites running Windows Server 2003 X86.</br>
</br>
When deploying this app to Windows Server 2008 X64 I get the error message below. </br>
</br>
I'm aware that there is an unanswered question similar to this already in the forum but my application is compiled for X86 and I've tryed installing a variety of run times including "crruntime_12_2_mlb.msi" and "crredist2008_x86.msi".</br>
</br>
What combination of compile and run time is needed to get around this issue?</br>
</br>
Thanks.</br>
</br>
</br>
ERROR MESSAGE **.</br>
</br>
An error has occurred while attempting to load the Crystal Reports run time..</br>
</br>
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly..</br>
</br>
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) that contains the version of the Crystal Reports runtime (x86, x64, or Itanium) that is required. Please go to http://www.businessobjects.com/support for more information.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. .</br>
</br>
Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime..</br>
</br>
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly..</br>
</br>
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) that contains the version of the Crystal Reports runtime (x86, x64, or Itanium) that is required. Please go to http://www.businessobjects.com/support for more information..</br>
</br>
Source Error: .</br>
</br>
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. .</br>
</br>
Stack Trace: .</br>
</br>
[LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime..</br>
</br>
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly..</br>
</br>
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) that contains the version of the Crystal Reports runtime (x86, x64, or Itanium) that is required. Please go to http://www.businessobjects.com/support for more information.]
CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime() +399.</br>
CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +218.</br>
</br>
[TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.].</br>
CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0.</br>
ChartsEnterprise.UI.GenReport.CreateReport(String reportname) +42.</br>
System.EventHandler.Invoke(Object sender, EventArgs e) +0.</br>
System.Web.UI.Control.OnLoad(EventArgs e) +132.</br>
System.Web.UI.Control.LoadRecursive() +66.</br>
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean .</br>includeStagesAfterAsyncPoint) +2428.</br>
Edited by: PSernz on Mar 25, 2010 3:58 AMWhat combination of compile and run time is needed to get around this issue?
See [this|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567] wiki. I think I may not have that wiki updated up to FP2.5, so the FP2.5 msm is here:
https://smpdl.sap-ag.de/~sapidp/012002523100002975182010E/cr2008fp25_mm.zip
msi is here:
https://smpdl.sap-ag.de/~sapidp/012002523100002975312010E/cr2008fp25_redist.zip
Check the version of the CR assemblies referenced in your project. The use the wiki above to deploy the correct runtime.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup -
How to create a lookup in Crystal Reports or SQL Server
I need to create an Operating Statement report. The problem is that I need to create a lookup or something to satify a requirement that even if there is no data in the system it will still bring back a description.
Example: 01 = Income, 02 = Expense, 03 = Labor.. ect(there are 31 of these)
If there is no data for 03 I still need Labor to print.
In my SQL I did a CASE statment that said when
Account = '3001' THEN 01, Account = '3002' THEN 02, Account = '3003' THEN 03 ECT
Then I created a formula a in Crystal that reads the case Statement to assign descriptions 01 = Income, 02 = Expense, 03 = Labor.
The problem is when there is no data for Account 3003 then the formula does not know to still bring back 03 as Labor.
Can I create a lookup to assign the description, I dont care about the values they can come back as zero.
Is there a formula or can I create a sql statement to pull back a derived table anything but to create a physical table?
Any help would be great.
Application is Crystal Reports XI 2 SP2
SQL Server 2005
Peoplesoft 8.9 Financials.Thank you Ludek for answering my post. That was just the information I needed. I inserted a formula field and then changed the font to Wingdings and that gave me my checkbox. Not being familiar with Crystal Reports I had a devil of a time just figuring out how to insert a formula field as the field explorer is not easy to find. The following link will help any developers who might have that problem too.
http://aspadvice.com/blogs/rjdudley/archive/2005/08/09/2642.aspx
Lastly Iu2019ll add the part of my formula which gives you a checked or unchecked check box in a Windings font:
--For Check box checked
Formula = Chr(254)
--For Check Box unchecked
Formula = Chr(168) -
BI 4.0 w/ Windows AD SSO, but Crystal Report (mdx) prompt login data
Hi guru,
We have been struggling for a while on the sso issue between BI 4.0, AD, BW, and CR.
Our architecture is not complex:
1. A BI 4.0 (BOE) on Tomcat (windows)
2. Backend SAP BW as main data source
3. AD, SAP Authentication are configured in CMC
4. User can login to Windows Desktop (login to Win Domain) and then link to BI Launchpad w/o giving password (Windows SSO), it works.
5. Crystal report can be published via BW to BI/2.0/.... folder on BI
But one thing still not working:
Our crystal report (using mdx for data accessing to BW) keep asking database login credential when a BI user login via Windows SSO. We want to get rid of this prompt and want to use a mapped R3 account for db access. each windows AD user has a corresponding mapped r3 account configured in CMC. We have tried, but not working.
The only way we got to avoid the prompt is to remove bwmdx from Crystal Report SSO Config in CMC and manually change the published CR report to use "original data login" as well as assiging the r3 credential. But we have to do it for each CR report.
Anyone have done this before ?
Is it possible to Login via Windows SSO and then view CR report w/o giving pwd ?
Or we have to do some special setting while making the report ?
Or users have to login by R3 account to get such SSO ?
Thanks for any help.Thanks for prompt reply, My answer is:
No, SNC is not enabled.
Since BO can get data via the following 3 method from BW, so I'm not sure whether SNC is a must (just for CR SSO)
Universe(UNV) --> BW
Universe(UNX) --> BW
OLAP --> BW
OK, if SNC is a must to link AD SSO to BW SSO, what kind of SNC (client vs server) should I configure ?
Thanks
Edited by: Wilson KU on Sep 7, 2011 11:04 AM -
Crystal report prompting for login to Dataset [Problem]
Hello,
I'm developing a C# windows application with an Access db
I'm getting the data from the database and load it to a dataset then pass the dataset to the report
every thing is working fine on my local machine but..
When I run it on any other machine it prompts me to enter the login information while there are no login informations to enter because I'm connecting to a data set
here is my simple code to load the report
VisitReasibReoirt VisitReasonRPT = new VisitReasibReoirt();
VisitReasonRPT.DataSourceConnections[0].IntegratedSecurity = true;
VisitReasonRPT.SetDataSource(ds);
crystalReportViewer1.ReportSource = VisitReasonRPT;
crystalReportViewer1.RefreshReport();
Also there is an other problem in the design
I cannot change the language of the datetime fields like what I did with text fields.. How can I solve this ?
please tell me what to do...this is very important I searched a lot but I found nothing usefull
Edited by: Mando! on Aug 26, 2010 2:04 AMHello,
Information needed..
Version of Crystal Reports?
Version of Visual Studio?
Type of data connectivity used? (i.e. OLEDB, ODBC)
Did you diploy the application? How? (MSM's or MSI's)
If the new machine is also a developement environment, does the report work from designer?
Version of windows on prev and new machine?
Make sure that..
If the application is deployed, the proper runtimes are installed.
The database provider is installed.
The target database is located where it should be.
The target database is unchanged.
One question per thread please.
see [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/Rules%20of%20Engagement].
Thanks,
Bhushan. -
Crystal Report from SQL imported into HANA
Hi experts,
We have a Crystal Report created on MS SQL 2008. We try to import it into SAP HANA, using an ODBC connection through the “Set Datasource Location” option. While the connection is being created successfully when we expand the Database’s menu, Tables are not being displayed.
The Database that is being used, has been created using Import/Export method by another HANA Database.
Has anyone faced the same issue?
Kind regards,
Vasilis KorolisJust follow the steps I outlined in a previous post... Re: Graphics in Report?
HTH,
Jason -
Crystal report 9 Sql Server 2008 R2 compatability
Can we use Crystal report version 9 in Sql server 2008 R2 to generate reports in web server.
Kindly tell us about the compatability of these two. If there is any support issue between these two kindly mention the same.
Edited by: Deepan1 on Jun 7, 2011 5:32 PMUpgrade to CR 2008 SP 4 is your only option.
The Platforms file was on the CR CD or it may be in the Documents folder on install. I don't have it installed any more so I can't say exactly where it is. Search your PC for platforms.
The problem is SQL 2008 uses a new Client engine and MS renamed the DLL do CR isn't aware of it. Using the MDAC version of SQL Server OLE DB Provider may work but it won't be supported if you find errors.
If you do upgrade to CR 2008 then install the MS SQL Server 2008 Client Tools from the CD or download the MSI from Microsoft and then use the MS SQL Server Native 10 client and it should all work for you.
Thank you
Don -
Hi All,
I am getting "An error occurred while creating a subprocess in the processing server. [RCIRAS0603]" error while opening the previous instances of the crystal report in BOCMC.
I am trying to run or schedule the report but it is always going to "PENDING STATUS".
(Previously it was resolved after restarting the server. Error : problem in ProcessingServer)
Could you please suggest.
Details :
Crystal Reports 2008
Clarity 13
Server Details:
BO XI 3.1 SP5
OS : Red Hat 6
Patch X11
Symptom
" Crystal Reports 2008/2011/2013 Processing Server fails to create child
processes after applied X11 client libraries security update on Redhat
Linux 6
" "An error occurred while creating a subprocess in the processing server.
[RCIRAS0603]" error occurs when viewing the Crystal Reports in InfoView/BIHi Rajeev,
This is a known issue you can refer to below note,
2098659 - "An error occurred while creating a subprocess in the processing server. [RCIRAS0603]" error occurs after applied X11 client libraries security update on Redhat Linux 6
Regards,
~Shree -
Creating OLAP report with Crystal Reports and SQL Server Analysis Services 2005
Post Author: orahc_mao
CA Forum: Data Connectivity and SQL
Hi!
I am currently using the trial version of the Crystal Reports XI and I wanted to do an OLAP report. The problem is I cannot select a cube using "OLAP Connection Browser" (the popup window). I already selected Microsoft OLE DB Provider and entered the server name but still can't connect.
I don't think the problem is with SQL Server Analysis Services (2005) since Microsoft Excel - Import Data can detect the server as well as the cube I have created.
I also tried the "Database Expert" of Crystal Reports, created an OLE DB (ADO) connection with "OLE DB Provider for OLAP Services 8.0" driver, entered the server name, checked the integrated security and then I can readily select the database created at SQL Server Analysis Services. However, I still need the OLAP grid create the report but it goes back to my original problem... selecting a cube.
I hope somebody would help me with this issue.
Thanks a lot!
orahc_maoHello,
I don't recognize those variables as CR ones so it's likely something the original developer is setting in code.
You'll have to discuss with that person.
If your have SDK issues then post your question to one of the .NET or Java SDK forums.
Thank you
Don -
Crystal reports asking for login information at runtime
BH
Hi,
I've installed the Crystal Reports for VS2010 (filename: CRforVS_13_0_9). I've created a new "Crytal Reports Application" Project and I've added dataset which is connected to Access 2010 database. When I create a new report I use the "Project Data > Ado.Net Datasets > CrystalReportsApplication8 > Ledger" as my connection. I connect the report to the CrystalReportViewer in Form1.
However, when I run the application, I get prompted for a Username and Password. Even though I type in the correct user name and password, it does not let me login and view the report. I've been struggling for a few days with this. What am I doing wrong? I do not want the application to prompt for a username and password, because I've already entered the credentials in the application. I've searched on the web for a solution, but with no success. Please help. I'm using C#.
Thanks
AronSee if this document will help:
Crystal Reports Guide To ADO.NET
Go to page 6 and follow the instructions there. Also, see KBA 1525432 (search box is ion top right corner)
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
https://twitter.com/SAPCRNetSup -
Crystal Reports 10 - SQL Server
Hi
We have Crystal Reports 10 currently in our organization and we want to know if it is compatible with SQL Server 2005 or SQL Server 2008?
Does anybody have any idea on this? Any help as in white paper, links etc is appreciated.
Thanks.Hi,
Following is the list of the reporting databases on windows Platform supported with CR 10.
Native Oracle 8.1.7
Native Oracle 9.2
Native DB2 8.1
Native DB2 7.2
Native Sybase 12.5
Native Access 2000
Native Access 2003
ODBC-Teradata
ODBC-SQL Server 2000
ODBC-Oracle 8.1.7
ODBC-Oracle 9.2
ODBC-DB2 7.2
ODBC-DB2 8.1
ODBC-Sybase 12.5
ODBC-Access 2000
ODBC-Access 2003
ODBC-Text
OLEDB-SQL Server 2000
OLEDB-Oracle 8.1.7
OLEDB-Oracle 9.2
OLEDB-DB2 7.2
OLEDB-DB2 8.1
OLEDB-Access 2000
OLEDB-Access 2003
Hope this helps!!
Regadrs,
Shweta -
Help with Crystal Reports changing SQL Server
I am doing a web site cutover to a new server for a client and have the server up and running using crystal reports server xi r2 sp2 under windows server 2003r2 32bit.
When I run a report via the webpage it generates a blank page.
I've edited the old web developers crystal report files and updated the database path howerver when i type in the new SQL server and authenticate to it using the SA account it then pops up a window asking me to enter values
has items such as
@sUserID
@sSubUserID
@iSessionID
etc
the only way i can continue through this is to check a box for each value 'set to null' which i dont' think is correct.
What values should I be putting in these areas or should I be getting this infomation from the previous developer?
much appreciatedHello,
I don't recognize those variables as CR ones so it's likely something the original developer is setting in code.
You'll have to discuss with that person.
If your have SDK issues then post your question to one of the .NET or Java SDK forums.
Thank you
Don -
Crystal Reports and SQL Server 2000
Hi all,
I read the document "Troubleshooting Database Connectivity for Crystal Reports" and tried all SQL Server jdbc drivers (1.2, 2.0,2.0.1, 3) and I could not find a working driver with crystal reports at all.
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e?quicklink=index&overridelayout=true
I'm also not sure if there is a working one?
Are there anybody who suggest me a jdbc driver for SQL server which also supports Crystal Reports?
The connection is ok, but the problem is I don't see tables and other staff under the connection...According to the document above, this means the driver does not support crystal reports...
Product versions which involve this issue as follows:
SQL Server 2000
JRE 5.0
Crystal Reports 11.8 (Comes with IBM RAD 7.5 IDE)
Platform : IBM Portal 6.1.0.2 ( IBM Websphere App. Server 6.1)
Any help would deeply be appreciated.
I'm totaly exhausted. I hope someone help me...
Best regards,
E.I gave up this issue since I learnt that Crystal Java Reporting Component does not support portlet. I also tried with SQL 2008 and I also updated my IDE for updating Crystal plug-in in it. It was finally working at portal but the pager buttons and other staff in the viewer were not working since it still does not support portlet.
Thanks a lot.
E.
Maybe you are looking for
-
Video doesn't work on IPOD 5G 80GB
Dear Sir/Madam I Have IPOD 5G 80GB which works perfectly with Music, but when it comes to Video Play back i experiance some issues like Standstill Black Screen (Looks Like its Going to Play the Video) and when i hit play and
-
Error when excute the query in web
Hi ,All , I created the query in BI analyzer, when i excute the query in excel ,it run ok .but wehn i excute it by web ,it go to dump , the error message is as follow : program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION . system error in
-
using flex sdk 4.6, and air sdk 15.0.0.356 we get the following error when using compc in our ant build: [java] Internal error: java.lang.NullPointerException: can't not add null to SWF frame [java] at com.adobe.flash.swf.SWFFrame.addTag(SWFFrame.jav
-
cant upload videos anymore as I get the error message stated in the title. im trying to upload to youtube and never use to have problems. please help . thanks in advance. H
-
My daughter changed her password and can't remember it. Suggestions online say to go back to the computer we synced it on. What if we never synced the iPad on a computer? Any help?