Adding date as runtime parameter in crystal report
Post Author: priyanair
CA Forum: General
Hi,
I have a report in which iam passing four runtime parameters. One of the parameter is date. my report is taking the date parameter as mandatory and if i leave it blank it doesn't show any output. If i fill in the date parameter it gives me the output corresponding to date. It ignores the other 3 parameter values. What could be the reason and what could be the possible solution for the same?
Please help.
Thanks
Priya
Post Author: priyanair
CA Forum: General
Hi,
This is the statement that iam using for assigning the parameter values to the database fields.
{Account.Name} = {?Name} or {Account.BillingCity} = {?City} or{Account.Type} = {?Type of customer} or{Account.LastModifiedDate} = {?Last Modified Date}
the last statement is my date parameter.
Thanks
Priya
Similar Messages
-
Need help adding data to Preview Tab of Crystal Report
Hi! I'm hoping someone can help me with an issue I'm having with a crystal report I use daily. I work in accounting and the crystal report i use pulls data for a ton of different general ledger accounts on our system. However, somehow the crystal report only shows a handful of accounts in the 'preview tab' of my report, which happen to be the accounts I reconcile. I need to add a few accounts to my report, but no one seems to know how to add new accounts to show up on my preview tab. I'm thinking there must be some sort of filter in the crystal, version 9.0 or 11.0. The filter must have been put in place to either only include certain accounts or excluse certain accounts. Help! Thanks for your time.
hi Jeff,
first we need to determine if you have a full version of crystal reports designer (i.e. crw32.exe) or if you're using a version which is embedded into an accounting application.
if you're using the latter then you need to contact the company that manufactures the accounting software.
if you do have a full version of crystal reports then you can go to the Report menu > Selection Formulas > Record and check to see how the record filter is determined. my guess though is that you're using an embedded version.
-jamie -
How to make Start Date as optional parameter in Crystal reports 2011
Hi All,
I have existing Start Date and End Date parameter how to make them as optional parameters.
Thanks for your help in advance!!.Hi Mnnica,
There is an option 'Optional Prompt' under value options, make that as true. Do the same for both startdate and enddate then go in Record Selection Formula and write below formula :
If Not (hasvalue({?Startdate}) then True else {?Startdate} >= {databasedatefield}
and
If Not (hasvalue({?Enddate}) then True else {?Enddate} <= {databasedatefield}
Check below screen capture for Optional Prompt options :
-Sastry -
How to get data from function module in crystal report
Hi,
I installed Crystal Reports 2008 and BO SAP Integration kit for CR.
I connected successfully to SAP system from CR but unable to get the data into Report ...
But data is present in function module.
Could you please tell me what may be the reason ...!!
Thanks
RaghavendraHi,
I connected successfully to SAP system from CR but unable to get the data into Report with all the Input parameters and data is present in function module.
Note: - If we take Start date as input parameter in Crystal report data is coming for single parameter, whereas we take input parameters like Partner function, Region and Customer - we are not getting data. (These fields we created parameters in Crystal report)
In Function Module IMPORT Parameters are below mentioned and Export parameter is Blank
Start Date (Mandatory field)
Partner Function (Mandatory)
Region
Customer
Please let us know if required any information.
Regards,
Raghavendra -
Optional Prompt for Date type parameter in Crystal Report.
Hi Every One,
I have a date type parameter in crystal report.When I am convert it to optional prompt it is showing following message.
But the Type field is gray out when I was selecting list of values Dynamic.
Please suggest.
Thanks and Regards
DEVHi,
Please check SAP note:
1710595 - CR_Defining "Optional Prompt" as True for SAP Crystal
Reports Does Not Work
Thanks & Regards,
Nagarajan -
- I have a Product list box (asp.net) used as multiple selected values for a parameter.
- The Product ID is defined in the Oracle procedure as NUMBER data type.
- In my crystal report, I have a parameter field allow multiple values as p_product_id type as Number. This is the code in my Record Selection Formula for the report:
({?p_product_id}[1] = -1 OR {Procedure_name.product_id} in {p_product_id})
- In C#, this is my code
List<decimal?> productUnit = new List<decimal?>();
int counter = 0;
decimal prod;
for (int i = 0; i < lstProducts.Items.Count; i++)
if (lstProducts.Items[i].Selected)
if (decimal.TryParse(lstProduct.Items[i].Value, out prod))
productUnit.Add((decimal?)prod);
counter++;
if (counter == 0)
productUnit.Add(-1);
ReportingDAO rDataFactory = new ReportingDAO();
retVal = rDataFactory.GetProductReport(productUnit);
public CrystalDecisions.CrystalReports.Engine.ReportDocument GetProductReport(List<decimal?> productUnit)
CrystalDecisions.CrystalReports.Engine.ReportDocument retVal = new rptProductDownload();
ReportLogon rptLog = new ReportLogon();
rptLog.Logon(retVal, "RPT_PRODUCT_DOWNLOAD");
retVal.SetParameterValue("p_product_id", productUnit);
I keep having the "Value does not fall within the expected range" when I debug. My question is, is the data type I used for procedure/Crystal report/ and C# correct ? I always have problem with the data type. Any help would be
appreciated
Thank youHi progGirl,
Thank you for your post, but Microsoft doesn't provide support for CrystalReport now. Please post your question in SAP official site here:
http://forums.sdn.sap.com/forum.jspa?forumID=313
Thank you for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to use Dynamic cascading parameter in crystal Report XI ?
Hi,
I want to use Dynamic cascading parameter in crystal Report XI which is to be viewed through the infoview without using the Business View.Is it possible?
I could implemented Dynamic cascading parameter using the CR XI developer without using Business View, but cannot view the report when uploaded it to BOXI, through infoview.
Please suggest..
Thanks in advance..
RajneeshIn the crystal reports field explorer>right click on parameter field>create new-->name the parameter field and select the type as dynamic. Now in the value field click the row and add the database field also add another field below that by clicking on the next row so..on. The order should be like this parent field first and then child field next...... Also click on the last column to add parmater for each level.
Regards,
Raghavendra -
Data missing while running a crystal report from SAP B1 2007A
Dear All,
I am facing an issue that is if i run a report from SAP B1 using Crystal reports AddOn, it misses out some data.
Few Initial pages and a last page appears in the report. But when i run the same report using Crystal reports Designer it shows the actual number of pages. I have tested the above discussed issue on the server & workstation machines.Dear All,
I would like to explain the above posted problem in detail. I need your generous help, I am facing an issue that is for Crystal Reports which are based on 'Financial Templates' data is missing out. For Example, If i run the report using 'Crystal Reports Designer' it is showing the whole Financial Template based on 5 pages, but if I try to run it from 'SAP Business One'
using 'Crystal Reports AddOn' it is missing out the data e.g. it is showing Page 1 and then Page 4 & 5.
Page No. 2 & 3 is missed out. For your information it was running fine from the past two months now I am
facing issues in running it. Rest of the reports are running fine.
I have tried reinstalling the Crystal Reports Runtime and Crystal Reports AddOn for SAP B1 on
Client machines, but the problem is not resolved yet.
Server Machine Details
Version : SAP B1 2007A Server SP01 PL08
OS: Windows Server 2008 R2 (64-bit)
Crystal Reports AddOn for SAP B1 (64-bit)
Crystal Reports Runtime
Crystal Reports Runtime for Visual Studio
Client Machine Details
Workstation 1
Version : SAP B1 2007A Client SP01 PL08
OS: Windows Vista Enterprise (32-bit)
Crystal Reports AddOn for SAP B1 (64-bit)
Crystal Reports Runtime
Crystal Reports Runtime for Visual Studio
Workstation 2
Version : SAP B1 2007A Client SP01 PL08
OS: Windows XP
Crystal Reports AddOn for SAP B1 (64-bit)
Crystal Reports Runtime
Crystal Reports Runtime for Visual Studio -
Problem passing parameter to crystal report subreport from *.aspx page
Background:
I am developing a .NET web application using Visual Studio 2005. The code behind is in VB.net. One of my asp.net pages calls a report, which is invoked when the user clicks a Print button. I have developed this report using the Crystal Reports software that is bundled with Visual Studio 2005. I am passing one parameter from the asp.net page (utilizing the VB.net code-behind on the Print button) to the Crystal report. The report consists of a main report and 5 subreports. Both the main report and the subreports use the same parameter. Both the main report and the subreports are bound to stored procedures, each of which require a parameter.
Problem:
For some reason, the parameter is not being passed from the asp.net page to the report. I am receiving the following error: "CrystalDecisions.CrystalReports.Engine.ParameterField.CurrentValueException: Missing Parameter Values." However, when I remove the subreports, the parameter gets passed, and the report is invoked with no problem.
I have read in other forums that there may be an issue with the Crystal Reports software that is causing this problem. I have downloaded and run the suggested hotfix, but the problem remains unresolved. I have tried changing the linking of my main report to the subreport, but that doesn't help either. It is possible that I am doing something wrong with the linking, as this is the first time I have developed a report with Crystal Reports. I need a workaround or definitive solution. Below is the aspx code used to call the report:
Imports System
Imports System.Collections.Specialized
Imports System.Collections.ObjectModel
Imports System.Collections
Imports System.Text
Imports System.Configuration
Imports System.Data.SqlClient
Imports System.Data
Imports System.Data.SqlClient.SqlDataAdapter
Imports System.Web.Configuration
Imports Crystaldecisions.crystalreports.engine
Imports Crystaldecisions.reportsource
Imports Crystaldecisions.shared
Partial Class OACIS_Award_or_Deny_BudgetSummary_PrintRpt
Inherits System.Web.UI.Page
Dim paramFields As ParameterFieldDefinitions
Dim paramField As ParameterFieldDefinition
Dim paramValue As ParameterValues
Dim paramDiscreteValue As New ParameterDiscreteValue
Public Shared idCase, nameRpt As String
Private PrintRpt As ReportDocument
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
idCase = Request.QueryString("id")
nameRpt = Request.QueryString("prtName")
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
Dim file As String = settings.File
Dim dSource, iCatalog, userIs, passUser, appString As String
dSource = Nothing
iCatalog = Nothing
userIs = Nothing
passUser = Nothing
appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
Dim AppArray() As String = Split(appString, ";")
Dim arrayLgth As Integer = AppArray.Length
Dim i As Integer
For i = 0 To arrayLgth - 1
Dim pairIs() As String = Split(AppArray(i), "=")
Dim firstItem As String = pairIs(0)
Dim secondItem As String = pairIs(1)
If firstItem = "Data Source" Then : dSource = secondItem : End If
If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
If firstItem = "UID" Then : userIs = secondItem : End If
If firstItem = "PWD" Then : passUser = secondItem : End If
Next
Dim crReportDocument As ReportDocument
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim crconnectioninfo As ConnectionInfo
Dim crDatabase As Database
Dim crtables As Tables
Dim crtable As Table
Dim crtablelogoninfo As TableLogOnInfo
Dim Fname As String
Dim Prtname As String
Dim FPath As String
Dim crSection As Section
Dim crReportObject As ReportObject
Dim crSubreportObject As SubreportObject
Dim subRepDoc As New ReportDocument
FPath = Server.MapPath("") + "\"
Dim rptIs As String = nameRpt
crReportDocument = New ReportDocument
Prtname = FPath
Prtname = Prtname + rptIs
crReportDocument.Load(Prtname)
Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
crconnectioninfo = New ConnectionInfo
crconnectioninfo.ServerName = dSource
crconnectioninfo.DatabaseName = iCatalog
crconnectioninfo.UserID = userIs
crconnectioninfo.Password = passUser
crDatabase = crReportDocument.Database
crtables = crDatabase.Tables
For Each crtable In crtables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
Response.Write(ex)
Exit Sub
End Try
Next crtable
For Each crSection In crReportDocument.ReportDefinition.Sections
For Each crReportObject In crSection.ReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
crSubreportObject = CType(crReportObject, SubreportObject)
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
For Each crtable In subRepDoc.Database.Tables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
End Try
Next
End If
Next
Next
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
Dim parIDCase As ParameterValues = New ParameterValues
Dim disIDCase As ParameterDiscreteValue = New ParameterDiscreteValue
disIDCase.Value = idCase
parIDCase.Add(disIDCase)
crReportDocument.DataDefinition.ParameterFields("@ID_CASE_NMBR").ApplyCurrentValues(parIDCase)
crReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
System.IO.File.Delete(Fname)
Catch ex As Exception
lblMessage.Visible = True
lblMessage.Text = "Error Load
" & Convert.ToString(ex)
End Try
End Sub
End Class
Your help is greatly appreciated!Thanks for your help!
I've now gotten past the "missing parameter values" error, and the report renders fine in the report viewer. However, I've encounted another problem. The data in my main report displays correctly, but the data in my subreport does not display. Of course, when I view the report in the designer, both the main report and subreport display correctly. What am I doing wrong? Below is my vb.net code:
Try
idCase = Request.QueryString("id")
nameRpt = Request.QueryString("prtName")
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
Dim file As String = settings.File
Dim dSource, iCatalog, userIs, passUser, appString As String
dSource = Nothing
iCatalog = Nothing
userIs = Nothing
passUser = Nothing
appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
Dim AppArray() As String = Split(appString, ";")
Dim arrayLgth As Integer = AppArray.Length
Dim i As Integer
For i = 0 To arrayLgth - 1
Dim pairIs() As String = Split(AppArray(i), "=")
Dim firstItem As String = pairIs(0)
Dim secondItem As String = pairIs(1)
If firstItem = "Data Source" Then : dSource = secondItem : End If
If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
If firstItem = "UID" Then : userIs = secondItem : End If
If firstItem = "PWD" Then : passUser = secondItem : End If
Next
Dim crReportDocument As ReportDocument
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim crconnectioninfo As ConnectionInfo
Dim crDatabase As Database
Dim crtables As Tables
Dim crtable As Table
Dim crtablelogoninfo As TableLogOnInfo
Dim Fname As String
Dim Prtname As String
Dim FPath As String
Dim crSection As Section
Dim crReportObject As ReportObject
Dim crSubreportObject As SubreportObject
Dim subRepDoc As New ReportDocument
FPath = Server.MapPath("") + "\"
Dim rptIs As String = nameRpt
crReportDocument = New ReportDocument
Prtname = FPath
Prtname = Prtname + rptIs
crReportDocument.Load(Prtname)
Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
crconnectioninfo = New ConnectionInfo
crconnectioninfo.ServerName = dSource
crconnectioninfo.DatabaseName = iCatalog
crconnectioninfo.UserID = userIs
crconnectioninfo.Password = passUser
crDatabase = crReportDocument.Database
crtables = crDatabase.Tables
For Each crtable In crtables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
Response.Write(ex)
Exit Sub
End Try
Next crtable
For Each crSection In crReportDocument.ReportDefinition.Sections
For Each crReportObject In crSection.ReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
crSubreportObject = CType(crReportObject, SubreportObject)
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
For Each crtable In subRepDoc.Database.Tables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
End Try
Next
End If
Next
Next
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase)
crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase, "MemberName")
crReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
System.IO.File.Delete(Fname)
Catch ex As Exception
lblMessage.Visible = True
lblMessage.Text = "Error Load<br>" & Convert.ToString(ex)
End Try
Edited by: LaShandra Knox on Sep 17, 2008 7:59 PM -
"Date / Date Time" type parameters in crystal reports 2008
i am using parameters in crystal report to select records. one of the parameters is "From Date" of type Date Time.
i mapped this parameter to a field "DateIn" of type smalldatetime in my sql table.
Now, when i open the report it asks for "From Date" but b y default it sets the time to current time so i have to change it to 00:00:00 manually. i want it to show 00:00:00 by default. which means i don't want time here.
For this if i select the datatype of parameter "From Date" as Date only then i am not able to map it to the "DateIn" field of the sql table.
Please help me out of this.
Edited by: rohit0825 on Jun 2, 2010 2:25 PM>
Deepravs wrote:
> Hi Rohit,
>
> Change the Parameter to Date Datatype and use this formula in the "Record Selection Formula " (Report Tab -> Selection Formulas -> Record)
>
> = CDateTime ({?From Date})
>
> Though the parameter is date datatype it converts to datetime datatype amd maps to the desired column.
>
>
> Thanks,
Great !!!
this is working.
i found another way, i changed the datatype of parameter to Date and click ok and everything was good, it doesn't require any conversion to date time.
Thank You so much. All Points You.
Edited by: rohit0825 on Jun 3, 2010 10:47 AM -
How to supress prompt of database parameter in Crystal report schedule
Hi,
We are using Crystal Reports 2008. In a particular crystal report generated from some SAP WB query, has a parameter (prompt) on month. Now we need to schedule it for monthly execution. But we are still unable to manage the prompt for month automatically. We don,t have API license, so we can not use VBA .Net or Java programming.
Can we manage this database level prompt using Crystal Report formulas. Please suggest how can we manage this prompt so that it can be executed automatically according to schedule.
Thanks & Regards,
AvijitHi,
Thanks for your reply.
But I know the logic that I need to assign the current month date value to the parameter supplied by BW query in the Crystal Report formula. And I tried to write a new formula using "BeforeReadingRecords" under Formula field. But this formula is not assigning any to the parameter and I am with no success.
Can you please mention how and where shoul I write the formula. Looking forward for you answer.
Regards,
Avijit -
Optional Parameter in Crystal Report XI designer
Hi,
Is there a way to have parameter as optional in Crystal Reports XI ?
I am okay to have the parameter shown but I dont want it to be mandatory.In CR XI the only way to make a parameter optional is to assign it a default value.
For example:
If it is a date range parameter then give the date range parameter a default value say '1900-01-01'. Set this by editing the parameter and clicking on 'Default Value' in the options section.
Then, in your selection criteria have logic similar to this.
If minimum({?date parameter}) = date(1900,01,01)
and minimum({?date parameter}) = maximum({?date parameter}) then
{database.date} = {database.date}
else
{database.date} in {?date parameter};
If the users do not change the default value for the date range then it will pick up all records otherwise limited to the date range.
If it is a numeric parameter then assign a value of zero and for string perhaps 'z' (make sure the default value will never be equal to a DB value) and then in the selection criteria use:
If {?parameter} = 'z' then {database.field} = {database.field}
else
{database.field} = {?parameter}; -
DateTime Parameter in Crystal Report
hi,
in one of my crystal reports i'm invoking a procedure which has begin date and end date as parameters.when trying to run the report it's prompting for both date and time. my requirement is just to prompt for date and time is not required. the option of editing the parameter at the report level has been disabled since the parameters dierctly get invoked form procedure , in which i've declared the datatype as
samp_proc(p_begin_date date,p_end_date date,p_ref_cursor in out).
can someone help me on this.
Thanks,
Sailaja.kHi Sailaja,
I'm not sure if this is a known issue or if this a bug, but there are workarounds.
Create a blank report and Insert the original report as a Subreport. Now in the Main report, create a Sttaic parameter of 'Date' type. Create a new Formula called 'Date_conv' and type this:
Datetime({?Date_parameter})
Place this formula on the Report Header and place the subreport on the Report Header too.
Right-click the subreport and select Change Subrpeort Links. Select the formula and move it to the Links to area. Next, from the drop-down on the bottom left select the datetime parameter of the subreport.
You may suppress all the other sections of the main report. The Report should now prompt for a 'Date' instead of the Date time.
Another workaround is by creating a registry key called useDateInsteadOfDateTime. Browse to HKEY_CURRENT_USER\Software\Business Objects\Suite 12.0\Crystal Reports\DatabaseOptions and create a string value called useDateInsteadOfDateTime. Set its value as the Database Server Name or the ODBC DSN name.
I would still recommend using the 1st workaround.
Hope this helps!
-Abhilash -
Can ODBC configuration data be stored in a Crystal Report?
Post Author: Gary W
CA Forum: Crystal Reports
We've been running some SQL statements in Access pulling data from a server/database. I decided to see if I could do the same thing in a Crystal Report with the intention of scheduling the report to run in our scheduler. I set up the ODBC on my workstation. I connected to it for my new report and used Add Command to enter the SQL statements. I added the command to my report and it ran fine. However, whenever I open the report to run it again I have to enter the password (which was initially entered when I set up the ODBC) to get it to run. I'm guessing this has something to do with the security on the server and, that said, I'm not going to be able to change it. Is there any way I can store the ODBC connection data including the user id and password in my report so it's there when needed? I can do this in Access, but can't figure out how to do it in Crystal Reports.
I use Crystal Reports XI.
In Access the line I use is:
ODBC;Description=Employee Badge system;DRIVER=SQL Server;SERVER=pmc-rfd-ap19;UID=userID;PWD=password;DATABASE=OF_SiteData
where userID and password are replaced with the actual values.
Thank you.Post Author: V361
CA Forum: Crystal Reports
When you setup the connection in ODBC, Select the "Enter connection string and add the following (Substitute your connection information of course)
DSN=RPTPROD;Server=RPTPROD;User ID=USER;PWD=USERPASS
This should work. -
Hi all!
Are there create parametter ways in crystal Report but display record of report as select this parametter ?
Thank you!Hello all,
I have a strange issue here. When I use dynamic parameters for my Date number Crystal Report takes forever to load . I mean load all record in report .But I have ran the report at 15 date and at this time it is load record of this date?
thank?
Maybe you are looking for
-
Satellite Pro A200: How to reboot from hibernation
I must be an idiot. I set on/off button of new Satellite Pro A200 to activate hibernation. Then set BIOS password. Despite password correctly entered, it will not start windows. Nor can I shut down laptop by holding down the on/off button to force re
-
Hibernate.cfg.xml configuration
Hi I have written hibernate.cfg.xml ,for connecting to the data base i am using data sources concept. I have one property in hibernate.cfg.xml <property name="connection.datasource">.......</property> Can any tell how to give the datasource n
-
Is there any way to edit an email address in the iPad mail app once it has been highlighted?
To try and clarify the above, when I type an email address in the address field, in the Mail app, and then hit the space bar, the email address becomes highlighted. If I then want to edit the email address I cannot for the life of me work out how to
-
Thomson Treasura - replace with Electronic Bank Statement
Hi All, We are planning to implement EBS in our co and replace an external Software called Thomson treasura. I would like to know what sort of reports are availble through the EBS in SAP. Thomson treasura gives the ability to generate several reports
-
How to add audio devices under sound in system preferences
How do I add output audio devices under system preferences --only option listed is internal speakers? Macbook help says to change device under sound in system preferences. However, only option listed it the internal speaker. I need to sound to come f