How to rename a report instance?

Hi all,
I need to rename the report instance created on a Business Obejcts, the names would be dynamically given basicaly an identifier added to the .RPT file name so that non technical persons can recognize the instances.
Report file is created from Crystal report XI and server is BO XIR2.
are there any API calls for it? any SDK I could employ.
I am new to this, I am looking to find a solution for it myself as well, but would appreciate if any help comes my way...
Regards,
Dubes...

Hi all,
I need to rename the report instance created on a Business Obejcts, the names would be dynamically given basicaly an identifier added to the .RPT file name so that non technical persons can recognize the instances.
Report file is created from Crystal report XI and server is BO XIR2.
are there any API calls for it? any SDK I could employ.
I am new to this, I am looking to find a solution for it myself as well, but would appreciate if any help comes my way...
Regards,
Dubes...

Similar Messages

  • How to rename OBIEE reports programmatically?

    Hi,
    We have OBIEE webcat of several hundred reports. Recently we have to rename 150 reports according to latest requirement. Instead of doing this manually, is there a way to rename reports programmatically? Is there sample codes I can follow? I'm using OBIEE 10.1.3.4.
    Thanks for your help.
    Wei

    I am not aware of any existing api to do that except webservices api. This one is however flexible enough and well documented
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31769.pdf
    You can code your webservices calls in any language your choice (java,python,any other what you are skilled in) - here is a very basic example in plsql:
    declare
      l_envelope      varchar2(32767);
      l_http_request  utl_http.req;
      l_http_response utl_http.resp;
      l_url           varchar2(1000);
      x_envelope      xmltype;
      l_sessionid     varchar2(1000);
      l_src           varchar2(1000);
      l_tgt           varchar2(1000);
    begin
      -- Get session id
      l_url      := 'http://zajin:7003/analytics01/saw.dll?SoapImpl=nQSessionService';
      l_envelope := '
    <soapenv:Envelope
      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/1999/XMLSchema"
      xmlns:v5="com.siebel.analytics.web/soap/v5" >
       <soapenv:Header/>
       <soapenv:Body>
          <v5:logon>
             <v5:name>Administrator</v5:name>
             <v5:password>Administrator</v5:password>
          </v5:logon>
       </soapenv:Body>
    </soapenv:Envelope>
      l_http_request := utl_http.begin_request(l_url, 'POST', 'HTTP/1.0');
      utl_http.set_header(l_http_request, 'Content-Type', 'text/xml');
      utl_http.set_header(l_http_request, 'Content-Length', length(l_envelope));
      utl_http.write_text(l_http_request, l_envelope);
      l_http_response := utl_http.get_response(l_http_request);
      utl_http.read_text(l_http_response, l_envelope);
      utl_http.end_response(l_http_response);
      x_envelope := xmltype(l_envelope);
      select extractvalue(x_envelope,
                           '/soap:Envelope/soap:Body/sawsoap:logonResult/sawsoap:sessionID',
                           'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:sawsoap="com.siebel.analytics.web/soap/v5"')
        into l_sessionid
        from dual;
      -- Based on the obtained session handler
      -- rename requests i.e. move from l_src to l_tgt
      l_src := '/shared/Sample Sales/01 Ranking and Toppers/Multi-Dims Top Ns';
      l_tgt := '/shared/Sample Sales/01 Ranking and Toppers/Multi-Dims Best Ranked';
      l_url      := 'http://zajin:7003/analytics01/saw.dll?SoapImpl=webCatalogService';
      l_envelope := '
    <soapenv:Envelope
      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/1999/XMLSchema"
      xmlns:v5="com.siebel.analytics.web/soap/v5" >
       <soapenv:Header/>
       <soapenv:Body>
          <v5:moveItem>
             <v5:pathSrc>' || l_src || '</v5:pathSrc>
             <v5:pathDest>' || l_tgt || '</v5:pathDest>
             <v5:sessionID>' || l_sessionid || '</v5:sessionID>
          </v5:moveItem>
       </soapenv:Body>
    </soapenv:Envelope>
      l_http_request := utl_http.begin_request(l_url, 'POST', 'HTTP/1.0');
      utl_http.set_header(l_http_request, 'Content-Type', 'text/xml');
      utl_http.set_header(l_http_request, 'Content-Length', length(l_envelope));
      utl_http.write_text(l_http_request, l_envelope);
      l_http_response := utl_http.get_response(l_http_request);
      utl_http.read_text(l_http_response, l_envelope);
      utl_http.end_response(l_http_response);
    end;With similar calls you can rename any items in your catalog, but you should be aware, if original items are referenced somewhere, those references have to be modified accordingly ( so, a lot of xml parsing may be required), of course, before you try to do it programmatically, you should probably backup your catalog.
    Best regards
    Maxim
    http://comsysto.wordpress.com/

  • How to view the report instance without going thru the infoviwe in webi

    all,
    when you run a publication with a destination on infoview .. then as the end user who want to see the report i do have to go to the publication to see the report, is there a way to go directly to the report without passing thru the publication ?
    thanks
    Philippe

    You can use the SDK for viewing webi documents, but first you have to get the logon token (username, password, authentication).
    You can see it for example in the CMC -> view
    In order to get more information:
    https://www.sdn.sap.com/irj/boc/sdklibrary
    and there download the Viewers Java SDK, you will find there some examples.

  • Rename the report server

    hi,
    i have installed ias 10.1.2.02 on windows xp,
    how to rename the report server

    This should do it. Please make a copy of each file prior editing ...
    1) In order to change the name of the reportsserver in Application Server Control Page :
    Edit : $ORACLE_HOME/sysman/emd/targets.xml
    Search the Reports Server Section, change parameter : DISPLAY_NAME, Server, IASInternalName
    2) Edit : $ORACLE_HOME/reports/conf/rwservlet.properties
    Change : SERVER=yourreportservername
    3) Edit : $ORACLE_HOME/reports/config/reportsConfig.properties
    Change : Reportserver Name

  • How to pick up the latest report instance of a schedueld report

    Hi,
    I am supporting a custom application (.NET), which has to pick up the latest report instance by accepting the Report ID.
    At times, the application does seems to be pick up the wrong (older) instance. This is not happening all the times but certain reports behaves this way once a while.
    This is how the application seems to be determining the latest instance.
    SELECT * FROM CI_INFOOBJECTS
    WHERE SI_PROGID = 'CrystalEnterprise.Report'
    AND SI_INSTANCE_OBJECT = 1
    AND SI_SCHEDULE_STATUS = 1
    AND SI_PARENTID= '" + id + "'
    ORDER BY SI_ID DESC
    Once the above statement returns all the available instances it just pick up the very first instance and returns it back to the application and it gets displayed through the Report Viewer.
    My question here is that, does this order (ORDER BY SI_ID DESC) will always return me the latest instance first? When I manually verify the instance ID, it seems to be getting incremented eventhough it is a random number.
    When I review the InfoView code, which also seems to be doing the same thing I have found that it is using SI_UPDATE_TS instead of SI_ID.
    Could someone please tell me which is the correct one to use? I tried by could not able to find references anywhere.
    Environment: BO XI R2 - SP2

    Jason,
    Thanks for the info. The query builder o/p and the application o/p are the same. When this situation happened last time I just simply deleted those older instances from the history and left only the current one.
    This has forced the query to return the only available instance, which is the current one.
    My suspect here is that, the SI_ID of a new instance is smaller than the older instance...
    for example,
    Instance 1 - 10023
    Instance 2 - 12344
    Instance 3 - 9892
    Is this possible?? Since I have deleted the older instances I have no way to confirm this case unless it happens again.
    The BO documentation about SI_ID reads like this...
    "This property is used to uniquely identify an object. The number is assigned at creation time, and is never changed until the object is destroyed. You should never hard-code this number, however, since if the object is destroyed the number may be assigned to another object. No two objects have the same ID, even if they are different types of objects; that is, you will never find a report that has the same ID as a folder."
    As it claims that an ID can be re-used if the object is destoryed I assume that though the new ID will be unique there is no guarantee that it will be bigger than the previous instance of the same object.
    But the problem is that I dont have a documentation proof to claim this hence asking help from the guru's here...
    Regards,
    Elan.

  • How to cancel or update a scheduled report instance?

    Is it possible to update or cancel a scheduled report instance?  How is this done in the java API, is there an example?
    If a report is scheduled by mistake as a recurring report there has to be some way to stop it, correct? 
    We are using Crystal Reports 2008.
    Thanks,
    --Jeff Hall.

    Thanks very much for your reply Adam!!
    Is there a way to pause the instance?  Is there example code to implement some of the functions in the Instance Manager portion of the CMS Console?
    Thanks,
    --Jeff.

  • How to rename Report Server

    I would like to rename my report server that I see listed in OEM. I was reading the documentation on forms/reports integration and it states that there cannot be an underscore in the report server name. My report server does have an underscore. I would like to take this out, any ideas on how I can do this?
    btw, I am running 9ias v9.0.2 on win2000
    thanks,
    jim

    Here are the instructions from my documentation. It contains info specific to my site, but you can just make the changes for yours:
    Deborah
    Adding the New Reports Server to Enterprise Manager
    During 9iAS installation, reports servers are automatically registered with OEM. If you add a reports server (ocareports, for example) after installation, AND you want OEM to manage it, you must manually register the server with OEM.
    •     Edit the targets.xml file located in the Oracle-Home/sysman/emd directory. (Before making changes, please make a backup of the file).
    •     Using the following syntax, enter the information about the new reports server. The ocareports server information is used as an example:
    <Target TYPE="oracle_repserv" NAME="ocareports.vdacs.state.va.us" DISPLAY_NAME="Reports:ocareports.vdacs.state.va.us" VERSION="1.0" ON_HOST="strawberries.vdacs.state.va.us">
              <Property NAME="OracleHome" VALUE="/orabif/oracle/product/9ias"/>
              <Property NAME="UserName" VALUE="orcladmin"/>
              <Property NAME="Servlet" VALUE="http://strawberries.vdacs.state.va.us:7778/reports/rwservlet"/>
              <Property NAME="Server" VALUE="ocareports"/>
    <Property NAME="Password" VALUE="acd4d1ea44605372" ENCRYPTED="TRUE"/>
              <Property NAME="host" VALUE="strawberries.vdacs.state.va.us"/>
              <CompositeMembership>
                   <MemberOf TYPE="oracle_ias" NAME="9ias2.strawberries.vdacs.state.va.us" ASSOCIATION="null"/>
              </CompositeMembership>
         </Target>
    •     The user name and password are for the reports services administrator account (ias_admin). Initially the password entry should be entered as xxxxxx and encrypted should be set to false. OEM will encrypt the password and reset encrypted to true.

  • How to disable or rename Oracle Report Server servlet command?

    Hi,
    I'm using Oracle9i App Server R2.
    I would like to learn how to disable or rename Oracle Report Server's servlet command?
    This is to avoid user from accessing http://myserver/reports/rwservlet/showmap to view the key map file content.
    Please advise.

    or example, my report server was rep_appserver, then i want to rename it to rep_test.
    Here some step to accomplish it,
    1. stop mid-tier
    $ORACLE_HOME\opmn\bin\opmnctl stopall
    2. stop em website
    $ORACLE_HOME\bin\emctl stop iasconsole
    3. rename $ORACLE_HOME\reports\conf\rep_<old_report_server_name>.conf to something else or delete it
    4. rename $ORACLE_HOME\reports\server\rep_<old_report_server_name>.dat to something else or delete it
    5. edit $ORACLE_HOME\reports\conf\rwservlet.properties file then change the SERVER parameter to new report server name(remember this new name has to be a unique name)
    6. create a backup copy of the $ORACLE_HOME\sysman\emd\targets.xml file
    7. open $ORACLE_HOME\sysman\emd\targets.xml, find old report server name and then replace it to new report server name
    8. save new targets.xml file
    9. open $ORACLE_HOME\opmn\conf\opmn.xml, old report server name and then replace it to new report server name
    10. start em website
    $ORACLE_HOME\bin\emctl start iasconsole
    11. start mid-tier
    $ORACLE_HOME\opmn\bin\opmnctl startall
    HTH
    Amkotz

  • How to rename sections in CR XI R2 Report Designer?

    Hello!
    I have developed a number of reports with the Report Designer Component in Visual Basic.  In the RDC, you can rename the report sections using the VB properites for that section.  I am saving these reports as .rpt files so that I can display them with with a Java client using JRC.  When I edit the .rpt files in CR XI R2 Report Designer, I cannot see the section names that I gave to the sections in the RDC, and I cannot find a way to edit the section names.  However, I can still access the sections in the rpt files with JRC by the names I gave them in the RDC, so the section names must be in there some where.  Where does on edit/view the section names in the CR XI R2 report designer? 
    I have probably missed something obvious, so thanks for any help!
    Edited by: Joseph Huber on Mar 17, 2010 9:20 PM

    Hello,
    "From the RDC, one can export the report to an RPT file. When you perfrom that operation RDC is out of the picutre"
    Not correct. It is the RDC processing the report and doing the exporting.
    RDC (craxdrt.dll) is COM, Java is our JAR files and the Report Designer uses crpe32 based API's and functionality plus some more embedded routines which are a combination of our API's. And I believe you may be using the Embedded Designer Control (craxddrt.dll - yes one more d ) which is another deprecated report engine and is only used in the .NET IDE for creating reports and no allowed to distribute as of CR 2008.
    The Report Designer ( crw32.exe ) only has the option to use long names or short names and will display those only and not your custom names. The Java Engine ( JRC ) is relatively new and is based on existing code but completely different so no new functionality and I doubt naming of sections is included.
    The Embedded Designer Control was used for third party developers to impliment into their own applications but as noted above, it's no longer supported as of CR 2008. Life cycle is about to end also for R2.
    The replacement for the RDC is Report Application Server ( RAS ) and can be used in both a managed .NET as well as a Java application.
    Yes it is totally confusing so Use what ever works... But this would be a minor issue which if you really want it in RAS or the JRC I can put in an Enhancement request for you?
    Thank you
    Don

  • How to create a report in Form line Style and can display Image field?

    Hi,
    In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
    I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
    But in Paper Layout, my report can not display Image field.
    I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
    How to create a report in Form line Style and can display Image field?
    I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
    Thanks & regards,
    BACH
    Message was edited by:
    bachnp

    Here you go..Just follow these steps blindly and you are done.
    1) Create a year prompt with presentation variable as pv_year
    2) Create a report say Mid report with year column selected 3 times
    - Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
    - Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
    - Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
    Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
    3) Create your main report with criteria as Year and Measure col
    - Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
    - Now put a filter on year column with Filter based on results of another request and select these:
    Relationship = greater than or equal to any
    Saved Request = Browse Mid Report
    Use values in Column = YEAR-1
    - Again,put a filter on year column with Filter based on results of another request and select these:
    Relationship = less than or equal to any
    Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
    Use values in Column = YEAR+1
    This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
    This will 100% work...
    http://i56.tinypic.com/wqosgw.jpg
    Cheers

  • How to run GR55 reports in background for cost center hierarchies

    1.  I have been asked by our users to create batch jobs to run in the background for some GR55 reports, that can then be sent directly to cost center managers via email.
    I have figured out the process to do this as long as the cost center manager only needs to see a single cost center at a time.  However, if they are in charge of multiple cost centers, we also want to send them a summarized report using the hierarchy we have set up.  I can't seem to make this work, as the job only seem to recognize the last cost center in the group and the report is for that cost center.
    Example.  cost centers 100, 200 and 300 belong to hierarchy abc.  If I run the job just for cost center 100 it is fine.  But if I have a variant to run hierarchy abc, or even if I use the range 100 to 300, all I get is a report for cost center 300.
    We cannot use BW because we only have revenue in BW.  I am being asked to make this work from standard R/3 within the GR55 realm of reporting.
    2.  In addition, the report selection criteria includes two separate plan/forecast versions.  They need to update these each month prior to running the reports and sending them out.  I looked at the variables associated with the versions and tried to set them up with default values that I hoped would update automatically so that they don't have to manually change 50 or so variants each month.  But I don't see any dynamic variables that I can use to have the system make that change without going into each variant individually.
    3.  There is another piece to this equation as well.  There is another report they want sent out in batch, but it is several pages wide in SAP and several pages long.  So when you run it in batch and either spool it or get it sent as an email, it is very ugly in the formatting due to all the page splits horizontally and vertically.  If anyone knows how to get the report to stay together like it would if you had excel integration turned on, it would be very helpful.  I have tried running it with that integration turned on, but the jobs are set up with user batch_mgr and not my id, so it isn't working well.  The batch_mgr id is just a system id, not a dialog id.  We also don't want the jobs set up with a regular user id because if people leave, then the jobs all need to be changed.

    Kim,
    I may have options for issues 1 and 2. In case of 3, what I can tell you is I understand the concern, but this is what  typically happens in some standard CO reports that are not ALV compatible, I don't think there is not much  there to do unless you add some custom code for the output.
    In regards to point 1, yes,  I have noticed that this happens in some standard and custom reporting, not sure what is going on. I came up with a work around that  made the trick for my client in a similar scenario; which is editing the cost center groups. For instance, instead  of having the group set as a range from 100 to 300,  the groups are have  listed the cost centers, 100, 200 and 300. Obviously, the disadvantage of  this option is  that it would require a bit of more cost center group maintenance.
    In regards to point 2,  I understand from your note  that your users already have set up selection variants for the report. One option for you is to get the help from a developer to create a custom period variable and tiny program that runs in batch every month that would update that variable accordingly. Once that's done, you may have to update at least once, the selection variant  attributes to change the period to a selection variable, so everytime from that point of time forward that the variable gets updated,  it will be ready with the right value for every selection variant that uses it.
    Hope this helps.
    GG

  • How to print the report directly without previewing (report viewer) using c# windows application

    Hi,
    Currently, we are using crystal report to all of our reporting applications, but since I/users have encountered some issues about CR's speed to load only a simple report, maybe it is now time for us to adopt a new reporting environment in which I think SSRS
    can fill this problem.
    To start with, I have here a sample code, that uses the crystal report to print the report directly without previewing:
    csCashInvoiceCal csCashCal; --Crystal report name .rpt
    dsCsReceipt dsCs; --created dataset
    DataTable u;
    DataRow s;
    private System.Drawing.Printing.PrintDocument printDocument1;
    private System.Windows.Forms.PrintDialog printDialog1;
    ParameterValues paramValue;
    ParameterDiscreteValue discreteValue;
    ParameterFieldDefinition fieldDefinition;
    private void btnPrint_Click(object sender, EventArgs e)
    this.Cursor = Cursors.WaitCursor;
    loadReceipt2();
    print2();
    csCashCal.Close();
    this.Cursor = Cursors.Default;
    private void loadReceipt2()
    dsCs = new dsCsReceipt(); --created dataset
    u = dsCs.Tables.Add("DtCsReceipt");
    u.Columns.Add("Qty", Type.GetType("System.String"));
    u.Columns.Add("UOM", Type.GetType("System.String"));
    u.Columns.Add("Description", Type.GetType("System.String"));
    u.Columns.Add("UnitPrice", Type.GetType("System.String"));
    u.Columns.Add("Discount", Type.GetType("System.String"));
    u.Columns.Add("Amount", Type.GetType("System.String"));
    try
    for (int i = 0; i < dgvDesc.Rows.Count - 1; i++)
    s = u.NewRow(); double.TryParse(dgvDesc.Rows[i].Cells[Discount2.Name].Value.ToString(), out discount);
    s["Qty"] = double.Parse(dgvDesc.Rows[i].Cells[Qty.Name].Value.ToString());
    s["UOM"] = dgvDesc.Rows[i].Cells[Uom2.Name].Value.ToString();
    s["Description"] = invcode + dgvDesc.Rows[i].Cells[Description.Name].Value.ToString();
    s["UnitPrice"] = dgvDesc.Rows[i].Cells[UnitPrice.Name].Value.ToString();
    if (discount != 0)
    s["Discount"] = "(" + string.Format("{0:0.##}", discount) + "%)";
    else
    s["Discount"] = "";
    s["Amount"] = dgvDesc.Rows[i].Cells[Amount2.Name].Value.ToString();
    u.Rows.Add(s);
    catch (Exception) { }
    csCashCal = new csCashInvoiceCal();
    csCashCal.SetDataSource(dsCs.Tables[1]);
    //csCashCal.Refresh();
    loadParameter2();
    private void loadParameter2()
    ParameterFieldDefinitions paramFieldDefinitions;
    paramValue = new ParameterValues();
    discreteValue = new ParameterDiscreteValue();
    paramFieldDefinitions = csCashCal.DataDefinition.ParameterFields;
    discreteValue.Value = date;
    fieldDefinition = paramFieldDefinitions["Date"];
    commonParam();
    discreteValue.Value = txtcsno.Text;
    fieldDefinition = paramFieldDefinitions["InvoiceNo"];
    commonParam();
    discreteValue.Value = txtNameTo.Text;
    fieldDefinition = paramFieldDefinitions["CustomerName"];
    commonParam();
    discreteValue.Value = txtAdd.Text;
    fieldDefinition = paramFieldDefinitions["CustomerAddress"];
    commonParam();
    ------other parameters----
    private void commonParam()
    paramValue.Clear();
    paramValue.Add(discreteValue);
    fieldDefinition.ApplyCurrentValues(paramValue);
    private void print2()
    using (printDocument1 = new System.Drawing.Printing.PrintDocument())
    using (this.printDialog1 = new PrintDialog())
    //this.printDialog1.UseEXDialog = true;
    this.printDialog1.Document = this.printDocument1;
    DialogResult dr = this.printDialog1.ShowDialog();
    if (dr == DialogResult.OK)
    int nCopy = this.printDocument1.PrinterSettings.Copies;
    int sPage = this.printDocument1.PrinterSettings.FromPage;
    int ePage = this.printDocument1.PrinterSettings.ToPage;
    string PrinterName = this.printDocument1.PrinterSettings.PrinterName;
    try
    csCashCal.PrintOptions.PrinterName = PrinterName;
    csCashCal.PrintToPrinter(nCopy, false, sPage, ePage);
    printcount++;
    //saveCountPrint();
    catch (Exception err)
    MessageBox.Show(err.ToString());
    This is only a simple sales receipt application that uses dgv and textboxes to push its data to dataset to the crystal report, a simple one but there are instances that it is very slow.
    But I'm having trouble implementing this using SSRS, since I'm only new to this one, wherein I created the report using report wizard, with two button options inside the form for print preview or direct print selection. Actually, it is very easy to implement
    with print preview because it uses reportviewer. My problem is that how can I print the report directly without using a reportviewer?
    So here is my code so far which I don't know what's next:
    private void button2_Click(object sender, EventArgs e)
    this.Cursor = Cursors.WaitCursor;
    loadReceipt3();
    //print3();
    this.Cursor = Cursors.Default;
    ReportParameter[] parameter = new ReportParameter[11];
    private void loadParameter3()
    parameter[0] = new ReportParameter("InvoiceNo", txtcsno.Text);
    parameter[1] = new ReportParameter("Date", date);
    parameter[2] = new ReportParameter("CustomerTin", txtTin.Text);
    parameter[3] = new ReportParameter("CustomerName", txtNameTo.Text);
    parameter[4] = new ReportParameter("CustomerAddress", txtAdd.Text);
    parameter[5] = new ReportParameter("Agent", agent);
    parameter[6] = new ReportParameter("Discount", "Discount: ");
    parameter[7] = new ReportParameter("TotalDiscount", lblDiscount.Text + "%");
    parameter[8] = new ReportParameter("TotalSales", rdtotal);
    parameter[9] = new ReportParameter("Tax", rdtax);
    parameter[10] = new ReportParameter("TotalAmount", rdnet);
    private void loadReceipt3()
    DataSet dsrs = new DataSet();
    DataTable dtrs = new DataTable();
    DataRow drs;
    dtrs.Columns.Add("Qty", Type.GetType("System.String"));
    dtrs.Columns.Add("UOM", Type.GetType("System.String"));
    dtrs.Columns.Add("Description", Type.GetType("System.String"));
    dtrs.Columns.Add("UnitPrice", Type.GetType("System.String"));
    dtrs.Columns.Add("Discount", Type.GetType("System.String"));
    dtrs.Columns.Add("Amount", Type.GetType("System.String"));
    try
    for (int i = 0; i < dgvDesc.Rows.Count - 1; i++)
    drs = dtrs.NewRow();
    drs["Qty"] = double.Parse(dgvDesc.Rows[i].Cells[Qty.Name].Value.ToString());
    drs["UOM"] = dgvDesc.Rows[i].Cells[Uom2.Name].Value.ToString();
    drs["Description"] = invcode + dgvDesc.Rows[i].Cells[Description.Name].Value.ToString();
    drs["UnitPrice"] = dgvDesc.Rows[i].Cells[UnitPrice.Name].Value.ToString();
    if (discount != 0)
    drs["Discount"] = "(" + string.Format("{0:0.##}", discount) + "%)";
    else
    drs["Discount"] = "";
    drs["Amount"] = dgvDesc.Rows[i].Cells[Amount2.Name].Value.ToString();
    dtrs.Rows.Add(s);
    catch (Exception) { }
    int addtlRow = 7;
    if (addtlRow > (count - 1))
    addtlRow = addtlRow - (count - 1);
    for (int i = 0; i < addtlRow; i++)
    dtrs.Rows.Add();
    loadParameter3();
    LocalReport localreport = new LocalReport();
    localreport.SetParameters(parameter);
    localreport.DataSources.Clear();
    localreport.DataSources.Add(new ReportDataSource("dsSalesReceiptSsrs", dtrs));
    localreport.Refresh();
    //what's next....
    So what's next after local..refresh()? Actually, I have googled a lot but I didn't found the exact solution that I'm looking for which confuses me a lot.
    Anyway I'm using VS 2010 with sql server 2012 express.
    You're help will be greatly appreciated.
    Thank you,
    Hardz

    After some further studies with ReportViewer controls and with the use of this tutorial @ : http://msdn.microsoft.com/en-us/library/ms252091.aspx, which helps me a lot on how to print a report without using a report viewer, I found out what is missing
    with my code above and helps solve my question.
    Here's the continuation of the code above:
    private void loadReceipt3()
    loadParameter3();
    LocalReport localreport = new LocalReport();
    localreport.ReportPath = @"..\..\SsrsCashReceipt.rdlc";
    localreport.SetParameters(parameter);
    localreport.DataSources.Clear();
    localreport.DataSources.Add(new ReportDataSource("dsSalesReceiptSsrs", dtrs));
    Export(localreport);
    print4();
    private IList<Stream> m_streams;
    private int m_currentPageIndex;
    private void Export(LocalReport report)
    string deviceInfo =
    @"<DeviceInfo>
    <OutputFormat>EMF</OutputFormat>
    <PageWidth>8.5in</PageWidth>
    <PageHeight>11in</PageHeight>
    <MarginTop>0.25in</MarginTop>
    <MarginLeft>0.25in</MarginLeft>
    <MarginRight>0.25in</MarginRight>
    <MarginBottom>0.25in</MarginBottom>
    </DeviceInfo>";
    Warning[] warnings;
    m_streams = new List<Stream>();
    report.Render("Image", deviceInfo, CreateStream,
    out warnings);
    foreach (Stream stream in m_streams)
    stream.Position = 0;
    private void print4()
    if (m_streams == null || m_streams.Count == 0)
    throw new Exception("Error: no stream to print.");
    PrintDocument printDoc = new PrintDocument();
    PrintDialog printDlg = new PrintDialog();
    printDlg.Document = printDoc;
    DialogResult dr = printDlg.ShowDialog();
    if (dr == DialogResult.OK)
    if (!printDoc.PrinterSettings.IsValid)
    throw new Exception("Error: cannot find the default printer.");
    else
    printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
    m_currentPageIndex = 0;
    printDoc.Print();
    Dispose();
    public void Dispose()
    if (m_streams != null)
    foreach (Stream stream in m_streams)
    stream.Close();
    m_streams = null;
    private Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
    Stream stream = new FileStream(name + "." + fileNameExtension,
    FileMode.Create);
    m_streams.Add(stream);
    return stream;
    private void PrintPage(object sender, PrintPageEventArgs ev)
    Metafile pageImage = new
    Metafile(m_streams[m_currentPageIndex]);
    // Adjust rectangular area with printer margins.
    Rectangle adjustedRect = new Rectangle(
    ev.PageBounds.Left - (int)ev.PageSettings.HardMarginX,
    ev.PageBounds.Top - (int)ev.PageSettings.HardMarginY,
    ev.PageBounds.Width,
    ev.PageBounds.Height);
    // Draw a white background for the report
    ev.Graphics.FillRectangle(Brushes.White, adjustedRect);
    // Draw the report content
    ev.Graphics.DrawImage(pageImage, adjustedRect);
    // Prepare for the next page. Make sure we haven't hit the end.
    m_currentPageIndex++;
    ev.HasMorePages = (m_currentPageIndex < m_streams.Count);
    Thank you very much for this wonderful tutorial. :)

  • How to print history report without refreshing?

    Hi,
    Does someone tell me how to print history report (deski, webi, and crystal) without refreshing via Java API?
    I could not find in Java doc and Developer Library.
    thanks,
    Tak

    Hi,
    It looks like that you wan to print Report's Instance and refering it as history report. If you want to print Instance of report (CR, Webi or DeskI), frist get the SI_ID, so that we can access that instance and then we have to use appropriate controller to print the report (instance)
    for CR, use BOE/RAS SDK
    for Webi and DeskI, use REBean SDK
    Regards,
    Arjun

  • How to create a report in EM from scratch level ?

    Hi,
    Can anybody help me on this ?
    The report I want to create in EM is about where the user selects a target from a drop down and it shows the CPU utilization or memory Utilization for that respective target. Is it possible to create such kind of ? If Yes, How to create the report ?
    Thanks in advance.

    Are you sure you want to create a report for this info?
    As CPU and MEM utilization changes every second, what would be the use of a report?
    I assume you are aware of the fact that CPU and MEM utilization is included for instance in the Host Homepage and can also be included in Group Pages and Dashboards.
    Regards
    Rob
    For more information on OEM GC, like Tips and Tricks please see: http://oemgc.wordpress.com

  • How to develop a report with current price &  the last price in the pre.yrs

    hi ,
    guys,
    my client want a report to list of material with respective vendor and to make a price comparison betn the current price & the last price in the privious year.
    can any one help how to develop the report, shall go for generic extrc.
    thanks in advace.
    ramnath

    CR CR 2011 / "Crystal reports For Visual Studio 2010", you are correct.
    Re. the database thinggy. You can connect to a database via ODBC, OLE DB or in some instances natively. Once a report is created you an change the datasource. A good sample app on how to do this is  csharp_win_dbengine / vb_win_dbengine. A link to the samples is here:
    Crystal Reports for .NET SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    More info on connecting to dbs and changing them is in the developer help files:
    SAP Crystal Reports .NET SDK Developer Guide
    SAP Crystal Reports .NET API Guide
    More info on CR APIs for .NET (applies to all versions of CR and VS):
    Crystal Reports for Visual Studio 2005 Walkthro... | SCN
    You can also use ADO .NET Datasets and in this way you handle the database connections in your app. A good sample is csharp_win_adodotnet (also available in VB) - same link as above.
    More info on datasets:
    Crystal Reports Guide To ADO.NET
    Crystal Reports for Visual Studio .NET - Walkthrough - Reporting Off ADO.NET Datasets
    For more complicated operations (e.g.; changing a report from ODBC to OLE DB, changing one table, etc., you will want to use the InProc RAS SDK that is also available in CRVS. Developer help files are here:
    Report Application Server .NET SDK Developer Guide
    Report Application Server .NET API Guide
    Sample apps are here:
    NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    and here:
    Crystal Reports .NET In Process RAS (Unmanaged) SDK Sample Applications
    More info on RAS SDK:
    How to Use The RAS SDK .NET With In-Process RAS Server
    Lastly, do use the search box in the top right corner. I find simple search strings such as 'crystal net parameter' return best results (KBAs, Blogs, docs, wikis, discussions and more).
    - Ludek

Maybe you are looking for

  • 'The itunes application could not be opened. an unknown error has occurred'

    Could someone please help me, i recently had to restore my comouter to a previous date and due to this i had to reinstall a few programs along the way. Now unfortunatley itunes is not being co-operative, ive uninstalled it and then reinstalled with n

  • How to recompile ARXRAATR.pll

    Hi Forum - I am trying to upgrade 12.1.1 to 12.1.2 and in that process getting following error: The following Oracle Forms objects did not generate au resource ARXRAATR.pll I understand that I can use adadmin to recompile it but my question is when a

  • Printing Non-Work Intervals (Necking)

    Hello, I have enabled the Activity non-work intervals in the Bar Necking Settings within Bar Settings. Although the 'necks' appear on screen, they do not appear in a PDF printout or a regular print. Is there a setting or workaround for this issue? Pl

  • CS4 ExtendScriptToolkit Not showing InDesign CS4 in drop down

    Hi, In Adobe CS4 ExtendScript Toolkit application, I am not getting the "InDesign CS4" in the dropdown. What would be the cause for this? I have tried with reinstallling the InDesign CS4. Please let me know If I am missing out something. Thanks

  • WinFile.cpp-814

    hello i have problem with WinFile.cpp-814. what is this?