Crystal Reports: How to change Oracle OLE DB server at runtime

Post Author: dvlasman
CA Forum: Data Connectivity and SQL
I'm using a rpt made with Crystal Reports 8.0.1 and VB 6. The report was made using the Microsoft OLE DB provider for Oracle. What I want to do is change to Oracle server / database the report is connecting to at run time before the report is displayed. I am using the Crystal Report Engine 8 Object Library (cpeaut32.dll), not the ocx.After creating the report object:Dim CrystalReport As CRPEAuto.ReportI open my report and discard saved data:'Open The ReportSet CrystalReport = CrystalApplication.OpenReport(msReportSource)CrystalReport.DiscardSavedDataConst sDBServer = "ORCL.SERVER" 'My TNS name for the Oracle ServerConst sDatabase = "ORCL.SERVER" 'I'm not sure what this value should beConst sUID = "system"Const sPwd = "manager"I was then going to change the database connection one of two ways:1:Dim objDatabaseTable As CRPEAuto.DatabaseTableFor Each objDatabaseTable In CrystalReport.Database.Tables    Call objDatabaseTable.SetLogOnInfo(sDBServer, sDATABASE, sUID, sPWD)    If (Not objDatabaseTable.TestConnectivity) Then        Debug.Print "Database failed connection: " & objDatabaseTable.Name    End IfNextSet objDatabaseTable = Nothing2:call crystalapplication.LogOnServer("pdsoledb.dll","MSDAORA.1",sDATABASE,sUID,sPWD)Neither of these two way gets me a successful connection. What am I doing wrong, and which is the preferred method to use?ThanksDean

Did you get a resolution to your problem? I cannot dynamically change the datasource location in .NET using CR XI via OLE DB for Oracle. I get "This field name is not known." messages and when I try using the set datasource location in the designer tool, the mapping dialog box comes up with no fields in the right box. Thanks, Brian

Similar Messages

  • Hyperlink on Crystal Report: how to popup a window without menubar?

    Hyperlink on Crystal Report: how to popup a window without menubar?
    Hello Experts!
    I'm using VS2003 with Crystal Reports for VS2003.
    I need to show a popup window clicking a hyperlink text object on my crystal report.
    On the CrystalReportViewer I have set up HyperlinkTarget=_blank, and it's working fine.
    But when I click on the hyperlink and shows the popup window, how can I show the popup window without menubar, toolbar, directories, etc.
    Something like:
    window.open('../MyPage.html?id=id001" + Cad + "',null,'menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=yes,status=yes')

    Adam is correct. The closest you can get is setting the CrystalReportViewers HyperlinkTarget to _blank. It was seen as a potential security vulnerability to allow you to run scripts from a Crystal Reports. In our Enterprise product you can use a reg key called EncodeHTMLForSingleLineFieldObjects to control whether this can be turned on or off.
    Unfortunately this was never ported over to our .NET CrystalReportViewer.
    This is referenced in notes 1202803, 1219298, and 1219301.
    https://www.sdn.sap.com/irj/sdn/businessobjects-notes
    Edited by: David Hilton on Jul 16, 2008 4:17 PM

  • How to change values of a characterstic at runtime?

    Hi,
    How to change the values of characterstic at runtime?
    for example if the characterstic contains values like P and A. i need to change all the P values as PLAN in the query output at runtime.
    Note: I cant use cell editor, because there are no stuctres in the query definition.
    Regards,
    Ravi

    Hi,
    Probably i was not clear in my question.
    for example characterstic ZPL contations Keys P and A with respectve texts PL and AC.
    but in the 10th query they dont want to see the text as PL but as PLAN. in the remaing queries they want to see the text as PL.
    I know we can do it using table interface in WAD-Table web item.
    If there any we can do this requirement in Bex designer?
    Regards,
    Ravi.

  • How to change language of the server monitor ?

    hi all,
    How to change language of the server monitor ? i got it in japanese and would like to turn it into English.
    Thx for your help,

    We use japanese strings only when your server locale has "jp": FindNoCase("Japan", GetLocale()) NEQ 0. So you may not be able to individually change  server monitor's flash client, but there are two ways to change it back to english on server level
    1) Check your server locale and change it to anything but japanese.
    2) Rename smresource_en.xml to smresource_jp.xml in CFIDE\administrator\monitor (take a back up).
    Thanks,
    Chandan Kumar

  • Oracle.j2ee.ws.server.mgmt.runtime.InterceptorContainerExtension not found

    I am getting this error whenever I try to start the oc4j server using jdev
    Server start failed (com.evermind.server.ApplicationServer@1f1e666)java.lang.InstantiationException: server-extension-provider class 'oracle.j2ee.ws.server.mgmt.runtime.InterceptorContainerExtension' not found
         at oracle.oc4j.runtime.ServerExtensionProviderSpec.instantiateServiceExceptionProvider(ServerExtensionProviderSpec.java:70)
         at oracle.oc4j.runtime.ServerExtensionProviderSpec.getProvider(ServerExtensionProviderSpec.java:55)
         at com.evermind.server.ApplicationServer.initInternalSettings(ApplicationServer.java:1401)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1104)
         at oracle.oc4j.server.ServerFactory$Worker.startServer(ApplicationServerFactory.java:272)
         at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:284)
         at java.lang.Thread.run(Thread.java:595)
    2008-11-25 04:14:06.698 Trying to destroy server.
    2008-11-25 04:14:06.701 Server exiting: ApplicationServer entered state FAILED_IN_START
    Process exited.
    And thus I am unable to start the server.
    The strange thing is that other people working on the same project don't get this error on their machines.I tried deleting system folder, restarting jdev, restarting my system and even tried to run a new page in a new view and new transaction
    However, nothing worked out as I am still getting the same error.
    The complete log is given below for reference.
    Please help.
    [Starting DefaultServer using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    /ade_autofs/ade_fusion_linux/JDK15_MAIN_LINUX.rdd/080209.1.5.0.15.02/jdk15/bin/java -server -classpath /scratch/software/jdev_local/FMWTOOLS_MAIN.APPS_GENERIC_081007.1211.D06B09.3/j2ee/home/oc4j.jar:/scratch/software/jdev_local/FMWTOOLS_MAIN.APPS_GENERIC_081007.1211.D06B09.3/jdev/lib/jdev-oc4j-embedded.jar -Xmx1024M -Djbo.debugoutput=console -Xverify:none -XX:MaxPermSize=512m -DcheckForUpdates=adminClientOnly -Xrs -Doracle.oc4j.configuration.rds.enabled=n -Dhttp.file.allowAlias=true -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false -Djava.security.policy=/scratch/mkghatak/view_storage/mkghatak_product_reg/.jdev_user_home/system11.1.1.0.30.50.50/o.j2ee/embedded-oc4j/config/java2.policy oracle.oc4j.loader.boot.BootStrap -config /scratch/mkghatak/view_storage/mkghatak_product_reg/.jdev_user_home/system11.1.1.0.30.50.50/o.j2ee/embedded-oc4j/config/server.xml
    [waiting for the server to complete its initialization...]
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.wsil.WSILServlet' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.DynamicProxySerializationReplacer' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServerMessages' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.WebServiceException' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.mgmt.runtime.InterceptorContainerFactory$1' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.mgmt.runtime.InterceptorContainerFactory' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.mex.MEXInterceptor' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.addressing.ServerWSAddressingInterceptor' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.wsat.WSATTransactionServices' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.wsat.WSATServerInterceptor' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.JmsTransportListener' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.WebServiceInvoker' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.portcomp.PortCompLinkResolverStruct' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.JAXRPCServlet' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServletContextualizer' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServletEndpointContextImpl' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServletPostHandler' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServletPreHandler' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.SingleThreadJAXRPCServlet' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.EjbContainerPostHandler' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.EjbContainerPreHandler' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderConfigImpl$DynamicService' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderConfigImpl' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderDescription' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderInfo' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderInfoFactory' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderInfoGenerator' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderJmsMessageListener' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderOperation' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderPlatformManager' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderPort' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderProcessor' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderServlet' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.WebServiceProcessor' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.WebServiceServlet' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ProcessorContext' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.addressing.ServerWSAddressingInterceptor' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.portcomp.PortCompLinkResolver' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.portcomp.PortCompLinkResolverHome' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.portcomp.PortCompLinkResolverIntf' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.JAXRPCServlet' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.mgmt.runtime.ServerInterceptorPipeline' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.codegen.ServerArtifactGenerator' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.Tie' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.TieBase' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.StreamingHandler' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.StreamingHandlerState' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServiceObjectFactory' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServiceRefInvocationHandler' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServletContextualizer' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.deployment.XMLHelper' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.fabric.FabricServiceEntry' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.fabric.FabricServiceEntryImpl' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.fabric.FabricServiceRegister' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.DocumentBareEndpointSerializer' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.DocumentWrapperEndpointSerializer' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.EJBWebServiceAnnotationParser' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.JAXWSRuntimeDelegate$1' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.JAXWSRuntimeDelegate' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.IncomingRequestData' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.JaxWsEJBWebServiceAnnotationParser' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.ProviderInfoGeneratorImpl' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.ProviderMessageContext' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.RpcLiteralEndpointSerializer' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.ServiceEndpointRuntime$1' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.ServiceEndpointRuntime' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.SoapEndpointSerializer' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.SoapEndpointSerializerManager$1' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.SoapEndpointSerializerManager' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.WebServiceAnnotationParser' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.WebServiceAnnotationParserFactory' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.WebServiceAnnotationParserResult' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.WebServiceContextImpl' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:03 WARNING: Bulk-load class 'oracle.j2ee.ws.reliability.interceptor.ReliabilityClientDescriptor' not found in oracle.ws.reliability:10.1.3
    08/11/25 04:14:03 WARNING: Bulk-load class 'oracle.j2ee.ws.saaj.soap.ch.BinaryDataContentHandler' not found in oracle.saaj:11.0
    08/11/25 04:14:03 WARNING: Bulk-load class 'oracle.j2ee.ws.saaj.soap.ch.GifDataContentHandler' not found in oracle.saaj:11.0
    08/11/25 04:14:03 WARNING: Bulk-load class 'oracle.j2ee.ws.saaj.soap.ch.JpegDataContentHandler' not found in oracle.saaj:11.0
    08/11/25 04:14:03 WARNING: Bulk-load class 'oracle.j2ee.ws.saaj.soap.ch.StringDataContentHandler' not found in oracle.saaj:11.0
    08/11/25 04:14:03 WARNING: Bulk-load class 'oracle.j2ee.ws.saaj.soap.ch.XmlDataContentHandler' not found in oracle.saaj:11.0
    2008-11-25 04:14:05.859 Legacy datasource detected...attempting to convert to new syntax.
    2008-11-25 04:14:05.859 Legacy datasource detected...attempting to convert to new syntax.
    2008-11-25 04:14:06.170 Missing audit farm configuration file null
    2008-11-25 04:14:06.209 Base directory /scratch/mkghatak/view_storage/mkghatak_product_reg/.jdev_user_home/system11.1.1.0.30.50.50/o.j2ee/embedded-oc4j/config/applications defined in system property does not exist.
    2008-11-25 04:14:06.697 Server start failed (com.evermind.server.ApplicationServer@1f1e666)java.lang.InstantiationException: server-extension-provider class 'oracle.j2ee.ws.server.mgmt.runtime.InterceptorContainerExtension' not found
         at oracle.oc4j.runtime.ServerExtensionProviderSpec.instantiateServiceExceptionProvider(ServerExtensionProviderSpec.java:70)
         at oracle.oc4j.runtime.ServerExtensionProviderSpec.getProvider(ServerExtensionProviderSpec.java:55)
         at com.evermind.server.ApplicationServer.initInternalSettings(ApplicationServer.java:1401)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1104)
         at oracle.oc4j.server.ServerFactory$Worker.startServer(ApplicationServerFactory.java:272)
         at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:284)
         at java.lang.Thread.run(Thread.java:595)
    2008-11-25 04:14:06.698 Trying to destroy server.
    2008-11-25 04:14:06.701 Server exiting: ApplicationServer entered state FAILED_IN_START
    Process exited.

    This is not an ADF related problem. I have the same problem when trying to start embedded OC4J with an simple JSP or servlet. OC4J complains about the missing class and the browser does not start automatically, but you can start the browser manually and type in the right URL. At least with servlets and JSP this works just fine - (but you are still right, it's the wrong forum).
    Wolfgang

  • How to Pass parameters to Crystal report 10 based on Oracle Stored Procedur

    Hi,
    I use the following code to pass the parameters:
    Rep.Tables[0].ConnectBuffer := Connection_Str;
    Rep.Tables[0].AliasName := 'REP';
    Rep.Connect.Propagate := True;
    Rep.ParamFields.ByName('Lang', '').CurrentValue := IIF(BiDiMode = bdRightToLeft, '2', '1');
    Rep.ParamFields.ByName('SESSION_ID', '').CurrentValue := IntToStr(Session_id);
    Rep.WindowState := wsMaximized;
    Rep.Show;
    The 1st parameter 'Lang' which created from crystal report pass well,
    but the 2nd parameter 'SESSION_ID' which created from Oracle Stored Procedures give the following Error:
    Error: 202 Parameter Name could not be found u2013 ParamFields.ByName
    However in MS SQL Server the above code work fine with the 2 Parameters.
    Any one has solution,

    Hello,
    Click on the businessobjects Tab above and then select Samples and dowload the sample app you for your SDK. There are a few samples for changing/setting Parameters.
    The Parameter collection has all parameters.
    Thank you
    Don

  • How to create a Crystal Report to connect to Oracle

    Hi,
    When I create a Crystal report to connect to SQL Server, I create a stored procedure to get all data I need and connect to it from Crystal Report.(In the stored procedure, I created temp tables, used cusor etc to run data.) But now I need to use a Oracle database. I heard I need to create a package and put this stored procedure in this package. Questions:
    1. if I need to create a package, how can I call the stored procedure from it?
    2. Can I create temp table in this procedure too? I need to create some temp tables to join together to get complex data.
    3. if I want the return data from stored procedure, do I still "select ... from ..." or there is another other ways?
    I am so desperated. Please help. I know this are very silly questions. But please.

    Hi Jenny,
    We are also using Crystal Reports for our Oracle Database, we normally just select the tables we want to use or create our own SQL query.
    However, if you really want to use Oracle stored-procedure (which performs faster than a SQL query because the stored procedure is compiled in advance), you can look at this document:
    http://support.businessobjects.com/communityCS/TechnicalPapers/scr_oracle_stored_procedures.pdf
    Hope this will answer your questions.

  • How do I connect from Crystal Report version XI to Oracle 10G express?

    I'm new to oracle 10G express and I'm developing an application that needs reports to preview some data from oracle tables.
    The oracle database is installed on the server and I installed the client on my machine. I need to use the crystal report 11 to report the output. Thus, I designed a crystal report that should simply read a table on oracle and though I need to be able to connect to the oracle 10G Express Edition database. I tried to create a connection from the crystal report using the Database Expert >> Create New Connection >> Oracle Server and I include the following parameters.:
    - Service: host:1521/XE
    - Username: username
    - Password: password
    Then when I tried to connect the crystal report crashes always.
    Is there any way to create a connection to the Oracle Database 10G express from Crystal Report 11?
    Please advise...

    Thank you bala,
    First, How I should start the Listener on the database server?
    Listener.ora content:
    SID_LIST_LISTENER =
    +(SID_LIST =+
    +(SID_DESC =+
    +(SID_NAME = PLSExtProc)+
    +(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)+
    +(PROGRAM = extproc)+
    +)+
    +(SID_DESC =+
    +(SID_NAME = CLRExtProc)+
    +(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)+
    +(PROGRAM = extproc)+
    +)+
    +)+
    LISTENER =
    +(DESCRIPTION_LIST =+
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = Daoud-PC)(PORT = 1521))+
    +)+
    +)+
    DEFAULT_SERVICE_LISTENER = (XE)
    How to configure the tnsnames.ora on the client side?
    tnsnames.ora content:
    XE =
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = Daoud-PC)(PORT = 1521))+
    +(CONNECT_DATA =+
    +(SERVER = DEDICATED)+
    +(SERVICE_NAME = XE)+
    +)+
    +)+
    EXTPROC_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +)+
    +(CONNECT_DATA =+
    +(SID = PLSExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    ORACLR_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +)+
    +(CONNECT_DATA =+
    +(SID = CLRExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    Now I`m trying to initialize this on one machine (database & client) and so the crystal report will be on the same machine where the database exist; Additionally, this machine has OS Windows 7 Ultimate 64bit and include the Oracle 10g Express Database & Oracle 10g Express Client software.
    Please check the files content I included above and give me the way on how to establish a connection from the crystal report to the database where both are installed on the same machine.
    Thanks in advance...

  • Crystal Report to PDF change fonts, cut text and change lines

    Post Author: jzwanziger
    CA Forum: Exporting
    Hello all, I am using Crystal Reports v10 and I created my report. The report works fine and the export function works fine in some particular servers. We were developing under Windows Server 2003 Service Pack 2 using Visual Studio 2005 Service Pack 1. We created the deployment and in our testing servers works fine (Windows Server 2003 and Windows XP these machines doesn't have any development tool).
    When we installed the same deployment (MSI) file in the customer Windows Server 2003, the exporting function to PDF or using it the Crystal Reports viewer doesn't work (Same worng thing that is displayed in the viewer is in the PDF). We had detected labels cut in the middle, some fields changed the font size or alignment and some lines move it up, down or growing. Obviously this looks like a environment problem, but we don't have any idea how to fix it, or what is missed.
    We tried to install, Windows Service Pack 2, install Acrobat Reader v8, verified the dll's, try to install the "dbex10win_en.zip" hot fix (we were not able to install it, setup file fail due some registry inconsistencies), Validate that the fonts are the same, and nothing fix the problem.
    Could somebody help us, we are a little desperate.
    thanks in advace for any idea.

    See [this|https://forums.sdn.sap.com/click.jspa?searchID=29094456&messageID=7206473] forum thread for possible clues to a resolution. In a nut shell, as long as the Calibri font is up to date, the other two steps are;
    1) Ensure you are using the latest Service Pack as suggested by Jonathan
    2) See what USP10.dll is loading (use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility)
    Also, if this is a win app, compile it to an exe and run the exe to see if the issue persists. (when running the app exe, the USP10 loaded should be from the CR bin directory. when running ion the .NET environment, the USP10 will load from win\system or other)
    Ludek
    Edited by: Ludek Uher on Jul 16, 2009 10:57 AM

  • Crystal report - how to split a field into more fields

    Hello,
    I`m new to Crystal reports and I`ve got a trouble. I have field which contains an address - street, city, zip code. The example is:
    STEHLIKOVA 977 165 00 PRAHA 620 - SUCHDOL 165 00.
    What I need to achieve is to split this string into three separated fields. I`ve trouhg a couple of forums but haven`t been able to find a proper answer. The problem is that the addresses differ so I can`t use an absolute defining of a start position. Looking at the DB (HEXA code) the parts in the string are divided by two dots:
    STEHLIKOVA 977..165 00 PRAHA 620 - SUCHDOL..165 00
    I`ve been able to work out this solution:
    stringVar array x := split({cparty.STREET_ADD},"..");
    Local numberVar i;
    Local stringVar outputString := "";
    For i:=1 to Count(x) do
    outputString := outputString + x[i] + Chr(10)
    outputString;
    It splits the string into three rows:
    STEHLIKOVA 977
    165 00 PRAHA 620 - SUCHDOL
    165 00
    And I don`t know how to find the end of each row so to be able to separate the strings and report them as three different fields.
    Would be anyone so kind and help me out with this?
    Thank you.
    Petr

    Hi
    Actually using a for loop is not necessary here. All you need to do is to add several formula fields: one for street, one for city and one for zipcode. In @street field you add formula:
    stringVar array x := split({cparty.STREET_ADD},Chr(13));
    x[1];
    Then you drag such formula field to details section of your report and watch preview to check if everything looks alright. Repeat for every formula field that you'd like see in your report.
    In @city you add almost identical formula but you change index, i. e. instead of x[1] you need to use x[2]. Then for @zip x[3].
    You may need to check if your address has all three parts - for example if you want to use formula in the second part of your address field you may need check first if there are at least two parts after split:
    stringVar array := split({cparty.STREET_ADD},Chr(13));
    numbervar c; 
    c := count(x); 
    if 2 <= c then 
    x[c]; 
    Var 'c' is used to store the number of elements in array after split. Then I'd like to check if the part (second) actually exists. So I try to check if number of part that I want to refer to is not bigger than the number of elements in array after split (here stored in var 'c').
    Actually the code presented above is not enough since you have no guarantee that you'll always get address structured in the very same way. For example in demo PL database I have zip code and city in the same row after split with Chr(13) as delimiter.
    You'll need to experiment or ask someone to prepare correctly structured data coming from B1 to your report.
    Kind regards,
    Radek

  • Crystal Report: How to make the fixed height box in all pages.

    Post Author: WTech
    CA Forum: Crystal Reports
    I want to make the height of box fixed size in all pages. The box in outside the detail section. Currently the size of the box changes according to the content of the detail section. Could anyone suggest me how should i achieve it ?  

    Hi srinivasan,
    If you want to keep "Save" and "Stop" common, Why do you want to keep them on Tab control? Is your tab control taking entire space on Front panel? If so, you can have SAVE and STOP on other vi, and you can call this vi (MODAL).
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

  • Crystal Report XI SP2 with Oracle

    Hello,
    We are migrating our applcation to Visual Studio 2008 with all reports to be designed in CR X1 SP2. Our database is Oracle 10g. Our reports can be based on Stored Procedure or SQL Queries. can someone point me to some good tutorial/link to start on this. How can i configure my database or how to call reports.
    Thanks

    Hello, Vijay;
    Crystal Reports XI R2 is not supported with Visual Studio 2008.
    Your choices are:
    u2022   Use Visual Studio 2005 with Crystal Reports XI R2
    u2022   Use Crystal Reports 2008 Basic (10.5) that bundles with Visual Studio 2008
    u2022   Use Crystal Reports 2008 (12.0) full version with [Service Packs |https://smpdl.sap-ag.de/~sapidp/012002523100010503722008E/cr2008_sp1.exe]
    The appropriate Developer's Library has documentation, tutorials and samples
    Developer Library Crystal Reports XI R2[ here|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm]. Look under Crystal Reports .NET SDK for tutorials and samples.
    Developer Library Crystal Reports 2008 [here|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm] and [here|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm]
    The samples can be found [here|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0bf8496-2a81-2b10-95ac-b1f48d5b63f5].
    Elaine

  • Crystal Report Viewer Page Change Refresh Issue

    Hello
    I hope this is an easy question for someone out there.
    I am using a crystal report viewer with the code contained in the page init event. The report has several pages and opens in a separate tab. There is also a on demand drilldown sub-report in the report.
    When I want to move to the second page the viewer seems to process the code again (like its runs the page init event) which takes several seconds so will not be satisfactory for the users. I tried the concatenate the pages using the 'SeparatePages' property but then the user can't select a specific page.
    Is there any way that the report can just open in the viewer and not have to reload everytime the user changes page?
    Thanks in advance
    Dave.

    Hi Dave
    In a web app, you could place the reports in session. See KBA: 1985571 - How to use sessions in web applications using the Crystal Reports viewer (the complete code)
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Crystal report -How to display multiple lines in line chart?

    Hi,
    M struggling to display multiple lines in line chart. All the values m fetching it from database into data table in below format & data type
    Category(String).....year(Int).....graph_values(Int).....table_value(String)
    Test.........................2006.......... -100............................(100)
    Avg..........................2006..........20................................20
    Median......................2006...........5................................5
    Test..........................2007...........500.............................500
    Avg...........................2007............90..............................90
    Median.......................2007............45..............................45
    M using cross tab to display data and chart to plot line. Following fields I used in Cross tab Expert & Chart expert
    Cross tab expert-
    Rows u2013 category
    Columns u2013 year
    Summarized fields u2013 Min of table_value
    In Chart Expert u2013
    On Change of - Year
    Show values - graph values
    In cross tab m able to see the data properly but not in graph.I have three categories. Hence it should plot three lines in line chart but m able to see only one line for test category.
    FYI u2013 using VS 2008 and crystal report assembly version 10.5
    Urgent. Please reply soon.
    Thanks
    ThakurS

    I got the solution.
    In Chart Expert - I should use
    On Change of -- Year, Category
    Show values -- graph values
    Thanks,
    ThakurS

  • Crystal Report Viewer Not Releasing Oracle Database Connections

    I have a very simple vb.net 3.5 web application that uses the Crystal Report viewer 2008 to open a report. My requirements are as follows:
    1. Reports are built by another company and provided to us and used in a web environment
    2. All reports contain parameter fields
    3. The web application must be generic enough that a report can be added to a list and the user simply selects the report and provides database login information. The Crystal report viewer with handle the request for parameter values and prompt the user for their values.
    4. All reports connect to an Oracle 10g server.
    The above requirements have been meet and we have an extremely simple web application that runs the reports. It is working very well other than the crystal report viewer is not releasing the database connections. This is bad because the credentials are on a per user basis and that same user must login to a different oracle application simultaneously. They are being denied access because the credentials are already in use. We do not have control nor influence over the policies in use on the Oracle server. Ideally we would like to control the Crystal Report viewer so that it closes connections after use.
    The web application code is:
    Private Sub viewReports_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
    If Not IsPostBack Then
    ConfigureCrystalReport()
    End If
    End Sub
    Private Sub ConfigureCrystalReport()
    'Load the Crystal Report viewer with a report.
    Try
    Dim reportPath As String = Server.MapPath(Session("reportname"))
    crViewer.ReportSource = reportPath
    Catch ex As Exception
    Response.Write(Server.MapPath(Session("reportname")) & "
    " & ex.Message.ToString & "
    " & ex.StackTrace.ToString)
    End Try
    End Sub
    Can anyone shed some light on this topic? Thank you

    Hello, Timothy;
    By default, having the report in session will hold it open for 20 minutes.
    If you create the report as a ReportDocument object you can take it out of session and release it more efficiently. That will release the connection.
        Private Sub ConfigureCrystalReports()
            If (Session("hierarchicalGroupingReport") Is Nothing) Then
                hierarchicalGroupingReport = New ReportDocument()
                hierarchicalGroupingReport.Load(Server.MapPath("Hierarchical Grouping.rpt"))
                Session("hierarchicalGroupingReport") = hierarchicalGroupingReport
            Else
                hierarchicalGroupingReport = CType(Session("hierarchicalGroupingReport"), ReportDocument)
            End If
            myCrystalReportViewer.ReportSource = hierarchicalGroupingReport
        End Sub
    In the Form Unload of the Viewer:
                'Take the report out of session
                Session("hierarchicalGroupingReport")  = Nothing
                Session.Contents.Remove("hierarchicalGroupingReport")
                'Clean up the ReportDocument object
                hierarchicalGroupingReport.Close
                hierarchicalGroupingReport.Dispose()
                hierarchicalGroupingReport = Nothing
                GC.Collect()
    Elaine

Maybe you are looking for

  • Help with page width

    Hi Guys, I was hoping you could help me. This is my page width in dreamweaver. And now here's my site in Firefox. Does anyone know how to fix this? Many thanks

  • Need original driver for Jukebox

    I went through all the stages suggested by many on this forum, and I came to the conclusion that I would need the original driver in order to take any further ste ps. Does anyone have the original .0 driver for Jukebox 3 you can upload? I've been goi

  • Running Total of a Calculated Member

    Hi Friends , Need help  in calculating the Running Total of a calculated member . I am using the below Query to calculate but it is not showing correct Values. Query : WITH set [FUNCTIONAL BENEFITS] as ORDER( [FUNCTIONAL BENEFITS].[FUNCTIONAL BENEFIT

  • Jow to make a program?

    How can i make a program that makes FTP Server with a tree that explore it files

  • Blank photo file in recovered photos in photo library

    hi Every time I open iphoto I initially get a message that I have exactly "17 photos that have been found and have not been imported to the iPhoto library. . . would you like to import them? " This message comes up twice. If I press "yes" nothing is