CrystelReport Datasource location problem

I'v developed an application.which works very fine on my pc. I havent done any hardcode there. I Have following code on my crystel reportviewer
private void crystalReportViewer1_Load(object sender, EventArgs e)
             HMSCon=new HMSConnection();
             connectionString = HMSCon.cn.ConnectionString;
             builder = new SqlConnectionStringBuilder(connectionString);
             password = builder.Password;
             username = builder.UserID;
             dataSource = builder.DataSource;
             initialCatalog = builder.InitialCatalog;
             myTBInfo = new TableLogOnInfo();
             myTBInfos = new TableLogOnInfos();
             myConn = new ConnectionInfo();
             myConn.ServerName = dataSource;
             myConn.DatabaseName = initialCatalog;
             myConn.Password = password;
             myConn.UserID = username;
             myTBInfo.ConnectionInfo = myConn;
             myTBInfos.Add(myTBInfo);
             crystalReportViewer1.LogOnInfo = myTBInfos;
  try
                 report = new FinalBillLodgingAndServices();
                 Lodgingreport = new FinalLodgingReportBill();
                 Servicereport = new FinalServiceBill();
                 String[] arrlis = (String[])RoomList.ToArray(typeof(string));
                 String[] servarrlis = (String[])ServiceroomsList.ToArray(typeof(string));
                 report.SetParameterValue("BookingId", bkinid);
                 report.SetParameterValue("RoomNames", arrlis);
                 report.SetParameterValue("BillStatus", "Paid");
                 report.SetParameterValue("LodgingPaybale", LodgingPayble);
                 report.SetParameterValue("AmountInWord", NetAmountINword);
                 report.SetParameterValue("PaybleServiceAmount", ServiceAmount,"FinalBillRoomServiceSubreport");
                 report.SetParameterValue("Rooms", servarrlis, "FinalBillRoomServiceSubreport");
                 crystalReportViewer1.ReportSource = report;
                 crystalReportViewer1.Refresh();
             catch(Exception ex)
                 MessageBox.Show(""+ex);
but when  i try to run that application on other pc it needs to set datasource location. and i need to rplace sql server name every time ..is der any way to open crystel report without seting this.

Couple of suggestiond:
1) make sure the db client is exactly the same version on both computers. You may want to use [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] to check that.
2) See KB [1553921  - Is there a utility that would help in writing database logon code?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353333333933323331%7D.do]
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Similar Messages

  • VS2010 Crystal Report Crashes System when using 'Set DataSource Location..'

    Runtime ASP.NET 3.5
    VS 2010
    Under Database Fields (rt click) try Set DataSource Location... causes VS2010 to crash.
    This is on an imported report from VS2008.  VS2008 has no problem with the report.
    Since this is a ASP.NET 3.5 program the internal property field
    <ResGenToolArchitecture>Managed32Bit</ResGenToolArchitecture>
    has been set in the project in order to allow the code to compile w/out errors.
    What is solution for Crystal Report Set DataSource Location?

    Hi Ken,
    Here's one link on the issue: CRVS2010 RTM: Database Expert / External Component has thrown an exception
    The reason is Old OS's used c:\temp as the default, now you are require to use %user%\temp as your temp folder as well as using the AppData folder for your app. If CR finds c:\temp it uses it and depending on what is in there it can cause Cr to crash, XML files have been know to do this.
    Following MS's new rules on users temp folder should make your app Windows Compliant.
    Thanks again
    Don

  • Error in setting datasource location from oracle to sql server

    Post Author: jonathanaramburo
    CA Forum: Data Integration
    Hello,
    I have an application that uses a table named "events" which conflicts the sys.events view in master database in sql server. The error i was encountering is that, whenever i tried to set the datasource location of my crystal report from its previous connection oracle to sql server, i get an error saying that some of the fields has not been updated because theres no matching fields to the current connection. It seems that crystal is pointing on sys.events view on master db and not on the events table in myDb database. How can I tell crystal reports to not pick up sys.events and get only myDB.events table.
    Thank you in advance,
    Thanks,
    Jonathan

    The exact statement in oracle side which causing this error (O2SS0050:
    Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.) is below:
    dStartDate:= to_date(sStartDate,'MON-YYYY');
    Statement causing error O2SS0050:
    Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported is below.
    nCount2:= length(regexp_replace(sDataRow,'[^,]'));
    So there is no statement which is using to_date(VARCHAR2,
    CHAR) and regexp_replace(VARCHAR2, CHAR) in as such. 'MON-YYYY'  and '[^,]'
    are CHAR values hence SSMA is unable to convert it from varchar2 to char.
    Regarding SYSDATE issue, you mean to put below code in target(SQL) side in SSMA ?
    dDate date := sysdate;
    Thanks.

  • Crystal Reports 2008 - Error setting new datasource location

    Hi All,
    We are experiencing an issue while trying to set datasource location for our RM 3.0 reports in Crystal Reports 2008 designer. As per guide "SAP BusinessObjects Process Control 3.0 and Risk Management 3.0 - How to build and Personalize Custom Crystal Reports" (step 11), after opening the desire report we go to DataBase-->Set DataSource Location and when selecting our RM system (which actually has the BI content addon installed on it), we got the following error message:
    "Some tables could not be replaced, as no match was found in the new data source. Please verify the table required for any unmodified tables"
    I'm new on this so I'm not sure if the table indicated in the original datasource should exist in my DB (new datasource) before doing this? If so, how those tables are imported or created in our DB?
    Could you please help me on this issue?
    Please let me know if any other detail or data is required.
    Regards

    Hi Don,
    Thanks for the update.
    Actually I've installed SAP Integration Kit and its Fixpack in both....BOE Server (which is the same as the SAP server) and in client pc.  In all cases we have select a typical installation which supposes the required drivers are available. Also I've followed Ingo's documentation to activate and publish standard Risk Management reports (RM reports). Everything works ok with them. We are able to access reports through the application.
    The issue appears when trying to customize one of these standard reports through CR Designer. For example if we select the "GRRM_Risk_by_Risk_Category" and try to customize it as indicated in the "SAP BusinessObjects Process Control 3.0 and Risk Management 3.0 - How to build and Personalize Custom Crystal Reports"...the table behind this report (table GRFN_CY_API_GRRM_R1) it's not in our RM System. My main concern or question is regarding this....Did I miss something while importing transports files, activating or publishing RM reports, etc....and thatu2019s the reason why this (and any other) table is not already in my system? I was not able to find where those tables are supposed to be or how they should be imported in my system. The odd thing is...that we are trying to customize and set the new data source for these reports to the same system from where they are being opened. Put in this way...RM reports have been activated in system A (RM System) and published to system B (BOE System). While customizing reports through CR Designer...we are actually opening reports from system A. These reports have as their original data source...a demo SAP system info (uxcir1p.wdf.sap.corp) and when we want to update this data source with our RM system....the error appears. The whole process is explained in the above mentioned guide for your reference.
    Hope being clear enough..
    Thanks for your help

  • How to change datasource location in CR V10

    How to change the datasource location in CR10, I need to use same table in different database. I tried in "Set Datasource Location" but it is not updating to the new one which i have selected. please help me on this.
    Thanks,
    S Aravind.

    Hi Try like this,
    Go to the Database option on the top > Select Set data source option.
    The top portion of the Set Data source Location window shows the current connection and part at the bottom is where you would make a connection to the new database
    Once the connection has been made, select 'one' table from the current connection and then select a matching table in the new connection and click on the 'Update' button. Do this for all the tables one by one.

  • Set datasource location command at runtime

    Post Author: Jamal
    CA Forum: Semantic Layer and Data Connectivity
    Dear Folks,
    I have crystal report 10 and MS access, I need to change my datasource location at runtime without having to type code other than crystal report like VB or C++, Do crystal report have this possibility to change datasource location at runtime without needing to code other than crystal report ???
    Basicly I have multiple MS access database files and need one Crystal report to read from all of them at the same time, how can I do that without coding in a language other than crystal report.
    Best Regards
    Jamal

    Post Author: matthewh
    CA Forum: Semantic Layer and Data Connectivity
    Get a copy of BO Server and use a Business View.   Don't know of any way in Crystal Reports  itself.  BO Server is good but it ain't cheap.  Depends on how many users you have and what sort of budget you have.  I'm using it here and it has a lot of benefits. Alternatively build a data warehouse just for reporting using a proper DB engine and get a single report off that.  Use something like MySQL - fast, and above all - free!   If you don't need bang-up-to-the-second reports then run a scheduled data extraction and upload over night, load the data into the new warehouse and then run your reports against it.  I'm in the process of doing just that.  Read Ralph Kimball's books "The Data Warehouse Toolkit" and "The Data Warehouse ETL Toolkit" to get the idea.  The MySQL forum has a good Data Warehouse section.  A warehouse also gives you many advantages in that your production databases are not too heavily loaded, all your data conforms to set standards (eg data formats are all the same) and you have a historical record that can build over the years to many GB of data - I think Access will struggle with that ;0) - to name but a few.  Hope this helps.  BTW - thought of this last night - MySQL also has the Federated engine - so you could hook all your databases into it and query it with Crystal as though they were a single database.  Not sure if it'll connect to Access though.

  • Crystal Reports 10 Datasource Location and SQL Query update

    I am running Crystal Reports 10 accessing SQL Server 2008 database on Windows 7. Our product changed database names and I'm trying to update reports to point to the new database. Sounds nice and simple. The database has no structure changes yet, it's just a copy and rename of the old database. Both databases exist, same SQL instance, same permissions, etc. ...
    Existing working report:
       Has an ODBC (RDO) location to database DbVersion1
       If I run Show SQL Query, the database name is in the query text (i.e. FROM DbVersion1.dbo.MyTable)
    Attempted:
       In Set Database Location popup, I created a new ODBC (RDO) connection to database DbVersion2
       Updated Current Data Source for report to this new ODBC (RDO) connection.
       Ran Verify Database. Popup stated "The database is up to date."
    But when I run "Show SQL Query", is still shows DbVersion1 in the text, and the report displays data from DbVerison1. When I display the Datasource Location for the report, it shows DbVersion2 as I changed to above. How do I "refresh" the SQL Query to recognize the new Datasource Location?
    Thanks,
    Gary

    Hi Gary,
    A possible couple of issues, CR 10 doesn't support SQL Server 2008 and it doesn't support Windows 7. We had to update CR XI R2 SP 6 and above to make SQL 2008 work. MS changed the name of their client dll so CR is not aware of the new drivers.
    MDAC native driver may work but not sure....
    Try OLE DB, it may work better.
    Thanks
    Don

  • Using Datasource location

    Hello,
    I am trying to change the tables used in a specific report.  Table "Customers" is currently being used in the report.  I have made a copy of this table in my MS SQL DB and called it "Customers_2011".  Using 'Set Datasource Location" I am trying to replace "Customers" with "Customers_2011", but nothing seems to happen when I press 'Update'
    Do the tables have to have the exact same name?
    Am I doing something wrong? or is there another way I should be doing this?
    Any help is appreciated.
    Thanks
    Joe

    Hi Joe,
    If the datasource has been updated, then the best place to look for the change is to look under 'Properties' of the connection. When you open the 'Set datasource Location' window it shows the connection name and under that it shows 'Properties' and then the table names.
    The table names also have their 'Properties' and when you click to open the tree, it should have the 'Table Name'. This property shows the original table name.
    In your case if it shows 'Customers_2011' under the properties and 'Customers' as the Tree heading, then you can change that from the 'Database Expert'. You should be able to rename the table by right-clicking it in the Database Expert.
    Hope this helps!
    -Abhilash

  • Set datasource location and remapping fields in code instead of designer

    Dear all,
    We are currently migrating a VS6 reporting project to VS2010. The old project has like 133 Crystal Reports XI release 2 reports.
    All of these .rpt files need to have their datasource location changed and fields remapped because of a change in naming convention.
    The datasource location is currently set to a stored procedure in an Oracle database and this will remain; only the name of the
    stored procedure and the name of the fields returned are changed (due to new naming conventions).
    Is there a way, and I really hope so, to programmatically change the datasource location and remap the fields (mind that these fields are also used in formulas, grouping, total, ...).
    Doing this manually in the designer for like 133 times would be very time consuming.
    After some research I stumbled upon the CrystalDecisions.ReportAppServer.Controllers.DatabaseController but I'm looking for some example usage, if this is the correct way.
    The end result should be that all these 133 .rpt files have their datasource location changed and fields remapped.
    Any assistance or pointers in the right direction would be kindly appreciated.
    Thanks.

    Not aware of how you can do this in code.
    However, there are third party products which you can use to mass update reports with datasource and table mapping.
    RptInspector is a product I know of that can do what you want.
    Ian

  • Selecting Datasource Location in Crystal XI causes software to lockup

    Anytime I click on Set Datasource Location in Crystal Reports XI Release 2, the software locks up.  I have to do a CTRL ALT DEL and End Task.
    Can someone help me?
    Thanks!
    Glynn

    Don,
    The only question that I can answer from the ones that you posed is my operating system:  XP.
    One of our computer techs installed the software on my computer for me from our school district's network.
    BTW, my wife works for a guy by the name of Don Williams down here in Southwest Louisiana. 
    Glynn

  • XSD Location Problem.

    Hi Gurus,
    After starting the node in a cluster environemnt, often receiving "Unable to load Translation schemas from for http://xmlns.oracle.com/BRM/schemas/BusinessOpcodes due to: XSD Location problem.
    XSD Loading problem."
    This is mainly observed in BRM schemas, has anyone exprienced this? what shall be the workaround/solution other than restarting the container/application?
    We are using SOA 10.1.3.4 MLR 8 and Oracle AIA 2.4.
    Please help.

    The BRM schemas are present in the AIA Components which will be referred by the load balancer url in a clustered environment. However, if in any of the nodes, the url for AIA Components has the local node url instead of load balancer url, this issue occurs.
    Identify the node which is giving the issue (shutting down one node at a time and retrying the operation which gives the error). In the node which has the issue, try doing a search on AIA components to find out if there is any reference using local node url instead of load balancer.
    If you find any, replace with the load balancer url. I had faced a similar issue and I was able to resolve it as I have mentioned above.
    Cheers,
    - AR

  • Storm9530 Location problem??

    Hi, i live in Canada and recently purchased a used and unlocked BB Storm 9530 off the internet from texas USA. I am using the phone Pre-paid for the time being and for some reason my calls I make are costing me a fortune. I live in a border-town with a US town right on the american side but since the phone is pre-paid it cant roam. Ive talked to my cell phone company about this and they said for some reason the phones is calling internationally and its not the service itself. The phone is manually selected for my home network and i just cant figure it out. is it because the phone is an american phone? is there any way of checking more into this because i cant even use my phone to call because $5.00 for a 15 second call is rediculous. please help!

    sherrdrew wrote:
    Does anyone know if Apple is ever going to fix the location problem.  I live in IL and my Ipad thinks I'm in NC.  I'm lucky though, searching the problem on the net I found most people who live in the US are having Ipad that think they live in Europe and Germany.  At least mine is on the same side of the world.
    What a totally ridiculous claim. Most iPad owners have no problems at all in this area. The fact that you are is invidual to you and your case and, absent any useful information at all in your two posts aside from "Hey, it ain't working ...", I guess we could guess that your problems are due to the fact that
    a. You don't have a 3G model, and therefore you don't have GPS, or ..
    b. You do, but it isn't working right, or ..
    c. You do, and it's working right, but PEBKAM, or ..
    d. You don't have a 3G model, and your iPad is unable to resolve the local WIFI data to generate a rough location, or ...
    e. Same as d. above, but the local wifi datafields are simply incomplete or incorrect, or ...
    f.  Yadda yadda yadda ......

  • Crystal 10 set datasource location issue

    I am getting hung up when trying to set a datasource location in Crystal 10.  I have tried uninstalling and reinstalling the software.  Any ideas?

    Hi,
    Try with this:
    1. Reduce the 'Hardware acceleration' setting in Microsoft Windows.
    2. To access the 'Hardware acceleration' setting in Microsoft Windows:
    Click Start > Settings > Control Panel > System > Display > Settings > Advanced > Troubleshooting.
    There are typically six possible settings for 'Hardware acceleration': from 'None' to 'Full'.
    If you are using Dual monitor run the CR application on primary monitor cause Dual monitor is not tested with Crystal Reports.
    Regards,
    Shweta

  • Set Datasource Location - Crystal XI to Access 2007 DB

    Hi all,
    Is it possible to Set Datasource location for a Crystal XI report to an Access 2007 DB?  I have reviewed the postings and can not find an answer.
    Edited by: Karen Arena on Jun 23, 2009 3:24 PM - I have resolved this on my own, it is possible, see library documentation.

    Resolved through documentation in Library.

  • Changing Datasource Location Does not Change Procedure Name

    <p>Is there a way to change the name of the stored procedure in the field explorer after changing the datasource location? I&#39;ve changed stored procedures in my report but it keeps the old name.</p><p> Crystal Reports 11 v2</p>

    -Database/Database Expert
    -Highlight SP on right hand database tree
    newSP
    ...this renames sp prefix across all<br /> formula and output fields in report<br />It&#39;s really an alias: it does not physically <br />change the SP name.

Maybe you are looking for

  • ICal and a BB8700 (v4.1) Month view?

    I'd love to be able to see "Week" and "Month" views of my calendar on the Blackberry. I loved this option on my old Palm, and iCal is an easy enough transition, but I can't seem to find any view options on the handheld. Is this somthing a Media card

  • Customizing report, list all GL items open as of a key date

    Hi Experts, For a customizing report, i have to list all those GL items open as of a key date, though they may be cleared now. i m finding in GL open items table BSIS, i can find open items (uncleared) only. please help me in developing this logic. R

  • Can't connect to our wifi with my laptop, but pc and iphone can!

    All devices (my boyfriends pc and my iphone and ipad) can log into our new wifi network except for my macbook pro. I can connect to any other wifi like the starbucks or our neighbors network, and all different hotel networks. I've never had a problem

  • Synchronising calendar on Lumia 520 with iPad

    I can synchronise from my phone to PC but not the other way around i.e. From my PC to phone. What I really want to do though is synchronise between my iPad and phone. Can anyone help ?

  • F110 for Customers

    Hello, We are using payment requests for customers (posting by F-37). We want to use F110 to convert these payment requests into down payments based on the due date in the payment request. In the free selection for payment run, we are entering the sp