Crystal Report not taking parameter propery
Hi,
I am facing a unique issue in reports.The report is not taking the parameter entered by the user instead it is taking the value which was used for testing the report initially.
Save data with report in uncheked.
The report is shwing correct data on CMS and with designer also.
The problem arises when report is viewed java based web application.
I am usng Crystal Reports XI and Business Objects 12 CMS.
Regards,
Misra P.
Hi,
what does single time mean? Only the first time when you start the report from your code and the second time it is like before? You may need to empty the report's parameters before giving new ones... If I could see the relevant part of your code, I could give a hint. There are also lots of samples hwo to paramterize a report from java code, which usually work fine...
There is also an option in the crystal reports designer to keep parameter values as they were set in the CMC when saving a report to BOE...
Regards,
Harald
Similar Messages
-
Hyperlinking results of a crystal report to a parameter in another rpt.
We have a requirement to hyperlink the result values of a field in a crystal report to a parameter in another report that returns the details of that value. Example below:
Rpt 1. Field: Country
Values:(as hyperlinks) USA
Germany
France
So when a user clicks on the hyperlink "USA", report number two containing details for USA opens up like the example below:
USA, Population, etc...etc....
North America 350M
The user should not be prompted to enter any parameters in the second report as it is expected to be parsed this from clicking on the value in the first report. The values in the first report are in a group section "country". We are using Crystal 2008 on a BW query.
Thanks for your help.Hi,
Create a sub report which contains country wise informaiton and insert this report in your group footer. Now right click on your sub report and go in change sub report links and link your sub reportcountry parameter with your main report country parameter.
Now it will pass your opendoc parameter value to your sub report parameter and will display results without entring once again coutnry parameter for your sub report.
Thanks,
Sastry. -
Display more pictures in crystal report not work why
Hi guys i try to show picture of specified employee from network path in crystal report it work
but i don't know how to show all pictures to all employees in crystal report
Can any one help me to customize my code to accept show all employee pictures
i try to make this from crystal report and assign path but version of crystal report not allow to me
to put path
my code below show picture to one employee from text box control from network path
I need to customize this code to accept show more one pictures of employees from employee table
the following fields i show in report
EmployeeNo integer
EmployeeName nvarchar(50)
Image datatype image
btnemployeeno_click
DataTable dt = new DataTable();
string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
using (SqlConnection con = new SqlConnection(connString))
con.Open();
SqlCommand cmd = new SqlCommand("ViewEmployeeNoR", con);
cmd.CommandType = CommandType.StoredProcedure; // Viewxxx doesn't seem a good name for a sp
cmd.Parameters.Add("@EmployeeNo", SqlDbType.NVarChar, 20);
cmd.Parameters["@EmployeeNo"].Value = textBox1.Text;
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
da.Fill(dt);
string path = Path.Combine("\\\\192.168.1.105\\Personal Pictures", textBox1.Text) + ".jpg";
FileStream fs=null;
if (File.Exists(path))
fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + textBox1.Text + ".jpg", FileMode.Open);
else
MessageBox.Show("Please File Not Exist");
BinaryReader br = new BinaryReader(fs);
byte[] imgbyte = new byte[fs.Length + 1];
imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
foreach (DataRow dr in dt.Rows)
dr["Image"] = imgbyte;
ReportDocument objRpt = new Reports.CrystalReportData2();
objRpt.SetDataSource(dt);
crystalReportViewer1.ReportSource = objRpt;
crystalReportViewer1.Refresh();Hi,
Put an image field in your report, then change the image’s Graphic Location:
right click the image, select Format Graphic, select Picture tab, click the conditional-formula button that look like a x2 and set the formula’s text to
the name of the formula or parameter field that will contain the image’s URL.
Save the formula and click the OK button. Save the report and test it.
Be carefull with the size of the image field. If this size is not equal to the image itself it could get resized.
Good Tutorial
Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP] -
If image file not exist in image path crystal report not open and give me exception error problem
Hi guys my code below show pictures for all employees
code is working but i have proplem
if image not exist in path
crystal report not open and give me exception error image file not exist in path
although the employee no found in database but if image not exist in path when loop crystal report will not open
how to ignore image files not exist in path and open report this is actually what i need
my code below as following
DataTable dt = new DataTable();
string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
using (SqlConnection con = new SqlConnection(connString))
con.Open();
SqlCommand cmd = new SqlCommand("ViewEmployeeNoRall", con);
cmd.CommandType = CommandType.StoredProcedure;
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
da.Fill(dt);
foreach (DataRow dr in dt.Rows)
FileStream fs = null;
fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + dr[0] + ".jpg", FileMode.Open);
BinaryReader br = new BinaryReader(fs);
byte[] imgbyte = new byte[fs.Length + 1];
imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
dr["Image"] = imgbyte;
fs.Dispose();
ReportDocument objRpt = new Reports.CrystalReportData2();
objRpt.SetDataSource(dt);
crystalReportViewer1.ReportSource = objRpt;
crystalReportViewer1.Refresh();
and exception error as belowFirst: I created a New Column ("Image") in a datatable of the dataset and change the DataType to System.Byte()
Second : Drag And drop this image Filed Where I want.
private void LoadReport()
frmCheckWeigher rpt = new frmCheckWeigher();
CryRe_DailyBatch report = new CryRe_DailyBatch();
DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter ta = new CheckWeigherReportViewer.DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter();
DataSet1.DataTable_DailyBatch1DataTable table = ta.GetData(clsLogs.strStartDate_rpt, clsLogs.strBatchno_Rpt, clsLogs.cmdeviceid); // Data from Database
DataTable dt = GetImageRow(table, "Footer.Jpg");
report.SetDataSource(dt);
crv1.ReportSource = report;
crv1.Refresh();
By this Function I merge My Image data into dataTable
private DataTable GetImageRow(DataTable dt, string ImageName)
try
FileStream fs;
BinaryReader br;
if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + ImageName))
fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
else
// if photo does not exist show the nophoto.jpg file
fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
// initialise the binary reader from file streamobject
br = new BinaryReader(fs);
// define the byte array of filelength
byte[] imgbyte = new byte[fs.Length + 1];
// read the bytes from the binary reader
imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
dt.Rows[0]["Image"] = imgbyte;
br.Close();
// close the binary reader
fs.Close();
// close the file stream
catch (Exception ex)
// error handling
MessageBox.Show("Missing " + ImageName + "or nophoto.jpg in application folder");
return dt;
// Return Datatable After Image Row Insertion
Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP] -
After i install Visual-Studio 2013 crystal-report not working
hi
after i install Visual-Studio 2013 crystal-report not working on my Visual-Studio 2010 projects
when i try to open crystal-report i see this:Hi E_gold,
Crystal Reports forum may be a better place for you.
Thanks 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. -
Problem with Crystal Reports not displaying all parameter values
Hello,
A co-worker of mine is developing a report in Crystal version 11.5.8.826. One of the requirements from his user is that they would like to select from a list of users for applicable criteria to appear in the report. He created a parameter with a dynamic list of values, entered prompt group text, selected "existing" as the data source (and chose the corresponding field from the table). This dropped the UserID field into the "value" field in the table and linked the table to the parameter. We selected "allow multiple values" as "true" and "allow discrete values" as "true".
Here is the problem. When Crystal prompts us to select the parameters, it doesn't show all of the applicable list of users (it shows 8 out of 12 users). When we run the query in a standalone sql generating tool (Toad or Golden), we see the full list of users. Crystal Reports appears to be filtering the selection list of users for some unknown reason. We have tried changing most every option that we could find within the parameter, but no luck.
The problem definitely appears to lie within the parameter- if we run the report without the parameter, we see the full list of users. Once we add the parameter and attempt to select one or many users, the problem appears.
Any thoughts? What am I missing? Any help is appreciated.
thanks,
NoelI'll answer my own question in case somebody is curious or happens to find this message via google or another search engine. See this link. You need to set your upper threshold within your Registry Editor.
http://www.crystalreportsbook.com/Forum/forum_posts.asp?TID=8029 -
Crystal Report Not Refreshing in browser
Hi all,
Am using crystal report for my web application so here am passing my parameter from jsp page
but it is not refreshing
For example
I am select Month=jan my query goes this way.
Select * from employee where month='jan' group by department order by designation
when am intially design in eclipse in filter option am selecting 'jan' and when am running in browser am passing the same query with the parameter but here instead of 'jan' am passing month variable where my month variable changes every time according to user choose
my crystal report is not getting refreshed ..
hope u understood my problem
Regards
Vanishree.BHi Tejomay ,
I have tried that even after calling refresh() , it ;s not getting refreshed..but if am using signal table in my query it is getting refreshed .but when am grouping with another table it is not refreshing..
Regards
Vanishree -
SAP BW and Crystal Reports XI R2 Parameter list problem??
Hello Experts,
I facing a problem.
I have a crystal report based on a BW Query. It has one parameter called Country.
Eg:
Until now, in BW query country variable has the following values.
USA
JAPAN
GERMANY
Now, from this fiscal year we have the following values for country variable
USA
JAPAN
INDIA
GERMANY
UK
I am trying to edit the list of values for the country variable in crystal reports. It is not getting reflected in SAP BW. I also tried refreshing it several times.
THE VARIABLE IS A HIERARCHY VARIABLE.
Can any one Please help.!!
Regards
NMU
Edited by: Mohammad Usama on Oct 20, 2008 4:26 PMYou said that you are using version XI R2 SP2 (for BO Enterprise) - do you have any FixPacks on this codeline? (FP2.x)
Question: If YES to above, have you made use of the equivalent FixPack for Integration Kit? (known as "Partners Fix Pack 2.x ")
There are a few fixes in this area, I was thinking like:
ADAPT00716808 - When scheduling a report from SAP Business Information Warehouse (BW) that contains parameters from a hierarchy or a hierarchy node variable, the default values fail to be displayed from InfoView. >>
ADAPT00894127 - When users enter date parameters in the Calendar dialog box in SAP InfoView, the dates entered fail to appear in the corresponding field.
Good luck,
Henry -
Crystal Report not pulling over user prompts
I am having issues with a Crystal Report that is pulled over into a third party CRM db. I've already checked the Forums and the SAP notes but have had no luck in finding any help. Our Crystal Report pulls up fine on the client, but it is missing the user prompts (parameters) when it comes through. We don't get any errors what so ever. The user is supposed to put in the date range that they would like to see. Other reports which don't have any prompts work fine. We've run the reports in Crystal on the server and they work just fine. We are just having this problem whenever the client is trying to run the report. When we've talked to our technical support for our CRM db they said we are supposed to get a lightning bolt and then when we click on it, it will prompt the user. However, the lightning bolt doesn't even show up when the report is pulled up. I'm not sure is there is something being done wrong within our report, or if this is an issue with the Active X controls. We are using Crystal Reports XI on an SQL 2005 server. Any help is greatly appreciated - I'm very new to this so if someone could please point me in the right direction it would be helpful. Thanks!
Hello,
The Lightning bolt is the report refresh button in CR 10. CR 11 has blue circular arrows, one on top of the other. Or you can simply press the F5 key to refresh. It may be you are mixing versions or something else.
I suggest you work with your tech support to figure out how your application should work and what is posibly missing. If you have the report Designer and they work there then your app or DB has issues.
We don't know your app or how it all is supposed to work so not much we can suggest other than to get your support to help you.
If it's a WEB app then possibly the you have the Pop-up blocker enabled, the Parameter UI would considered a pop-up.
You relaly need to get your CRM support guys to help you first. If thye can't figure it out then ask them to put a call into support.
Thank you
Don -
Crystal Report not Adopting all possible Dropdown Values from BEx Variable
Hi all,
I am having an issue in a Crystal report where the drop down parameter that is sourced from a BEx query variable does not include all the possible values in the cube (or in master data). After learning my lesson the first time of not changing the name of the variable or changing it to dynamic (this causes it to break), I had the understanding that the value list may not be complete when running the report in the Crystal client or in the viewer, however, I thought it should be correct when published to the BOE and run in infoview. I am getting the same incomplete list in infoview. I published the report into infoview using the Crystal 2008 desktop client, not the /CRYSTAL/RPTADMIN transaction.
I know there are a couple ways of sourcing a Crystal report from a BW query - using MDX vs. not, etc. I created this report using the SAP menu > "Create new report from a query". I don't believe Crystal will easily let you use that menu option to create a report off two BW queries joined together (which is what I am doing), so I built it off one originally (using the SAP menu), then added the other later on. I have the checkbox for "Use MDX driver with support for Multiple structures" checked. In database expert, my "Selected Tables" both are of database type "SAP BW Query".
Do I have the right understanding of how the value list should work when sourced from a BEx variable? If so, can anyone offer any suggestions for getting the value list populated correctly?
Here's some info:
Crystal version: CR2008, version 12.2.4.507
BOE version 3.1
SAP BW 7.01 EhP 6
Thanks,
ChadHi,
- in the Crystal Reports designer the list of values is not online and there is a maximum number of values - configured by a registry setting:
(windows 7)
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Business Objects\Suite 12.0\SAP\BWQueryReportWrapper
Key: MaxPickListSize
and correct you can not change the name of the variable or set it to dynamic as the definition is based on the BEx query.
I know there are a couple ways of sourcing a Crystal report from a BW query - using MDX vs. not, etc. I created this report using the SAP menu > "Create new report from a query". I don't believe Crystal will easily let you use that menu option to create a report off two BW queries joined together (which is what I am doing), so I built it off one originally (using the SAP menu), then added the other later on. I have the checkbox for "Use MDX driver with support for Multiple structures" checked. In database expert, my "Selected Tables" both are of database type "SAP BW Query".
The checkbox on the Multi Structure is not for the option to combine 2 Bex queries - it is for Bex queries with 2 structures and the BW query driver has been deprecated already and you have to use the MDX Driver.
Do I have the right understanding of how the value list should work when sourced from a BEx variable? If so, can anyone offer any suggestions for getting the value list populated correctly?
in Crystal Reports Designer the list is static and when you publish the report using the BW Publishing to your SAP BusinessObjects Enterprise system the list becomes dynamic in InfoView.
regards
Ingo Hilgefort -
Crystal Report Query taking too much time
Hi,
We are developing one report based on SQL Server 2008 in Crystal Report. There are around 50,000 valid combination in database. Based on dynamic filter we need to bring few records in report. Since these filters are at report level, and crystal report is using microcube, it is taking more than 15 mins to execute.
Is there any option to fetch record based on filter applied at report level.
Regards
BabyHI,
First of all , thank you very much.
Since having cascading prompt, we never thought in this way.
Details:-
For our report we have 4 prompts.
1. category->family-brand (cascading- mandatory)
2. season(madatory)
3.collection (madatory)
4.owner(not mandatory)
previously we set all these filters at record level.
Now we set season and collection at query level and brand, owner at report level. Report only query for selected season and collection only.
Thanks once again.
Regards
Baby -
Crystal report static string parameter is running with null value too...
Hi All,
I am new to crystal report . I am using crystal report XI and in the report I designed contain one static string parameter. If I not enter any value in that parameter field still myu report get run.As per requirement I dnt want to run report unless user enter any value in that field. How to do it? Please help. any comment is valuable.
ThanksThanks Json ..
your solution really helps me.Thanks again.
One more issue is here,
I have one subreport . In that 'amount ' field is present which have data type as 'character' in database. I convert it in numeric by using following fromula,
if NumericText ({Command.AMOUNT})
then
ToNumber ({Command.AMOUNT})
when I run report in designer, it works but when I run it on crystal report server it throws error ad "Error in File :Error in formula . 'if NumericText ({Command.AMOUNT}) ' This field name is not known. Details: errorKind "
Can u please help me out of it.
Edited by: girish_613 on May 10, 2010 10:25 AM -
Crystal reports not working when integrated security is set to true
Hello Everybody,
I have developed 20 crystal reports. When i deploy in my development environment(asp.net) these reports are working fine.My UAT environment is using application pool connection instead of database connection.
My .net developer has written a code and he set integrated security to true for reports. My problem is reports which are having parameters not working correctly. Reports which are not having any parameters, it is working fine. If i enter parameters in asp .net page, the report is running for all the values. It is not considering the parameter values.
Thanks
RamHi Ram,
Need more info, what version of CR assemblies, which OS is hosting the app and what patches, CR and OS are installed?
Have you discussed this issue with your developer? Possibly all of the runtime is not on the app server?
Thank you
Don -
Crystal Report not works in JAR File
I'm using Eclipse All in one, which includes Crystal Reports.. I Connected my Java program with Crystal Reports and its working properly. Now my problem is that the Report is not working in JAR files.. It throws some exception as
"com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com.businessobjects
com.businessobjects.reports.sdk.JRCCommunicationAdapter---- Error code:-2147215357 Error code name:internal"
Whats the Error.. I don't know. I think that i may missed some CLASSPATH Files. The included CLASSPATH Files are:
ReportViewer.jar
jrcerom.jar
Concurrent.jar
CrystalCharting.jar
CrystalCommon.jar
CrystalContentModels.jar
CrystalExporters.jar
CrystalExportingBase.jar
CrystalFormulas.jar
CrystalQueryEngine.jar
CrystalReportEngine.jar
CrystalReportingCommon.jar
icu4j.jar
keycodeDecoder.jar
log4j.jar
MetafileRenderer.jar
rasapp.jar
rascore.jar
rpoifs.jar
Serialization.jar
URIUtil.jar
xercesImpl.jar
xml-apis.jar
and the mysql-connector jar file
Anybody help me please...Unable to load database connector
'com.crystaldecisions.reports.queryengine..driverImpl.
DriverLoader
now you have any idea.. pleaseIs that a typo where you have two periods below?
queryengine..driverImplOther than that I don't think anybody here can help you with that. If your classpath includes all necessary JAR files and you are able to access all your resources from within your application JAR file, then I imagine there is a problem with the third-party crystal decisions JAR file or how you are attempting to use it.
My advice to you is to try and contact support with the vendor or provider of this API or possibly try posting on a support forum on their website to see if somebody can help you there. -
Crystal reports not working in windows 7 but working fine on XP
I have a VB .net 2005 windows app. It has been working on Windows XP (32-bit) environment for a while and now we are moving to Windows 7 (64-bit). The program runs fine except for the reports which was written using the crystal report built in with VB .net
2005. I get an error Database login and it asks for user ID and password. HELP PLEASE !!!!
I am using the following connection string:
DBconn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & str_data & ";Persist Security
Info=true;user ID=Admin;Jet OLEDB:Database Password= mypassword"
And on the REPORT form I have the following code
Private Sub frmExportDiv_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim crReportDocument As CrySelectedDivisionSummary
crReportDocument = New CrySelectedDivisionSummary
Dim ss As String = Application.StartupPath()
Dim logOnInfo As New CrystalDecisions.Shared.TableLogOnInfo
logOnInfo.ConnectionInfo.ServerName = ss & "\\Firm_data.mdb"
logOnInfo.ConnectionInfo.Password = "mypassword"
logOnInfo.ConnectionInfo.UserID = "Admin"
crReportDocument.Database.Tables("qryExportDiv").ApplyLogOnInfo(logOnInfo)
cryprintandexport.ReportSource = crReportDocument
End SubHi vbmaayah,
CR is not supported anymore by MSFT. Here is the official support forum:
http://scn.sap.com/community/crystal-reports/
Best regards,
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.
Maybe you are looking for
-
Content Filter - attachment stripping logic not working like I think it should
Hello, I am working on a content filter for stripping file attachments - my logic is this: Condition: If File Type does NOT EQUAL file type Documents: attachment-filetype != "Document" Action: Strip File Attachment by File Info: drop-attachments-by-s
-
What is Link-to in Property Editor-Items
hi tell me purpose of this properties in Property Editor. link-to---static text , Unique id--in all items and in form, Linkedobject--in link button .ObjectType----form reply appreciated karthik
-
Need help setting up!!
I need some guidience to setting up a remote connection to my work's G5 iMac. Here is the configuration: Server: The server will be the G5 iMac at work which is the only Mac on a network of PC's. Our company shares a DSL network connection. Remote: T
-
Why do I have 2 copies of the movie Skyfall??
Recently bought "Skyfall", downloaded the HD and SD versions from iTunes Store. Both versions are showing side by side in Movies area. All the other movies I have in HD and SD show up as one title. Checked in the media folder and both versions of Sky
-
I use Imacros. I got this error NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref], line 3 (Error code: -1001). I think it is because of this version of mozilla firefox 28.0. I read I sh