Crystal Report, BW and BO

I know in order for BO scheduler to run a report the report my be saved on BO server.
I would like to know if you can create a report using BW query then save the report on BO to have the scheduler run the query?
Thanks,
NewToProgramming

We should hopefully be able to provide more on this soon as we have been acquired by SAP. You could also try SDN.
Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/robhorne</a>

Similar Messages

  • Crystal Reports 9 and SQL Server 2005 default parameter values

    We're using Crystal Reports 9 and upgraded from SQL Server 2000 to SQL Server 2005.
    I'm noticing a very weird problem which I wonder if anyone else has experienced (and hopefully found a resolution for). It appears that in using Crystal with SQL Server 2005 stored procedures, if we have default parameter values in the stored procedures, the default parameter values get completely ignored if you pass in a NULL value from Crystal!
    For example, if you have a stored procedure that begins like this:
    ALTER          Procedure [dbo].[StoredProcedure]
    @Param1 VarChar(200) = '',
    @Param2 VarChar(200) = ''
    AS ...
    both @Param1 and @Param2 have a default value of an empty string, and therefore should become empty strings if nothing (NULL values) gets passed in for them.
    But, like I said, what I'm finding is that with Crystal calling the stored procedure with NULL @Param1 and @Param2 values, they never become empty strings, but rather remain as NULLs.
    This was never a problem with SQL 2000.
    Very perplexing. Anyone else every experience this?
    Thank you.

    Please ignore my earlier post -- answered my own question.
    NULL parameter values do not get replaced by default values in SQL -- that is normal behavior in both SQL 2000 and SQL 2005. Just goes to show, that no many how many years programming experience you have, you can still get tripped up sometimes : (

  • Crystal Reports export and print fails with SSL / https but works with http

    Windows 2008 Server, 32-bit (IIS7)
    ASP.NET 2.0
    Ajax 1.0
    Crystal Reports version 10.5.3700.0
    http:  printing works, export works
    https:  printing not working, only export to MS Excel and MS Word work.
    I am able to generate reports using both http and https, and the toolbar icons are all showing.  However, I am unable to print or export properly with SSL.
    Printing prompts me with a select printer window, and then a window 'Retrieving Page 1' follow by two messages from Crystal Print Control both stating:
    A communication error occured.  Printing will be stopped.
    Exporting generates various errors depending on which export method is being selected (however Excel and Word work over https).
    I've found the same problem on this site and other forums, but never a resolution to get exporting and printing to work with SSL.  Will someone please provide me assistance or possibly relay what settings they're using if they have Crystal Reports export or printing working over SSL in IIS7?  Everything works fine when I change the address from https to http.
    Please let me know if I can help by providing further information.  We've gone through a great deal of possible solutions with code and I'm currently looking in to IIS settings again.
    Thank you.

    Thanks Ludek. I got it by searching KB number.
    Unfortunately, it didn’t fix my problem even my IE (IE8 and IE 9) has correct setting.  I double check my version. PrintControl.CAB is version 10.2.0.1146. we use VS 2005 Crystal report and VB .NET. It works fine on HTTP. But when we use HTTPS (SSL Certificate from go daddy).
    1: Crystal report export
                Export to MS Excel, Word: pop us “File download”, then click “Save”. It says “Internet Explorer cannot download ReportView.aspx from my site. Internet Explorer was not able to open this internet site. the requested site is either unavailable or cannot be found. Please try it again later”
                Export to RPt, Rich text format: It says “Internet Explorer cannot download ReportView.aspx from my site. Internet Explorer was not able to open this internet site. the requested site is either unavailable or cannot be found. Please try it again later”
                Export to PDF : nothing happened.
    2: Print:
                Pop up dialog to select printer, click “Print” “. Shows windows “Crystal Report Viewer” and pop us error message box. Title is “Crystal Print Control”. Message is “An communication error occurred. Printing will be stopped”. Click “OK” and pop up error message box again.
    Please advise.
    Thank you very much!

  • Query Engine report error with Crystal Report 9 And MS SQL SErver 2000

    Hi,
    Currently I m doing a report with Crystal Report 9 and MS SQL as back End.I used a stored procedure to fetch data from DB.The Stored procedure works properly with query analyzer . But when I take report through application
    "Table Not Found" Error is coming.Later I Found that In stored procedure for certain conditions only this error comes.But I cant resolve it.
    Can any One check any pblm with this query
    ELSE IF ISNULL(@intSourceID,0) = 10 Or ISNULL(@intSourceID,0) = 11 Or ISNULL(@intSourceID,0) = 12 Or ISNULL(@intSourceID,0) = 13 Or ISNULL(@intSourceID,0) = 14  
    BEGIN
    IF ISNULL(@intSchemeID,0) <> 0  
    BEGIN
    Select* From table
    END 
    ELSE IF ISNULL(@intSchemeID,0) = 0  
    BEGIN
    Select 
    END 
    END
    When I comment the above codes , report works fine....
    Can any one help me....plz....I m in such a critical situation...

    Hi,
    Currently I m doing a report with Crystal Report 9 and MS SQL as back End.I used a stored procedure to fetch data from DB.The Stored procedure works properly with query analyzer . But when I take report through application
    "Table Not Found" Error is coming.Later I Found that In stored procedure for certain conditions only this error comes.But I cant resolve it.
    Can any One check any pblm with this query
    ELSE IF ISNULL(@intSourceID,0) = 10 Or ISNULL(@intSourceID,0) = 11 Or ISNULL(@intSourceID,0) = 12 Or ISNULL(@intSourceID,0) = 13 Or ISNULL(@intSourceID,0) = 14  
    BEGIN
    IF ISNULL(@intSchemeID,0) <> 0  
    BEGIN
    Select* From table
    END 
    ELSE IF ISNULL(@intSchemeID,0) = 0  
    BEGIN
    Select 
    END 
    END
    When I comment the above codes , report works fine....
    Can any one help me....plz....I m in such a critical situation...
    Refer the above statement highlighted in BOLD. That statement is WRONG. Select what ???? Try any one of the below statement,
    select ''
    --or
    select 0
    --or
    select null
    Regards, RSingh

  • Crystal report 11 and IIS

    Post Author: lijolawrance
    CA Forum: Exporting
    Hi to all
    We are using crystal report 8.5 for my application till now. The reports are viewed online using IIS and report viewer. Due to some technical infeasibility, we have planned to switch to crystal report 11. Can anyone tell me that how can i migrate to this using the IIS. I want to open my report online like (http:
    localhost:8099\report.rpt user earlier)./can anyone help me in that

    Post Author: iamtgo3
    CA Forum: Data Connectivity and SQL
    I just purchased Crystal Reports 2008 and it still does not seem to recognize access 2007 *.accdb files. So I have same answer as above will there be a patch or upgrade of some sort to make Crystal Reports recognize Access 2007 *.accdb files.

  • Crystal Reports 9 and Dot Net 2 SP2

    We have a VB6 application that uses Crystal Reports 9 and makes a call to DB2. When we patched the Windows 2003 server it runs on to Dot Net 2 SP2, the call to DB2 would hang. If we removed the patch, the problem goes away. Microsoft said this is a Crystal issue not a dot net issue so they referred me to this site. Has anyone seen anything like this or have any suggestions as to how to get around this? Our Infrastructure Admins would like to get Dot Net 2 SP2 on ths server so I can't leave it unpatched indefintiely. Thanks

    Hi Brian,
    Moved your post to the Legacy SDK forum.
    Which report engine are you using in your app?
    Cr 9 is end of support long time ago so nothing we can do to fix this other than to upgrade to CR for .NET components. Or possibly CR XI R2 and the RDC if that is what you are using.
    What error do you get?
    Don

  • Crystal Reports 2008 and Postscript

    Hello,
    I think I have to start a new thread for this. Originally I described the problem here:
    Printing Crystal Report to Postscript
    Now we upgraded our Crystal Reports for Visual Studio 2005 to the latest version - CR 2008 SP0. We had purchased the full version to be able to print the postscript files correctly, without any prompts for the file name, because I've read that this was a bug in the old versions, but it had been fixed. But I still cannot do this.
    I'm trying to print my reports to the postscript file:
    PrinterSettings ps = new PrinterSettings();
    ps.PrinterName = "TRADEPOSTSCRIPT";
    ps.PrintFileName = txtPath.Text.Trim() + "
    " + txtFormNo.Text.Trim() +
    ".ps";
    ps.PrintToFile = true;
    rpt.PrintOptions.CopyFrom(ps, ps.DefaultPageSettings);
    rpt.PrintToPrinter(1, true, 0, 0);
    I'm still getting prompt for the file name.
    This doesn't make any sense - the path and file name are specified in my code. The whole project will be useless for us if the users will be getting prompts.
    Could you please help me how to solve this issue?
    Thank you,
    Peter Afonin

    Hi,
    I am trying to print and specify a filename to a postscript printer as well. However, my version of crystal reports in Visual Studio 2008 does not come with this method....
    reportDocument.PrintToPrinter(printerSettings, pageSettings, True) ?  
    I have checked and there does not exist an overloaded method in the object browser for this 'PrintToPrinter' method that would accept PrinterSettings object??
    The only method I have is as below:
    ===============================
    public virtual void PrintToPrinter(int nCopies, bool collated, int startPageN, int endPageN)
        Member of CrystalDecisions.CrystalReports.Engine.ReportDocument
    Summary:
    Prints the specified pages of the report to the printer selected using the PrintOptions.PrinterName property. If no printer is selected, the default printer specified in the report will be used.
    Parameters:
    nCopies: Indicates the number of copies to print.
    collated: Indicates whether to collate the pages.
    startPageN: Indicates the first page to print.
    endPageN: Indicates the last page to print.
    ===============================
    My version is Crystal Reports Basic and is what comes with VS 2008 (not upgraded):
    From  the GAC:
    CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0
    FileVersion: 10.5.0.1943
    .NET FRAMEWORK v3.5 SP1
    Please help.
    Thanks,
    EM

  • Converted to Crystal Reports 2008 and now have an issue with deployment

    Post Author: lwager
    CA Forum: Deployment
    I have converted my application to Crystal reports 2008 and I have that as a prerequisite in my set up program but everytime I try to install the software package on the client's machine I get this error when it is trying to install Crystal Reports
    Verifying file integrity of C:\DOCUME1\lauriew\LOCALS1\Temp\VSD1B7B.tmp\CrystalReports 12.0\CRRuntime_12_0_mlb.msiWinVerifyTrust returned 0File trustedError: Setup has detected that the file 'C:\DOCUME1\lauriew\LOCALS1\Temp\VSD1B7B.tmp\CrystalReports 12.0\CRRuntime_12_0_mlb.msi' has changed since it was initially published.
    Does anyone know why I am getting this error?  Thanks in advance for your help.

    I'm having the same problem ! Can someone help me with this problem ????

  • Crystal Reports 11 and 8.5

    I have a 8.5 Crystal Report Server and need to update reports. We can't find our 8.5 license and needed to know if I can run a Cyrstal report written in version 11 and run on a 8.5 server.

    Hi Tom,
    No, Crystal Reports 8.5 file format can be read by CR 9 and above but CR 9 and above reports cannot be read by CR 8.5 and below. We updated CR 9 to fully support UNICODE and therefore the file format in CR 9 and above is not backward compatible or readable by CR 8.5.
    Only option is to try to find an old copy of CR 8.5 and valid license.
    Thank you
    Do

  • Crystal Reports 11 and 8.5 Compatibility

    Post Author: mcneillb
    CA Forum: Deployment
    Can an application running Crystal Reports 11 and a legacy application running Crystal Reports 8.5 co-exist on the same system?  The legacy application is a vb6 app and just uses the crystal report viewer.  If they canu2019t what needs to be fixed or otherwise changed?
    It appears if the legacy app is installed last, then the Crystal Reports 11 application is broken (its report viewer doesnu2019t work).
    ThanksBlake

    Hello Javier,
    There isn't going to be much, if any, DLL files that are compatable with both. When version 9 was made it was redesigned from the ground up to be Unicode compliant. When this was done all DLL files that worked with the old versions would not work with the new versions.
    -Sean

  • Crystal Reports - Saving and the transport request screen

    Good morning BI people,
    Has anyone had this annoyance?
    You are creating a Crystal report(2008 v12.2.7.598) with connection to sap bi(7.01) and when you save, the transport request screen doesn't come up front of crystal reports, it is created behide the screen. so, you sit and look at the hour glass for 5 mins, move on to other things, and then you realize that the transport screen is behide the crystal reports screen. and, it is not like you can minimize the crystal screen. you have to minimize all your screens and then click on the crystal screen from you tool bar and then, the transport screen comes up.
    anyone have a fix for this?
    or am i alone....
    thx,
    Erik

    Hi Brad
    I'm not sure that Modules would show us anything in this case, so let's try a few other things:
    1) Make sure you are using SP 1 for Crystal Reports Basic Runtime for Visual Studio:
    Crystal Reports for VS 2005 and VS 2008 Updates & Runtime Downloads
    2) Seeing as this works on dev, this may be some db inconsistency so enabling the report option "Verify on 1st Print" will be a good idea.
    3) Double check the database client and make sure the same client is used on dev and deployed systems. Actually I take back my Modules negative as this is where it may prove useful. Once you have the Modules logs, look at who is loading the crpe32.dll, then look at that process and see the client dlls.
    4) Check the printer driver; see if there are any updates. Try a different printer driver.
    Ten subreports is not too bad, though not that good either as you are loading the report engine with at minimum 11 simultaneous reports (each subreport is considered to be a report). If a subreport is in a details section and the details section returns a 100 records, you are running 100 + 1 reports. This may lead to memory issues, which may lead to the error.
    If I was a betting man, I'd put most of my money on the printer driver (based on your last addition to your post). What ever money I had left would go to some database issue (be it actual data or client related).
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Oracle8i with Crystal Report 8 and ASP

    Hai there
    am new to Oracle8i.
    am using Crystal Report 8 and 8.5, Windows NT, IIS, Oracle8i.
    i created a simple query report in Crystal report 8 and coded a
    asp todisplay at client browser but i cant view the report.
    the CRviewer controle is displayed but no report
    error:
    Server has not yet been opened.
    please help me
    thanking you
    raj

    CR was released well before .NET framework 3.5. Mo test would have been done. Only option is to not install 3.5 or upgrade to CR 2008 which supports 3.5 framework. Also will require you to update your app to ASP.NET.

  • Crystal Report - Cube and OLAP concept

    Hi,
    could anyone please provide the good url for to learn Crystal Report - Cube and OLAP concept.

    Moved to OLAP forum

  • CR XI R2: Crystal Reports freezes and crashes when I try to open a report

    I added this question as a Reply to a message by nic2deep a month ago <Crystal Reports freezes every time I try to open a report.>, but got no response so I thought I'd try again on my own.
    I have 2 laptops with CR XI installed (same problem from original R2 through SP 5). The old laptop is an IBM Thinkpad R51. The new one is an HP Elitebook 6930p. Both have the exact same software and versions of Win XP and network security.
    If I try to open a report that has an "invalid printer" selected, it will open in the old IBM (with the message, 'This report uses an invalid printer. The default printer will be used instead'), but on the new HP, it freezes and I have to do a CtlAltDel to get out.
    I've tried everything Don Williams suggested to nic2deep:
    1) Open Contol Panel and add/remove programs and select CR. Do a repair install and if possible use the Custom Options and install all DB drivers and Export options, except Lotus Notes, unless you' re using them.
    Results: Tried many times with no effect.
    2) It may be that your firewall setting or anti-virus software is blocking access to system files or resources. When you do the repair install make sure to disable them and un-plug yourself from the network so you protect your PC while they are off line.
    Results: Firewall was always OFF because network security handles all that. Can't turn off anti-VIrus, but both computers have the same antivirus system anyway.
    3) Look in the System and Application Event logs in Admin tools; it may give you a clue what your PC is trying to get to and being denied.
    Results: The only thing that is logged in Admin Tools when this happens is a "Security/Privilege Request" with no errors.
    Clearly, when CR in the HP looks for the printer selected in the report and doesn't find it, that causes CR to freeze.
    Any idea what difference between the 2 machines could cause this? Something in the Registry?
    This is a royal pain, because I can only be on one computer at a time.
    Thanks in advance.

    Hi Debi,
    Because in CR XI R2 it is WYSIWYG meaning we use both the display and the printer drivers to render the report. Same as what PDF does. If we can't find the printer the report was designed against, and all the placements of each object is dependent on the printer when designed, we have to default to your default printer to be able to calculate internally when to render the report objects and format the layout thus the message from CR indicating so.
    Basically CR dynamically builds the page layout dependent on the local system. Also the reason why CR requires a default printer to be installed, if it's not then we use Microsoft's Generic Print driver. It's not that reliable either but we have to use something.
    And another "for your info" is the same for our database drivers. Example, if you create a report off of MS SQL Server and then you want to view the SQL CR generates you need to log on first. This way CR can query the DB client and generate the SQL according to the DB. If you just want to see the SQL you could just set location to Access, problem with this is because CR dynamically generates the SQL according to the DB you set lcoation to we may change the SQL Statement and not actually show you what the report uses when connecting to the real database.
    One of the side effects of supporting so many DB's and Printers and Video drivers. Sometimes drivers do non-standard functionality which CR did not anticipate or code on how to handle.....
    This all changed in CR 2008, we are not as dependent on the printer driver but this created a whole new set of problems if you hadn't noticed from all the Printer problems posted.... But we are going back to the CR XI R2 printer functionality model to resolve all of the issues....
    Thanks again
    Don

  • Two problmes between  Crystal Reports 2008 and Bex Query

    Hi Gurus.
    I have two problems with Crystal Reports 2008 when It obtains data from a Bex Query (SAP MDX query connection).
    1)     I have defined some Parameters Fields using the follow options:
    Type: String
    List of Values: Dynamic
    Value Options Level1:
                         Show on (Viewer) Panel :Editable
                          Prompt text: <text>
                          Sort Order: Ascending by value
                          Prompt With description Only : False
                          Optional Prompt: True
                          Allow multiple values: True
                          Allow discrete values: True
                          Allow range values: False
    When I execute the report with the client of Crystal Reports 2008 (the developer tool), in the initial screen shows a list box where I can select the values from the left box and add it to the left box (as a usually filter). When the number of options (LOV) is more than  the maximum of the system, I have a input box bellow the list box, where I can insert any value (manually) and a button to insert it into the left box. When I publish the Report in the infoview, this filter is modified and the input box where I can introduce manually values is not showed and I can insert only the values showed in the list box, it causes that I can`t select a lot of values that is in the master data of SAP BW, because they arenu2019t listed in the list box.
    There is any option to ability this option in the infoview.
    2)     My Bex query, have a date filter with variable in the restricted key figures, when I execute a Crystal Reports, the infoview (and the Crystal Reports 2008 designer) ask me 2 times the same date, first only the date and second the date and the rest of parameters (introduced in the report of Crystal Reports).
    Why I need insert the date 2 times? How can I modify the Crystal Report for ask me only one time all the parameters?.
    Thanks.

    Hi Abhilash.
    Thank you for your information.
    1) Yes, the parameters are created in the Crystal Reports designer. I have created the parameters in the Crystal Report because I use the same Bex Query to create some Crystal Report, in other case, I will need create some Bex Query.
    2)The Bex query has the date filters and I have created some filters in Crystal Reports designer, the date filter from the Bex query is created automatically in the Crystal Report Designer but I don't use it, I haven't created it anytime. I use my filters only in the record selection. The date filters from the Bex query is showed as Static, and I can`t delete it, if I modify the parameter to dynamic or static with values, at first step ask me again static without values and the second step of the report execution ask me the parameter as I have defined in Crystal Reports Designer, my parameters fields are dynamic. A lot of reports have subreport, but I have created one of them without subreport (to trial) and the Crystal Reports ask me the date filters at first execution, and when I insert the date filters, in the second step, ask me the date filters again and my parameters fields again.
    Thank you again.

  • Crystal Reports XI and Sun One 6.1 web server SP 5 Error finding JNDI name

    I am trying to create a Crystal Reports XI report in a JSP using Sun One 6.1 Web server sp 5.
    At this point I am getting the error �Error finding JNDI name� on Sun One
    The application will run on Netbeans/Tomcat
    I have done the following:
    I edited CRConfig.xml
    <?xml version="1.0" encoding="utf-8"?>
    <CrystalReportEngine-configuration>

    <DataDriverCommon>
         <JavaDir>C:\Program Files\Java\j2re1.4.2_10\bin</JavaDir>
    <Classpath>C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar;�</Classpath>

    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL>jdbc:oracle:thin:@10.10.10.10:1521:dev</JDBCURL>
         <JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
         <JDBCUserName>lab_ro</JDBCUserName>
         <JNDIURL></JNDIURL>

    </JDBC>
    I created a report using JDBC (JNDI) connection and have the JNDI Connection set to the name of DATA.
    The report works just fine in Crystal Reports.
    Then in Netbeans I created an application and it runs in the Tomcat part of Netbeans
    In context.xml I have:
    <Context path="/BOEnterpriseTest3">
    <Resource name="jdbc/dev" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev"
    username="theuserid" password="thepassword" maxActive="20" maxIdle="10" maxWait="-1"/>
    </Context>
    In web.xml I have
    <web-app>
    <context-param>
    <param-name>crystal_image_uri</param-name>
    <param-value>crystalreportviewers11</param-value>
    </context-param>

    <taglib>
    <taglib-uri>/crystal-tags-reportviewer.tld</taglib-uri>
    <taglib-location>/WEB-INF/crystal-tags-reportviewer.tld</taglib-location>
    </taglib>
    <resource-ref>
    <description>jdbc:oracle:thin:@10.10.10.10:1521:dev</description>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Application</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    <resource-ref>
    <description>jdbc:oracle:thin:@10.10.10.10:1521:dev</description>
    <res-ref-name>Data</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Application</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </web-app>
    in web-inf\sun-web.xml I have
    <sun-web-app>
    <resource-ref>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <jndi-name>Data</jndi-name>
    </resource-ref>
    </sun-web-app>
    I have copied all of Common Files\Business Objects\3.0\java\lib and Common Files\Business Objects\3.0\java\lib\external to the lib folder
    I have copied crystalreportviewers11 to the root of my web application
    I have tried to load the JNDI information and display the report
    <%@page pageEncoding="UTF-8"
    import="com.crystaldecisions.reports.reportengineinterface.*,
    com.crystaldecisions.report.web.viewer.*,
    javax.naming.*,
    javax.sql.*,
    java.sql.*"%>
    <%
    InitialContext initContext = new InitialContext();
    DataSource source = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    try{
         // Look up our data source
    DataSource ds = (DataSource)initCtx.lookup("Data");
    out.println("found ds under jdbc/Data");
    catch ( NamingException e ){
    // Look up our data source
    DataSource ds = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
    initCtx.bind("Data", ds);     
    out.println("found ds under java:com/env:jdbc/Data - bound into root initial context for Crystal to find");
    %>
    <%
    //Use the relative path to the report; the physical or full qualified URL cannot be used.
    String reportName = "useridincluded.rpt";
    //Database username and password
    String userName = "theuserid";
    String password = "thepassword";
    //check to see if the Report Source Session Variable already exist
    Object reportSource = session.getAttribute("Report1");
    // Create a new ConnectionInfos and ConnectionInfo object
    com.crystaldecisions.sdk.occa.report.data.ConnectionInfos connectionInfos = new com.crystaldecisions.sdk.occa.report.data.ConnectionInfos();
    com.crystaldecisions.sdk.occa.report.data.ConnectionInfo connectionInfo = new com.crystaldecisions.sdk.occa.report.data.ConnectionInfo();
    //Set username and password for the report's database
    connectionInfo.setUserName(userName);
    connectionInfo.setPassword(password);
    //Add object to collection
    connectionInfos.add(connectionInfo);
    //---------- Create a ReportClientDocument -------------
    com.crystaldecisions.reports.sdk.ReportClientDocument reportClientDocument = new com.crystaldecisions.reports.sdk.ReportClientDocument();
    //---------- Set the path to the location of the report soruce -------------
    //Open report.
    reportClientDocument.open(reportName, 0);
    //Get the report source
    reportSource = reportClientDocument.getReportSource();
    //---------- Create the viewer and render the report -------------
    //create the CrystalReportViewer object
    com.crystaldecisions.report.web.viewer.CrystalReportViewer crystalReportViewer = new com.crystaldecisions.report.web.viewer.CrystalReportViewer();
    //set the reportsource property of the viewer
    crystalReportViewer.setReportSource(reportSource);
    //set the DB logon into the viewer
    crystalReportViewer.setDatabaseLogonInfos(connectionInfos);
    //set viewer attributes
    crystalReportViewer.setOwnPage(true);
    crystalReportViewer.setOwnForm(true);
    crystalReportViewer.refresh();
    //set the CrystalReportViewer print mode
    //crystalReportViewer.setPrintMode(com.crystaldecisions.report.web.viewer.CrPrintMode.ACTIVEX);
    crystalReportViewer.setPrintMode(com.crystaldecisions.report.web.viewer.CrPrintMode.PDF);
    //process the report
    crystalReportViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    %>
    On the Sun One Web server
    On the Java Tab
    JDBC Connection Pools
    Pool Name = dev10g
    Class name = oracle.jdbc.pool.OracleDataSource
    User id = theuserid
    url = 10.10.10.10
    password=thepassword
    JDBC Resources
    JNDI Name=dev10g
    Pool = dev10g
    I get the error finding JNDI name � how do I tell Sun One where the JNDI is to make Crystal Reports work?

    I tried the following to test the JNDI
    I am trying to do JNDI in Sun One Web server 6.1 sp 5 but I seem to be missing an important part. I get two different errors based on the JSP code, �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance� or �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance�.
    Context.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/BOTest">
      <Resource name="jdbc/dev10g" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev10g"
    username="userid" password="password" maxActive="20" maxIdle="10" maxWait="-1"/>
      <Resource name="Data" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev10g"
    username="userid" password="password" maxActive="20" maxIdle="10" maxWait="-1"/>
    </Context>Sun-one.xml:
    <sun-web-app>
    <context-root>BOTest</context-root>
    <resource-ref>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <jndi-name>jdbc/dev10g</jndi-name>
    </resource-ref>
    </sun-web-app>web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
         <welcome-file>
                index.jsp
            </welcome-file>
        </welcome-file-list>
        <resource-ref>
            <description>jdbc:oracle:thin:@10.10.10.10:1521:dev10g</description>
            <res-ref-name>jdbc/dev10g</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Application</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
        <resource-ref>
            <description>jdbc:oracle:thin:@10.10.10.10:1521:dev10g</description>
            <res-ref-name>Data</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Application</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
    </web-app>server.xml has:
    <RESOURCES>
    - <JDBCCONNECTIONPOOL name="dev10g" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
      <PROPERTY name="URL" value="jdbc:oracle:thin:@10.45.3.197:1521:dev10g" />
      <PROPERTY name="User" value="lab_ro" />
      <PROPERTY name="Password" value="0asphalt1" />
      </JDBCCONNECTIONPOOL>
      <JDBCRESOURCE jndiname="jdbc/dev10g" poolname="dev10g" enabled="on" />
      <JDBCRESOURCE jndiname="Data" poolname="dev10g" enabled="on" />
    - <JDBCCONNECTIONPOOL name="Data" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
      <PROPERTY name="User" value="lab_ro" />
      <PROPERTY name="URL" value="jdbc:oracle:thin:@10.45.3.197:1521:dev10g" />
      <PROPERTY name="Password" value="0asphalt1" />
      </JDBCCONNECTIONPOOL>
      <JDBCRESOURCE jndiname="jdbc/Data" poolname="Data" enabled="on" />
      <JDBCRESOURCE jndiname="dev10g" poolname="dev10g" enabled="on" />
      </RESOURCES>I am getting the following error: �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance�
    With the following code:
    <%@page
       import="java.io.*,
               javax.sql.*,
               javax.naming.*,
               java.sql.*,
               java.util.*"%>
    <%
    Context init;
    Context ctx;
    DataSource datasource;
    Connection con;
    try
    init = new InitialContext();
    Context envCtx = (Context) init.lookup("java:comp/env");
    datasource = (DataSource)  envCtx.lookup("jdbc/dev10g");
    catch(NamingException ex)
        out.print("Cannot retrieve data source: " + ex.toString(true));
        return;
    try
        con = datasource.getConnection();
    catch (Exception e)
      out.print("Cannot retrieve connection: " + e.toString());
      return;
    try
        PreparedStatement pstmt = con.prepareStatement("SELECT PROJNO FROM MATERIALSLAB.VW_ASPHALTHEADERINFO");
        ResultSet results = pstmt.executeQuery();
        while (results.next())
        out.println(results.getString(1));
    catch(Exception ex)
    out.print("Got connection, can't execute query: " + ex.toString());
    return;
    %>I get the following error: Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance
    With the following code:
    <%@page
       import="java.io.*,
               javax.sql.*,
               javax.naming.*,
               java.sql.*,
               java.util.*"%>
    <%
    Context init;
    Context ctx;
    DataSource datasource;
    Connection con;
    try
        init = new InitialContext();
        ctx = (Context) init.lookup("java:comp/env");
        datasource = (DataSource) ctx.lookup("jdbc/dev10g");
    catch(NamingException ex)
        out.print("Cannot retrieve data source: " + ex.toString(true));
        return;
    try
        con = datasource.getConnection();
    catch (Exception e)
      out.print("Cannot retrieve connection: " + e.toString());
      return;
    try
        PreparedStatement pstmt = con.prepareStatement("SELECT PROJNO FROM MATERIALSLAB.VW_ASPHALTHEADERINFO");
        ResultSet results = pstmt.executeQuery();
        while (results.next())
        out.println(results.getString(1));
    catch(Exception ex)
    out.print("Got connection, can't execute query: " + ex.toString());
    return;
    %>

Maybe you are looking for

  • SAP Form layout output in MS word doc.

    Hi Everybody, I have a requirement from business where they would like to get the output of a docuemnt in MS word format so that they can add some text or input text in the output and then manually send to customer through mail. Now the question is b

  • Can't update Itouch 3rd gen to iSO 5?

    I know for sure its a Itouch 3rd Gen 32GB. I have the latest version of Itunes and every time I try to download the update it times out right after 99%. I have tried disabling all antivirus and firewalls but it still doesn't work. HELP?! I currently

  • ID/Password reset problems!

    I had another user ID ann_jo08 that I was using for 4 years, and last night I tried to sign in with my original password, but for some reason it didn't recognize it.  I believe I was hacked into, and when I went to click on 'forget password', I did a

  • 8800 Very Slow At Opening New Messages

    I have a 8800 running the 4.5.0.124 version of the software and it is very slow when opening messages. This only happens when opening unread messages and can take 1 minute+ to open. Once an email has been opened once it is instant. (Even messages tha

  • Picture is not clearing up???

    My iPhone 5 is not clearing up the pictures at my camera roll... I have restarted the phone 2 times:((( still not working. Help?