Report Viewer and September Dates

We're experiencing a very strange bug with the report viewer.  On date prompts, if the month of September is selected from the drop down calender, the inputted value is for October.  So even if I select September 1st from the calendar, it becomes October 1st.
Can anyone else duplicate this?

Hi Scott,
Can you please let me know what type of parameter you are using? static or dynamic?
If static you might be created the parameter like this
value= 1,2,3,4,5,6,......
Description=Jan,Feb,......
If so please check the value for SEP.
If I understood wrong please let explain in brief.
Regards,
Raghavendra

Similar Messages

  • Report Viewer and Multiple Data Sources

    I know that it is possible to create a report in Crystal Reports using multiple data sources.  But is it possible to use just the Free  Report Viewer to view a report with Multiple Data Sources?
    Our company uses Crystal Reports XI.  I do not use the program myself, I am in the IT Department.  I have limited knowledge of Crystal and do not do any of the report writing.
    If this is possible, and if someone could help me out with what would need to be done, or point me in the right direction of a Knowledge Base or Help Topic that explains this, that would be great.
    Thanks.

    I believe it can but both data sources need to be set up. Ask a report designer to help you use the Designer to test this and see what is required.

  • Crystal Report Viewer and Windows Vista

    Hi,
    We are using RDC methodology for launching the crystal reports in the web using ASP.
    The web server operating system is Windows 2003, Crystal Reports XI is installed in it.  Report is not launching in only one client machine.  For all the other client machines reports are launching perfectly.  The problem is blank white activex control is displayed.  I tried to register the crystal reports viewer (ActiveXViewer.cab available in the crystal installation folder) deliverables in the client machine but after installing the deliverables same problem persists.
    When I click on the Crystal Report viewer Internet Explorer Exception occurs
    The following add-on was running when this problem occurred:
    Add-on Name:      CRViewer.dll
    Company Name:      (Not verified)Business objects
    Description:                           Crystal Report Viewer
    Two buttons
    Advanced... and Continue are shown but when we click on the button IE crashes
    The client machine operating system is u201CWindows Vistau201D service pack 2
    Internet Explorer 7 version is installed in it.
    In the client machine event viewer log the following details are available.
    Log Name:      Application
    Source:        Application Error
    Date:          10/29/2010 9:18:35 AM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      BillVista.toyalloc.local
    Description:
    Faulting application iexplore.exe, version 7.0.6002.18005, time stamp 0x49e01e78, faulting module CRViewer.dll, version 11.0.0.893, time stamp 0x41b6ac85, exception code 0xc0000005, fault offset 0x0001f8e7, process id 0x210, application start time 0x01cb7773d2b1c584.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2010-10-29T14:18:35.000Z" />
        <EventRecordID>98684</EventRecordID>
        <Channel>Application</Channel>
        <Computer>BillVista.toyalloc.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>iexplore.exe</Data>
        <Data>7.0.6002.18005</Data>
        <Data>49e01e78</Data>
        <Data>CRViewer.dll</Data>
        <Data>11.0.0.893</Data>
        <Data>41b6ac85</Data>
        <Data>c0000005</Data>
        <Data>0001f8e7</Data>
        <Data>210</Data>
        <Data>01cb7773d2b1c584</Data>
      </EventData>
    </Event>
    Could any one help me regarding this.

    Hello,
    First thing to do is upgrade to [CR XI R2 SP4 full build|https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe]. Then get up to Service Pack 6 and you should not have problems with Vista.
    CR XI R1 will not and has never been tested on that OS.
    If you do not want to upgrade though use Process Monitor to watch for Access Denied errors. Also run IE in Compatibility mode.
    Likely what is happening is your test PC doesn't have rights to install ActiveX controls.
    Thank you
    Don

  • Report Viewer shows incorrect data when viewing pages from last to first

    Post Author: Fmorales
    CA Forum: .NET
    Hello.
    I've made a huge report with Crystal Reports for Visual Studio 2005, and sometimes the Report Viewer show data with errors.
    If I see all pages of my report in order, 1 first, then 2nd, 3, 4... until the last one.... The report is always correct.
    If I see all pages in reverse order, 1 first (shown by default), then last one, then last one-1.... until 2nd.. All years show incorrect, except first one... 
    In an outer section, for every year, there is a final row which shows summarize calculated data. The error consists in that every value of the row is 0.
    It seems that Crystal Report calculates while showing, that's good.. but... Why does it ignore the data before when I see directly the last page?? It forces me to see all pages one by one in ascendant order to ensure data is correct.. I must fix that error.
    The way I calculate data in the problematic summarize row is a bit complicated, but I'll try... Let's focus in one only column (the other ones are similar). The summarize value is a formula which simply show a global value :
    WhilePrintingRecords;
    CurrencyVar margenActual;
    which is being increasing or decreasing along the group:
    WhilePrintingRecords;
    CurrencyVar actual:=actual+CurrentFieldValue; 
    if {PresupPeriodifMesesAux_DS.TIPO} = 'PAGOS' then         CurrencyVar margenActual:=margenActual-CurrentFieldValueelse    CurrencyVar margenActual:=margenActual+CurrentFieldValue;
    DefaultAttribute
    It is placed in the backgrond property of a CrossTab cell in a hidden pre-section... Well.. I know it's a bit complicated, but I have to do that way because it was the only trick I found to make a summarize file before printing data summarized (that's why the line "CurrencyVar actual:=actual+CurrentFieldValue;" appeared in formula). So I also wanted to use this formula to acummulate "margenActual".
    In the inner section I reset the actual value (this value always go fine):
    WhilePrintingRecords;
    CurrencyVar actual:=0; 
    Before end of year I reset the margenActual value:
    WhilePrintingRecords;
    CurrencyVar margenActual:=0; 
    I've tried multiple combinations (using WhileReadingRecords instead WhilePrintingRecords) but data is incorrect or I cannot get rid of visualization page's problem....
    Any idea?
    Thanks a lot

    quote:
    Originally posted by:
    ntsiii
    If you were previously using <mxXML> you WERE using
    e4x.
    So remove that tag, create an instance variable of the same
    name, typed as xml, and in your result handler, do as VarioPegged
    suggests, though I would cast/convert to xml first:
    companies = XML(event.result);
    trace(companies.toXMLString()); to look at your xml
    var xlCompanies:XMLList = xmlCompanies..company; //all such
    expressions return XMLList, never XML
    trace(xmlCompanies.length()); //
    Tracy
    Ok so the ID of the mxXML was being interpreted as an E4X
    variable at compile time?
    I tried changing the name of the ID of the HTTPService call
    from "marketData" to "MDATA" and assigning the variable marketData
    to the result of the HTTPService query, which if I understand you
    correctly should basically make everything work as it was before,
    but it seems to be a problem.
    when I try to run it puts an exclamation point on this line
    <toolbox:TreeMap id="treeMap" width="1200" height="800"
    dataProvider="{marketData}"
    labelField="@cname" weightField="@amount"
    colorFunction="{itemToColor}"
    toolTipFunction="{itemToToolTip}"/>
    That code refers to a SWC file. Apparently it wants
    marketData to be a data provider. If I change the dataProvider
    reference above to "MDATA" (the ID of the HTTPService) the App
    compiles, but I get two errors at runtime:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    ReferenceError: Error #1081: Property @age1 not found on
    mx.rpc.http.mxml.HTTPService and there is no default value.
    What should I change this reference to? It won't compile if I
    use the variable I made for the e4x results and it is reading
    gibberish if I have it read directly from the
    HTTPService....?

  • Problem with Crystal Report Viewer and Dual Monitors

    Post Author: jtgoff
    CA Forum: .NET
    Hey Guys,
    I'm running into another problem with the Crystal Report Viewer. Here's a little info before I get started, I'm developing a Windows App using WinForms in VS2005 and Crystal 11 Release 2. I'm referencing all the latest Crystal dlls from Service Pack 2 of Crystal 11 Release 2. The problem occurs when I drag my Windows Form that contains a Crystal Report Viewer onto my second monitor and try to scroll or resize it, when I try this the Report Document within the Viewer becomes glitchy, blocky, and un-readable. I drag it back onto my main monitor and perform the same actions and the Report appears perfectly fine. I notice this occurs after a number of Report Previews through my App. Initially when I start my App, I can drag the reports onto my second monitor and resize it and scroll through it no problem. However, after a number of Previews, I notice the problem occurs on my second monitor. This is a very strange bug that doesn't produce an error and appears to happen randomly. I was wondering if anyone has come across this problem, if so... Is there a solution for this?
    Thanks in advance!

    You can update the parameters using Crystal Viewer 2008. I had the same problem with the "CHANGE" button being grayed out.
    Go to your Report -> Select Expert -> and now you have three choices: Record, Group, Saved Data. Put your select statement using your parameters in the Saved Data only (remove it from Record if already there).
    It works awesome and even works on dynamic parameters!

  • URGENT REPORT START AND END DATE

    GUYZ help me how to generate a report with start date and end date, two text item or calendar rpresent start and end date, it will generate only the start to end date... plzz put the code guyss..
    this is my code when i call my report in runtime only in client server .. i want to generate it wit start and end date but dunno newbie ..
    Declare
    v_Rep varchar2 (30);
    repid report_Object;
    begin
    repid:=find_report_object('dept');
    v_rep:=run_report_object(repid);
    end;

    Check this sample Code..
    DECLARE
    pl_id ParamList;
    pl_name VARCHAR2(10) := 'repdata';
    BEGIN
    pl_id := Get_Parameter_List(pl_name);
    IF Id_Null(pl_id) THEN
    pl_id := Create_Parameter_List(pl_name);
    Add_Parameter(pl_id, 'P_STARTDATE', TEXT_PARAMETER,:BLK_CTRL.P_TODATE);
    Add_Parameter(pl_id, 'P_ENDDATE', TEXT_PARAMETER, :BLK_CTRL.P_CURRENCY);
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    ELSE
    Destroy_Parameter_List( pl_id );
    END IF
    RUN_PRODUCT(REPORTS, 'D:\MMRROLDL.RDF' ,SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id ,NULL);
    END;

  • Crystal Report Viewer and border problems

    Post Author: catalinandrei00
    CA Forum: Deployment
    Hello there,    I've created an report and I've added borders for the fields in the report (Right click on the field > Format Object -> Border -> Choose for the 4 margins the line-style single). The report is correctly exported to different formats (.doc, .pdf, .xls). My problem is that when I display the report in an ASP.NET 2.0 page using an Crystal Report Viewer the report is correctly shown but the borders don't appear.My question is why the borders don't appear in the Crystal Report Viewer? Thanks for helping for solving this issue. It's very important.Catalin  

    Hello catalinandrei00
    I have the exact opposite problem as yours.
    I am using integrated crystal reports with Visual Studio 2005 and I have put a Crystal Viewer on a web page.
    First I also had the same problem like yours and then in one of the post i found a solution for this. Hope it will work for you too. here it is :-
    Just remove the following line from your aspx page.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    Now regarding my problem. My problems is that now i can view the borders and everything correctly in the viewer but when i try to print the report it automatically exports to Adobe first and BAM!!! the format disappears. Though if i export to word Doc format it export perfectly fine with all the borders and everything
    I hope some other reader will come to my rescue...pls HELP.

  • Report Viewer and Zoom dropdown

    I have a problem which I have searched for days for an answer to (to no avail).  When using the report viewer control on an aspx page when a user changes the zoom level  from the drop down the report resizes however the scroll position of the report
    seems wrong.  I cannot see the top portion of the report.  When using the dropdown from a report generated from the report manager it works fine.
    Any suggestions?
    The actual scenario is this. 
    There is a server side web page (aspx web form) which contains a report viewer.  I have an http handler which intercepts calls and does a processrequest using the server page.
    Derek

    Hi Spur,
    According to your description, you have issues when view the report via a web application. The header part will be out of screen when you zoom out. Right?
    In this scenario, when you zoom out in the web application, it will zoom out the whole report area. However, the ReportView Control form will not expand with the report zoomed out. And when zooming out the report, it will not keep the top left portion, that
    makes us can't see the header part. This can be a feature for ReportView Control in web application by design (it will not happen in other application like winform application).
    For your requirement, we recommend you submit a feature request at
    https://connect.microsoft.com/SQLServer 
    so that we can try to modify and expand the product features based on your needs.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Crystal Report Viewer and Windows 7 Enterprise

    Hi,
    We are using RDC methodology for launching the crystal reports in the web using ASP. 
    The web server operating server is Windows 2003, Crystal Reports XI Release 2 is installed in it. Activex Viewer is downloading fine in client machine having Windows XP OS (IE Version is 7) but for the same url ActiveXViewer.cab is not getting downloaded in Windows 7 Enterprise (IE Version is 8).  It throws the error u201CThe Crystal Report Viewer is unable to create its resource objects.u201D
    To download the cab file in Windows 7 machine it request for the following url
    1.     http://<web server name>/crystalreportviewers115/ActiveXControls/ActiveXViewer.cab
    2.     http://crl.verisign.com/pca3.crl
    3.     http://csc3-2004-crl.verisign.com/CSC3-2004.crl
    4.     http://www.download.windowsupdate.com/msdownload/update/v3/static/trustedr/en/authrootstl.cab
    URL 2,3,4 returns the http status as 502 (Bad gateway).  These url are not called from the Windows XP machine.
    The windows 7 client machine is not connected to the internet. I tried importing the crl files (by downloading from another machine).  But still we are getting the same error.
    How to over come this issue?
    Please Note :
    1. I am able to download the cab file when I tried to download only the cab file directly by specifying the cab url.
    2. If I am registering the ActiveXViewer.cab deliverables manually in the client machine report is launching fine, but we cannot do the same for the entire client machine having Windows 7 Enterprise Operating System.

    Hi Ludek Uher,
    Thank you very much for the information provided by you.  But still the same error (The Crystal Report Viewer is unable to create its resource objects) occurs after changing the IE8 Compatibility mode.
    Are there any other settings that can be tried for this issue?
    Thank You.

  • Crystal Report viewing and Printing Issue

    Hi Experts
                    I use crystal Reports for PO,AR Invoice,Delivery and many other documents.It takes more than 5 mins to view layout from crystal report and print sequence printing takes more than 10mins.Please Help me to rectify this issue..
    Regards
    Naresh Kumar

    Hi Naresh,
    What is your SAP version and Patch Level ?
    I believe in new version this issue has been addressed by SAP. Also note SAP B1 8.81 PL 07 has some issues in crystal Report, it asks for SQL user id and password, SAP is aware of this issue. So if you plan upgrade to latest PL then ensure that Crystal report issue is resolved, otherwise you will be in trouble.
    BR
    Samir Gandhi

  • Crystal Reports 2008 and Excel data source

    I want to use a large Excel-sheet (with 139569 lines) as a data source for a report. Crystal Reports 2008 only seems to accept Excel sheets as a data source if they are stored in Excel 97-2003 format. But, then there is a limit of 65536 lines and I miss more than half of the data I need to process. Does anyone have an idea how I can solve this problem??

    Hello,
    No work around in CR when connecting to xls files. CR can only use xls files which has the 65K row limit. Our next version does support xlxs files though. Cr for VS 2010 is available, no Designer outside of the IDE though. CR 2011 is still in beta and no release data announced yet.
    For now all you can do is limit your sheets to 65k or export your XLS files to Access, must also be an MDB file type, not the new extended type. Once in an Access database now you can use it as your data sources.
    You can use a temp database so it gets destroyed each time or simple delete all records. Up to you how to manage it.
    Thank you
    Don

  • Reports 6i and OLE data

    Hello Friends,
    I want to display OLE content from database using
    Reports,after report development I am facing following
    problem.does anybody know how to solve it.
    1. Some times OLE content appears in small font,it is very
    difficult to read.
    2. After navigating to pages, some fonts become larger or very
    small.
    3. After navigating to pages, message 'Report can not be
    formatted,Object 'vertically' can never fit within...
    this error continues even objects and corresponding frames
    elasticity changed to variable or Expand.
    can anyone have faced such problems ? Please send me solutions,
    It's very urgent.
    Thanx
    Adi

    Hello,
    After lot of R&D, I found solution to my problem,but though
    It is working now, I am not sure about it's full success,so I
    welcome any comment on it.
    I just changed number of vertical panels per page property of
    main section and it is working correctly,but drawback is suppose
    your report is of 2 panel,and you have specified panel to 10
    then it creates empty panels and prints it as a blank. How to
    avoid this ?
    Adi

  • Mismatch column name in report viewer and PDF export?

    I have text box in the header and populated dynamically.
    If my query result is more than 1 page, when i go to next page, the column value will change but when i export it to PDF or Word, only the column value of the first page will appear.
    Please see image below:
    http://s2.postimg.org/3q81agpyh/Cropper_Capture_26.jpg
    What's wrong here?

    Hi Arun,
    Here's the screenshot of the problem
    -> {http://}i.imgur.com/2hGf3xi{.jpg}
    Is the textbox is placed within report body or in the page header.
    -> It's in the body/tablix, please see image below
    ->{http://}i.imgur.com/hiO0R8C{.jpg}
    Can you provide the expression you have used in that text box
    -> =ReportItems!STORENOG1.Value
    -> I have a textbox STORENOG1 which is hidden (=Fields!STORENOG1.Value)
    This is how I declare in my Stored Proc
    -> STORENOG1 VARCHAR(10) DEFAULT NULL
    Please remove the curly braces in the links bec. I cannot paste link and upload images
    Regards,
    Tats

  • Crystal XI Report viewer and Parameters

    Post Author: mnichols1202
    CA Forum: General
    This one is killing me.
    I have a report connected to a SQL 2005 backend.  One subreport. one Parameter.
    I set up the report object (login to the db...set the parameter...etc.)
    If i do a crReportDocument.PrintToPrinter(1, False, 0, 0)  - report prints, works fine ....beautiful.
    Now, I do the exact same thing Same code same evrything except at the end i do this.
    Me.CrystalReportViewer1.ParameterFieldInfo = crReportDocument.ParameterFields
    Me.CrystalReportViewer1.ReportSource = crReportDocument
    The report ignores my parameter and displays the entire recordset!
    No prompts for a value - and if i break..  after
    Me.CrystalReportViewer1.ReportSource = crReportDocument i can see that the paramter has the correct value in it.
    Doesn't seem to mater if its set to a defaultvalue or currentvalue - tried em both - neither works.
    Someone please point me in the correct direction?
    Thanks, Mike
    Oh and it's VS 2005 - vb.net - !

    Hello Julian
    This thread being 4 years old, I'd recommend that you create a new thread. Specify the following:
    Exact version of CR (e.g. CR XI or CR 2008 is not good enough)
    Version of .NET used
    OS
    Is this issue on your development computer or after you deploy the app?
    Database and database connection method
    - Ludek
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Share Your Knowledge in SCN Topic Spaces

  • Crystal report Viewer Session times out for more data in Portal

    Hi All,         
         I am using below java SDK code to render a report in crystal report viewer. When i refresh report with more data(more parameter value) the server session times out in portal. Is there any way to fix this issue. The report loads data and then displays in Crystal report viewer, When more data is there the server times out as the server time is set to 60 sec. Is there any way to open the crystal report viewer as and when the report loads data to avoid server time out isse.
    Please help . Please let me know if I am missing something.. Thanks in Advance!!!
    CODE;
    <%@page language="java" contentType="text/html; charset=ISO-8859-1"
           pageEncoding="ISO-8859-1" session="false"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.OpenReportOptions"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ParameterFieldController"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKException"%>
    <%@page
           import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
           <%@page import="com.crystaldecisions.report.web.viewer.*"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%>
    <%@page import="java.io.Writer"%>
    <%@page import="java.io.IOException "%>
    <%@ page import="com.crystaldecisions.report.web.viewer.ReportExportControl" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat" %>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.DatabaseController"%>
                  <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ReportSaveAsOptions"%>
           <% response.setHeader("pragma","no-cache");//HTTP 1.1
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Cache-Control","no-store");
    response.addDateHeader("Expires", -1);
    response.setDateHeader("max-age", 0);
    //response.setIntHeader ("Expires", -1);
    //prevents caching at the proxy server
    response.addHeader("cache-Control", "private"); %>
    <%
           String reportPath,Sharedpath;
           ReportClientDocument reportClientDocument;
                ParameterFieldController parameterFieldController;
                try{
                    reportPath = "reportlocation";
                 Sharedpath = "Target Location";
                    reportClientDocument = new ReportClientDocument();
                    reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
                         reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly);
                         reportClientDocument.getDatabaseController().logon("Dbname", "dbpassword");              
                         System.out.println("Connecting...");
                       parameterFieldController = reportClientDocument.getDataDefController()
                   .getParameterFieldController();
                    parameterFieldController.setCurrentValues("", "param 1",
                         new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29});
    parameterFieldController.setCurrentValues("", "Param 2",
                  new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23});
    reportClientDocument.saveAs("Target Report Name","Target Location", ReportSaveAsOptions._overwriteExisting);
           reportClientDocument.close();
           System.out.println("Finished...");              
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setOwnPage(true);
    viewer.setPrintMode(CrPrintMode.ACTIVEX);
    viewer.setReportSource(Sharedpath);
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
                  System.out.println("Finished...");
           }  catch (ReportSDKException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
    %>

    Hi All,         
         I am using below java SDK code to render a report in crystal report viewer. When i refresh report with more data(more parameter value) the server session times out in portal. Is there any way to fix this issue. The report loads data and then displays in Crystal report viewer, When more data is there the server times out as the server time is set to 60 sec. Is there any way to open the crystal report viewer as and when the report loads data to avoid server time out isse.
    Please help . Please let me know if I am missing something.. Thanks in Advance!!!
    CODE;
    <%@page language="java" contentType="text/html; charset=ISO-8859-1"
           pageEncoding="ISO-8859-1" session="false"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.OpenReportOptions"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ParameterFieldController"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKException"%>
    <%@page
           import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
           <%@page import="com.crystaldecisions.report.web.viewer.*"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%>
    <%@page import="java.io.Writer"%>
    <%@page import="java.io.IOException "%>
    <%@ page import="com.crystaldecisions.report.web.viewer.ReportExportControl" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat" %>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.DatabaseController"%>
                  <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ReportSaveAsOptions"%>
           <% response.setHeader("pragma","no-cache");//HTTP 1.1
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Cache-Control","no-store");
    response.addDateHeader("Expires", -1);
    response.setDateHeader("max-age", 0);
    //response.setIntHeader ("Expires", -1);
    //prevents caching at the proxy server
    response.addHeader("cache-Control", "private"); %>
    <%
           String reportPath,Sharedpath;
           ReportClientDocument reportClientDocument;
                ParameterFieldController parameterFieldController;
                try{
                    reportPath = "reportlocation";
                 Sharedpath = "Target Location";
                    reportClientDocument = new ReportClientDocument();
                    reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
                         reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly);
                         reportClientDocument.getDatabaseController().logon("Dbname", "dbpassword");              
                         System.out.println("Connecting...");
                       parameterFieldController = reportClientDocument.getDataDefController()
                   .getParameterFieldController();
                    parameterFieldController.setCurrentValues("", "param 1",
                         new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29});
    parameterFieldController.setCurrentValues("", "Param 2",
                  new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23});
    reportClientDocument.saveAs("Target Report Name","Target Location", ReportSaveAsOptions._overwriteExisting);
           reportClientDocument.close();
           System.out.println("Finished...");              
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setOwnPage(true);
    viewer.setPrintMode(CrPrintMode.ACTIVEX);
    viewer.setReportSource(Sharedpath);
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
                  System.out.println("Finished...");
           }  catch (ReportSDKException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
    %>

Maybe you are looking for

  • Error while creating new Contractor Request in iProcurement

    Error_ iProcurement throws error when creating a new Contractor Request Its a showstopper and I am unable to proceed further. Steps to Reproduce Error_ 1. Go to iProcurement responsibility > iProcurement Home Page -> Contractor tab > Create Contracto

  • Facebook actionscript API not working with Flex 4.5 Mobile Project

    Will the following API work in a Flex 4.5 mobile project? http://code.google.com/p/facebook-actionscript-api/ I tried a simple Facebook.int() and I keep getting the following error... Error: Error #2067: The ExternalInterface is not available in this

  • How to remove an image that is stuck on my page?

    Hi there, An image instance used in an accordion widget is displaying outside of one of my pages in my site. Since my site is not yet coded to resize it is seen sitting just below the footer of my page. If I shrink the zoom in Chrome browser it is ac

  • 840 photos imported onto new hard drive have no originals

    I've been anxious to get my fresh start with iPhoto 6 on a new hard drive. I'm determined to have better photo organization from the start. I've been using this method (which I learned here on the discussion boards) on my laptop recently and it's wor

  • Survey progress bar

    HI, Sharepoint 2013 survey with paging (page break questions) . I need a progress bar, I can see posts about using the task %complete field to generate a client side progress bar but ther's no such field in a Survey List. Whats my options ? Thanks