Spreadsheet output from reports posting to multiple cells instead of one

Hi all, using Report Builder 10.1.2.2.0
ORACLE Server Release 10.1.0.5.0.
I have a report that creates its output as an excel file using desformat=spreadsheet. The problem I am having is with fields that contain a large amount of text with formatting characters in them. In particular, carriage returns. When this data is created in excel, it treats the carriage return as a new cell, so instead of putting all the data for that column into one cell, it creates a number of cells and merges them all together.
Is there anyway to get around this? I know excel can support line breaks within a cell, is it a limitation of oracle reports to be unable to duplicate this output?

For what it's worth, that's the way I read that line in the User Guide as well. What it actually appears to mean, though is 'Rules applied to multiple cells apply independently to each of the cells."
Here's a workaround for your three adjacent columns. Long, but fairly simple steps.
Add a second table to the sheet (Table 2).
Resize the second table to one column wide and as many rows as you want to apply the conditional format to.
Set the width of the column to the same width as the three columns you want to highlight, and the row height(s) to match the rows.
Format to table to have NO Header or Footer row or column.
Use the Wrap Inspector to uncheck "Object causes wrap"
In the first top cell of Table 2, enter an = sign, then Click on Table 1 in the sidebar, Click on the first cell that will hold YES or NO.
Fill the formula down the rest of Table 2.
With all cells in Table 2 selected, use the Cell Format inspector to set the 'text contains yes' rule and the conditional fill colour for these cells.
Test the conditional formating by introducing values into Table 1.
Click on Table 1 in the sidebar, then use the Table inspector to set Cell Fill to 'none'.
Click on Table 2 in the sidebar, then drag that table onto table 1 aligning it to cover the cells in which the conditional formating is to appear.
When positioned (and still selected), go to the Arrange menu and Send Backward to move Table 2 behind the (transparent) cells in Table 1.
With Table 2 still selected, click on the Cell Borders color well and set the Opacity of the borders to 0%.
Click the Text inspector and set the Text colour Opacity for Table 2 to 0%.
Regards,
Barry

Similar Messages

  • CPU usage while generating text output from reports

    hi
    while we attempt to generate the text (delimited) output from reports and when the query fetches more than 1500 rows, the cpu usage stays around 100% for long time paralysing the operation...
    we faced the problem when we attempted to generate text output for around 10000 records.
    any suggestions?
    ravi kumar chandran

    You can burst with eText and I have done it
    successfully.
    I don't believe pagebreaks are an option in eText and
    I don't think it makes sense either since your
    generating a flat-file and not a customer or internal
    facing document. Does that make sense?
    Also, if you would like you can use the
    BIPublisherIDE, this code can be converted pretty
    easily to handle jcp. There is a an oa framework
    version I have developed but I haven't posted on my
    blog yet. I plan on adding a bolt on for java
    concurrent programs soon. it's really pretty simple
    just haven't had the time.
    http://bipublisher.blogspot.com/2008/03/bi-publisher-b
    ipublisheride.html
    Ike Wiggins
    http://bipublisher.blogspot.com
    Thanks Ike for your reply.
    I agree with your points on TXT files, but in our case,the reports are generated in TXT format for the customer so we are looking for the above mentioned features.
    I have gone through BIP IDE and its a wonderful small utility which eases the task of BIP development.
    As I mentioned in my original post that we are currently processing the generated TXT report using a custom util. in JAVA to get the desired output in TXT again.
    I assume thats not what a JCP would do,so I am looking to explore that too.
    As I understand the process for report generation is
    1. Generate XSL from eTEXT template.
    2. Get the XML data from DB using XDO
    3. Apply XSL on XML to get the required template.
    If we are looking to achieve some customizations then we need to have the XSL generated with those customizations.
    In this case, where do we plug in the JCP to alter XSL or am I missing something.
    regards
    Gaurav

  • Build Reports from XML output from Reports

    Hi,
    I was just wondering if it is possible to build reports from output in XML format, originally generated by Oracle Reports.
    The XML output produced by Reports is stored in a database for further processing.
    TIA
    Hien

    Hi Hien
    If I have understood this right, you need to create report in XML format from an XML Report Definition File. From the Builder, Generate to File from the File menu and choose XML format for the output.
    Remember that XML output from Reports is Data driven and faithfully reproduces the Data Model. It is NOT layout driven.
    Regards
    Sripathy

  • How to save a numbers file to a pdf file of multiple pages instead of one giant long page?

    How to save a numbers file to a pdf file of multiple pages instead of one giant long page?

    Hi DW,
    Numbers 3.2.2
    Instead of Menu > File > Export To,  use Menu > File > Print...
    That takes you to Print Preview.
    In the Print Setup panel, Click on the Print... button lower right (it won't print yet).
    That opens the Print Dialogue.
    Click on the PDF Pop-Up Menu lower left.
    Choose Open PDF in Preview or Save as PDF.
    That will have page breaks and will be full sized.
    Print from Preview.
    Regards,
    Ian.

  • Generating delimited output from Reports Runtime R60

    When generating a delimited file using Runtime how can you predict or determine how Oracle will form the output rows from the report layout? Does anyone have any documentation on Runtime that explains the generation process as there is nothing in the Runtime Reference manual.

    The only documentation (such that it is) that I've found on this is in MetaLink, in Note 68245.1 "Delimited Output in Reports" and a tiny bit more in Note 120072.1 "Suppressing header on delimited output".
    - Bill

  • Unusual Output from Report ...

    Hi ...
    I'm constructing a report using report painter I have a requirement in my column for (Current Month Actual, Current Month Actual Last Year, YTD Actual, YTD Last Year)... I would like to use Predefined Key Figure
    My delema is I have several option when I select the Predined Key figure ranging from Actual Posting till Total Year.
    Question 1) For Current Month Actual -- which I should map under Predefined Key Figure and what are the selection should I do. The same goes for Current Month Actual Last Year, YTD Actual and YTD Last Year.
    Any I'm using Library 8A2 (PCA) which is 8A2-002
    Please assist me
    TQ
    Nathan

    For basic use KSL- Amount in profit center . For others try. KONZ_IST                 Actual postings       
    KONZ_IST2                Act. postings/ current
    KONZ_IST3                Act. postings / cumulat
    You'll need a columns defined with the period and years to do ty and py comparisons. Use a variable with a -1 to derive ly.
    Stick with currency KSL which is profit center currency.
    pls assign points as a way to say thanks.

  • Result to be in multiple columns instead of one

    Hi,
    i have used the below sql :
    select parent_id, max(sys_connect_by_path(name,'^')) History
    from (select parent_id, name, row_number() over (partition by parent_id order by name) rn
    from notes )
    start with rn = 1
    connect by prior rn = rn-1
    and prior parent_id = parent_id
    group by parent_id
    order by parent_id
    this gets me the 'HISTORY' row returned in a single column. Problem is if i have 5 HISTORY notes, they all appear in same column with delimiter ^.
    Please help to modify query as to get History as multiple columns instead of 1
    Below is example of sample data returned , NOTE: history could contain any amount of rows.
    ID     HISTORY
    1     ^TT updates requested^TT updates requested^Update on TT #104836
    2     ^Call back actioned^Delivery Update^Internation Dialing ^TT Follow up (147023)
    3     ^Queried poor signal strength
    Idea case would be :
    ID     HISTORY HISTORY1 HISTORY2
    1     TT updates requested TT updates requested Update on TT #104836

    Hi,
    You might want to leave the results as one long string, but just add some spacing.
    Right now you're using
    sys_connect_by_path(name,'^')and getting output like
    1 ^TT updates requested^TT updates requested^Update on TT #104836
    2 ^Call back actioned^Delivery Update^Internation Dialing ^TT Follow up (147023)
    3 ^Queried poor signal strengthwhich is as hard to read as an OTN posting that doesn't use \ tags.  Naturally you're not going to insult your uses by asking them to read something like that.
    If you use this instead:REPLACE ( sys_connect_by_path ( RPAD (name, 32)
                   ,'^'
         , '^'
    then the output will look like this:TT updates requested          TT updates requested          Update on TT #104836
    Call back actioned          Delivery Update               Internation Dialing           TT Follow up (147023)
    Queried poor signal strength
    See this thread:
    Re: Report count and sum from many rows into many columns
    for various ways to deal with problems like this.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Output from Reporting Agent in BW is inconsistent

    Hi,
    I have created a scheduled package of print type in reporting aget. The job runs successfully but once I check the spool in SM37, the output is not corrrect.
    First it writes only characteristics and then below that it writes key figures. Both Char and Key Figures do not come in one line.
    Not sure where have I gone in creating this scheduling package in reporting agent.
    Any help is most welcome.
    Thanks in Advance.
    Prashant

    Hi,
    You can define threshold values (exceptions) for a query. Data that varies from these thresholds is highlighted in color or marked with icons. You can use these exceptions to identify deviations from expected results at a glance.
    Defining and Changing Exceptions
    1. In the Exceptions screen area, choose New Exception in the context menu. An entry with the default text Exception <Number> appears and you can edit the description directly.
    2.In the context menu, choose Edit. The exception editor appears; it displays the relevant parts for the definition on tab pages.
    You can also call the exception editor from the Properties screen area by choosing the Edit pushbutton.
    3.      Make the required settings for the definition of the exception. For more information, see Definition of Exceptions.
    4.      Choose OK. You return to the query definition.
    5.      Choose Save Query.
    Removing Exceptions from Queries
           1.      In the Exceptions screen area, select the relevant exception and choose Remove in the context menu.
           2.      Choose Save Query.
    Result
    You have defined or changed an exception for a query. Execute the query. The exception is evaluated online. The cell areas that are affected by the exception appear highlighted in the appropriate color or, where applicable, with icons in Web applications.
    You can display the exception descriptions and activate or deactivate the exceptions you want.
    For more info go through the below link
    http://help.sap.com/saphelp_nw70/helpdata/en/68/253239bd1fa74ee10000000a114084/frameset.htm
    Regards,
    Marasa.

  • Problem with output from  report to excel, calling the report from form 10g

    Hi everyone, I'm having a problem generating a excel from a report, which is called from a form, I'm using Forms 10g. The problem is this: My report has a variable number of columns. These columns appear according to data obtained from the database, these columns are dates, In vesion 6 excel file generated shows the columns one after another starting in column A1 to column CP. I mean that the dates are correlative. But in version 10g the excel file generated shows the same report starting in column A to column T, only shows the 20 dates correlative corresponding to this columns, the rest of the dates are down the excel sheet in groups of 20 dates, it's something, the file in 6i grows across and in 10g grows down the excel sheet. The report (rdf file) is the same in 6i and 10g, I compiled the 6i version to obtain the 10g version. The excel sheet generated in 10g looks like the report was in pdf format, because PDF format, cuts the report in pages and the file grows down, if I generate the report in PDF format it has the same structure excel file in 10g has. I hope yo can help because I have days trying to solve this but I have no succes. If someone could help I could email the excel files generated in two versions. Here I put the code I use to generate the files in 6i and 10g. I have tried with DESFORMAT=SPREADSHEET in 10g but the result is the same. Thanks for your help. Greetings for all.
    Code for version 6i (Works Very well)
    PROCEDURE GUARDAREXCEL IS
    pl_id ParamList;
    nom_rep varchar2(20);
    cla_rep varchar2(20);
    cod_dis varchar2(4);
    nom_arch varchar2(100);
    fec date;
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    IF :BK_PARAMETROS.LI_COD_DIS IS NOT NULL THEN
    cod_dis := :BK_PARAMETROS.LI_COD_DIS;
    END IF;
    IF :BK_PARAMETROS.TI_COD_CLI IS NOT NULL THEN
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,:BK_PARAMETROS.TI_COD_CLI||'%');
    ELSE
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,'%');
    :BK_PARAMETROS.TI_COD_CLI:='%';
    END IF;
    IF :BK_PARAMETROS.CLAS_REP=1 THEN
    cla_rep := '001';
    ELSE
         IF :BK_PARAMETROS.CLAS_REP=2 THEN
              cla_rep := '002';
         ELSE
              IF :BK_PARAMETROS.CLAS_REP=3 THEN
              cla_rep := '003';
         ELSE
              cla_rep := '004';
         END IF;
         END IF;
    END IF;
    Add_Parameter(pl_id,'P_COD_DIS',TEXT_PARAMETER, cod_dis);
    Add_Parameter(pl_id,'P_FECHA',TEXT_PARAMETER,to_char(:BK_PARAMETROS.FECFIN, 'DD/MM/YYYY'));
    Add_Parameter(pl_id,'P_CLASE',TEXT_PARAMETER, cla_rep);
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'File');
    Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'Character');
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED' );
    select sysdate into fec from dual;
    IF :BK_PARAMETROS.TIPO_REP=1 THEN
         BEGIN
    nom_rep := 'tdvenrli1577.rep';
    nom_arch := 'c:\windows\temp\RepCobranzaPlanos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
    END;
    ELSIF :BK_PARAMETROS.TIPO_REP=2 THEN
              BEGIN
              nom_rep := 'tdvenrli1578.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaLargos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              END;
    ELSIF :BK_PARAMETROS.TIPO_REP=3 THEN
         BEGIN
                        Add_Parameter(pl_id,'P_XLS',TEXT_PARAMETER, '1');           
              nom_rep := 'tdvenrli1576.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaDetallados' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';      
              END;
    ELSE
              BEGIN
                        nom_rep := 'TDVENRLI1545.REP';
              nom_arch := 'c:\windows\temp\RepCobranzaTodos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              END;
    END IF;
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,nom_arch );
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, nom_arch);
    standard.commit;
    Run_Product(REPORTS, nom_rep, SYNCHRONOUS, runtime, FILESYSTEM, pl_id,'');
    EXCEPTION WHEN Run_Product_Failure THEN
    message('Error');
    END;
    Code for version 10g
    PROCEDURE GUARDAREXCEL IS
    pl_id ParamList;
    nom_rep varchar2(20);
    cla_rep varchar2(20);
    cod_dis varchar2(4);
    nom_arch varchar2(100);
    fec date;
    --byt12122007.sn
    repid REPORT_OBJECT;
         vURL VARCHAR2(500);
         rep_status VARCHAR2(20);
         vJobID VARCHAR2(100);
         v_rep VARCHAR2(100);
    VAR NUMBER;
    w_name_repserv VARCHAR2(30);
    --byt1212007.en
    BEGIN
         --w_name_repserv:=F_OBTIENE_SERVREP;
    w_name_repserv:='repserv';     
    pl_id := Get_Parameter_List('mytmp_params');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('mytmp_params');
    IF :BK_PARAMETROS.LI_COD_DIS IS NOT NULL THEN
         cod_dis := :BK_PARAMETROS.LI_COD_DIS;
    END IF;
    IF :BK_PARAMETROS.TI_COD_CLI IS NOT NULL THEN
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,:BK_PARAMETROS.TI_COD_CLI||'%');
    ELSE
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,'%');
    :BK_PARAMETROS.TI_COD_CLI:='%';
    END IF;
    IF :BK_PARAMETROS.CLAS_REP=1 THEN
    cla_rep := '001';
    ELSE
         IF :BK_PARAMETROS.CLAS_REP=2 THEN
              cla_rep := '002';
         ELSE
              IF :BK_PARAMETROS.CLAS_REP=3 THEN
              cla_rep := '003';
         ELSE
              cla_rep := '004';
         END IF;
         END IF;
    END IF;
    Add_Parameter(pl_id,'P_COD_DIS',TEXT_PARAMETER, cod_dis);
    Add_Parameter(pl_id,'P_FECHA',TEXT_PARAMETER,to_char(:BK_PARAMETROS.FECFIN, 'DD/MM/YYYY'));
    Add_Parameter(pl_id,'P_CLASE',TEXT_PARAMETER, cla_rep);
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    /*Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'File');
    Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'Character');
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED' );*/
    select sysdate into fec from dual;
    IF :BK_PARAMETROS.TIPO_REP=1 THEN
    BEGIN
         repid := find_report_object('tdvenrli1577');
    --nom_rep := 'tdvenrli1577.rep';
    nom_arch := 'c:\windows\temp\RepCobranzaPlanos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1577');
    END;
    ELSIF :BK_PARAMETROS.TIPO_REP=2 THEN
    BEGIN
         repid := find_report_object('tdvenrli1578');      
              --nom_rep := 'tdvenrli1578.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaLargos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1578');
              END;
    ELSIF :BK_PARAMETROS.TIPO_REP=3 THEN
    BEGIN
         repid := find_report_object('tdvenrli1576');
                        Add_Parameter(pl_id,'P_XLS',TEXT_PARAMETER, '1');           
              --nom_rep := 'tdvenrli1576.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaDetallados' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1576');     
              END;
    ELSE
    BEGIN
         repid := find_report_object('tdvenrli1545');
                        --nom_rep := 'TDVENRLI1545.REP';
              nom_arch := 'c:\windows\temp\RepCobranzaTodos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1545');     
              END;
    END IF;
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,nom_arch );
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, nom_arch);
    standard.commit;
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESNAME,nom_arch);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, 'File');
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESFORMAT, 'DELIMITED');
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER, w_name_repserv);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_OTHER, 'paramform=no');
         v_rep := RUN_REPORT_OBJECT(repid, pl_id);
         rep_status := REPORT_OBJECT_STATUS(v_rep);
         WHILE rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')     LOOP
              rep_status:= report_object_status(v_rep);
         END LOOP;
         IF rep_status = 'FINISHED' THEN
              vJobID := SUBSTR(v_rep, INSTR(v_rep, '_', -1)+1);
              vURL:='/reports/rwservlet/getjobid'||vJobID||'?'||'server='||w_name_repserv;
         END IF;
         WEB.SHOW_DOCUMENT(vURL, '_blank');
         IF NOT form_success THEN
              MESSAGE('Error: PL/SQL held against Button failed to execute');
              RAISE FORM_TRIGGER_FAILURE;
         END IF;
    /*Run_Product(REPORTS, nom_rep, SYNCHRONOUS, runtime, FILESYSTEM, pl_id,'');
    EXCEPTION WHEN Run_Product_Failure THEN
    message('Error');*/
    END;

    There are two problems with your VI.  First, the basic logic of writing/appending to a file (Excel, TDMS, anything) should go something like this:  Open the file, position yourself at the end of the file, then, in the loop, acquire data and write it to the file until you are finished with data acquisition.  When you exit the acquire/write to file loop, then close the file.  In particular, the opening and the closing of the file should not be inside the loop.
    As others have pointed out, writing to Excel might not be optimal, particularly if you are acquiring data at a high rate (and would therefore be writing a lot of data). We actually use Excel in our data acquisition routine, mainly reading from a WorkSheet to get the parameters of a particular stimulus, but also writing the outcome of the response to the stimulus.  As it happens, our "acquisition rate" in this example is on the order of several samples per minute, so there's no problem using Excel (we also sample 16 channels of analog data at 1 KHz -- this gets written as a binary file).
    Second, if you really do want to use Excel, use the (existing) Excel file to which you want to append as the "template" argument of the New Report function.  Then use the Excel Get Last Row function to position yourself at "end of file", as noted above.
    Good Luck.
    Bob Schor

  • Reading The Output From A POST To A Webserver

    Any suggestions on the following would be greatly appreciated!! From all examples, what I'm doing is correct, but I can't get the results of the Post.
    I am trying to do the following:
    1. Connect to a webserver through a URL object.
    2. POST a user name and password to a login screen.
    3. Read the Data Page that comes after login.
    I have successfully done item 1, but am failing at either item 2 or 3.
    I have read the forum extensively on Posting to webservers and have followed many examples. However my application does not get past the login screen. My application does not error, but the html that I read is the html of the Login Screen and not the html of the Data Page.
    Here's my code:
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
         public class HttpPostReader3 {
         StringBuffer lineBuff;
         public HttpPostReader3() {
    lineBuff = new StringBuffer();
    URL url;
    HttpURLConnection connection=null;
    String queryparam = "https://a_website/login.asp";
    try
    // Get URL
    url = new URL(queryparam);
    // Get a HttpURLConnection Object
    connection = (HttpURLConnection)url.openConnection();
    // prepare for both input and output
    connection.setDoOutput(true);
    // set request to post
    connection.setRequestMethod("POST");
    // Encode the URL POST String and assemble it
    String postparameter = URLEncoder.encode("txtUserID") + "=" + URLEncoder.encode("a_user_id");
    postparameter += "&" + URLEncoder.encode("txtPassword") + "=" + URLEncoder.encode("a_password");
    postparameter += "&" + URLEncoder.encode("chkAutoLogin") + "=" + URLEncoder.encode("Y");
    postparameter += "&" + URLEncoder.encode("Login") + "=" + URLEncoder.encode("Login");
    // Create a outstream for posting the parameters and set the outstream to ASCII data
    OutputStreamWriter outStream = new OutputStreamWriter(new BufferedOutputStream(connection.getOutputStream()),"ASCII");
    outStream.write(postparameter); // POST occurs here for name value pairs
    outStream.close();
    // get output streams of connection
    BufferedReader in = new BufferedReader( new InputStreamReader( connection.getInputStream()));
    String inputLine;
    while ((inputLine = in.readLine()) != null)
         System.out.println(inputLine);
         lineBuff.append( "\n" );
         lineBuff.append( inputLine );
    catch(IOException e)
    System.out.println(e);
    //WRITE OUTPUT HTML TO A TEXT FILE CALLED UNTITLED.TXT
                   String htmlFile;
                   htmlFile = lineBuff.toString();
              // Read and append data to a text file
              try{
              String fileName = "untitled.txt"; // Filename
              // Make the inputfile object
              FileInputStream fi = new FileInputStream(fileName);
              byte inData[] = new byte[fi.available()];
              fi.read(inData); // Read
              fi.close(); // Close
              String text = new String(inData); // Make a textstring...
              // Now, do whatever you want with the data... and append...
              String textToAppend = "xyzzzz";
              //byte outData[] = textToAppend.getBytes();
              byte outData[] = htmlFile.getBytes();
              // Make the outputfile (whith the 'append' boolean set to true
              FileOutputStream fo = new FileOutputStream(fileName,true);
              fo.write(outData);
              fo.close();
              }catch(Exception oops){
                   System.out.println("error with untitled.txt");
                   finally
                             System.exit(0);
              public static void main(String[] args)
                                  HttpPostReader3 h = new HttpPostReader3();//constructor
    } //End HTTPPostReader3

    You are very wise, but I have thought of that. Login.asp creates an html page that has a <form> statement with a submit action (Post) to login.asp. I pulled this out of the html.
    I did get lucky and found that for a bad login, the asp replies with "Bad Login". Since I know the login, I tried both the good login and a bad login. I found that I am posting correctly and logging in (at least my login is recognized as good and bad as bad).
    However, I don't get the information of the next page (the next page does come from default.asp)!
    WHAT DO I KNOW:
    1. I am posting correctly.
    2. My login was recognized as good.
    3. I don't get the next page, which comes from default.asp. Note, you can't go to default.asp directly, it will send you back to login.asp.

  • Urgent - Want a excel output from reports

    I am giving DESTYPE = FILE
    DESNAME
    DESFORMAT = DELIMITED
    I have break groups in the report . But the excel output comes out very ugly. Like it repeats the whole info and then it put heading horizontally.
    here is the sample of the ugly file
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    well I have copied only two lines. BUt see how the whole info is being reporated. and the column heading are now row heading
    any clue to port it into excel so that it looks like the the report builder output.
    null

    Hi,
    Change the Desforamt as Delimited and give the File name as file.xls and run the report
    you will get the Excel Output but the total will be pronted On RHS for every row.Hope this would help you to print the report in Excel File.
    Thanks,
    Vikki
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by aruna100:
    I am giving DESTYPE = FILE
    DESNAME
    DESFORMAT = DELIMITED
    I have break groups in the report . But the excel output comes out very ugly. Like it repeats the whole info and then it put heading horizontally.
    here is the sample of the ugly file
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    well I have copied only two lines. BUt see how the whole info is being reporated. and the column heading are now row heading
    any clue to port it into excel so that it looks like the the report builder output.
    <HR></BLOCKQUOTE>
    null

  • Can't generate SPREADSHEET output in Reports 10.1.2.0.2

    We are using Reports 10.1.2.0.2. I want to generate in my (Not deployed in the AS) PC a simple tabular report but in spreadsheet format. I use this command line command in a batch file.
    d:\OracleDevR1\bin\rwrun.exe    USERID=user1/user123@db1  
        REPORT=c:\temp\rpt_10gr2_101202_1.rep
        DESFORMAT=spreadsheet    
       DESTYPE=FILE 
    DESNAME=c:\temp\rpt_10gr2_101202_1_excel_output.xls   I get this error in the log file
    REP-0826: Invalid printer driver
    'spreadsheet' specified by parameter
    DESFORMAT.However, I can generate DESFORMAT=HTML, DESFORMAT=PDF output. The HTML and PDF files are created.
    What is the problem here?? Any help would be greatly appreciated.
    I even installed Excel 2007 but still gives the same error.
    Edited by: Rohan123 on Aug 24, 2012 4:19 AM

    rzuluaga - Oracle wrote:
    Hi,
    this is very weird as it should work fine in 10.1.2.0.2. I tested rwrun with desformat=spreadsheet on Windows and on Linux with base release (10.1.2.0.2) and it worked fine so not sure what is happening with your environment.
    My only suggestions would be as follow
    1- Make sure you are using a report with paper layout and no web layout
    2- Aapply patchset 10.1.2.3 and re-try.
    Reference
    https://updates.oracle.com/Orion/PatchDetails/process_form?patch_num=5983622
    Regards, RobertoSorry Roberto, I have mistakenly used the 10G release 1 EXE. When I use my 10g R2 exe we can generate spreadsheet format. BUT, the spreadsheet is useless for complex reports. The excel sheet is not readable since lots of blank lines added and also lots of blank columns added. No images also there that is found in the PDF output. So, it's not WYSIWYG type output.
    We are now trying to patch the 10g r2 to 10.1.2.3 and use the ENHANCEDSPREADSHEET format.

  • View output from report output,display with null row

    Hi ,
    I view report output through browser,but the output content include with a null row inside.

    Hi
    That doesn't possible, so don't worry
    what U need to consider is zoption-tdprogram has to have the name of main program, so the program where the variable are defined.
    This field isn't usually filled, because the main program is the driver program (i.e the program where the sapscript is called), it need to fill it only if the program where the variable are defined is not the driver program.
    So i believe this (your) code:
    REPORT  z_sapscript.
    DATA TEST_NAME(20) TYPE c.
    CLEAR usr01.
    SELECT SINGLE * FROM usr01 WHERE bname = sy-uname.
    zoption-tddest    = usr01-spld.        "Output device (printer)
    zoption-tdimmed   = 'X'.               "Print immediately
    zoption-tddelete  = 'X'.               "Delete after printing
    test_name = sy-uname.
    CALL FUNCTION 'OPEN_FORM'
         EXPORTING
             application        = 'TX'
             device             = 'PRINTER'
             dialog             = 'space
             form               = 'Z_TEST_SAPSCRIPT'
             language           = sy-langu
             OPTIONS            = zoption
         IMPORTING
              language           = sy-langu
           EXCEPTIONS
             OTHERS     = 1.
    IF sy-subrc  0.
      LEAVE PROGRAM.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             window        = 'MAIN'
         EXCEPTIONS
              element       = 1.
    CALL FUNCTION 'CLOSE_FORM'
      EXCEPTIONS
        unopened = 1
        OTHERS   = 2.
    It should work now
    Max

  • Form preview output from report

    I am having a requirement to have the form print preview in the report output.
    Steps to check form output:
    T-code VF03 -> enter billing doc number -> click on billing document tab at the top of the screen -> click on the issue type to -> select any type -> then click print preview.
    According to my requirement, the report selection screen is having only document number, and on executing it should directly display the form output.
    I have tried using BDC but it wouldn't help.
    Please help.

    Hi
    That doesn't possible, so don't worry
    what U need to consider is zoption-tdprogram has to have the name of main program, so the program where the variable are defined.
    This field isn't usually filled, because the main program is the driver program (i.e the program where the sapscript is called), it need to fill it only if the program where the variable are defined is not the driver program.
    So i believe this (your) code:
    REPORT  z_sapscript.
    DATA TEST_NAME(20) TYPE c.
    CLEAR usr01.
    SELECT SINGLE * FROM usr01 WHERE bname = sy-uname.
    zoption-tddest    = usr01-spld.        "Output device (printer)
    zoption-tdimmed   = 'X'.               "Print immediately
    zoption-tddelete  = 'X'.               "Delete after printing
    test_name = sy-uname.
    CALL FUNCTION 'OPEN_FORM'
         EXPORTING
             application        = 'TX'
             device             = 'PRINTER'
             dialog             = 'space
             form               = 'Z_TEST_SAPSCRIPT'
             language           = sy-langu
             OPTIONS            = zoption
         IMPORTING
              language           = sy-langu
           EXCEPTIONS
             OTHERS     = 1.
    IF sy-subrc  0.
      LEAVE PROGRAM.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             window        = 'MAIN'
         EXCEPTIONS
              element       = 1.
    CALL FUNCTION 'CLOSE_FORM'
      EXCEPTIONS
        unopened = 1
        OTHERS   = 2.
    It should work now
    Max

  • Unable to view PDF output from Report Server

    Help!
    I have successfully setup CGI Report Server and can generate and view reports in IE5 as HTML repformat.
    However when I try to generate output as PDF I do not get the report displayed. Instead I get a little acrobat icon displayed in the top left of the browser window.
    When I click on the icon I get a IE5 message:
    "There is no viewer available for the type of object you are trying to open....
    Content Type: application/pdf"
    ...and then insists on taking me to Microsoft activex plugin page.
    This is very stange as I DO have Adobe Acrobat Reader 4 installed and the plugin works ok when viewing PDF files on Oracle webpage.
    Any suggestions on how to resolve are gratefully received!!
    Regards,
    Richard.

    You have run into an interesting problem. The problem is not with Reports. The problem is with Adobe. You can search Adobe's web site and they point to Microsoft (btw, this problem doesn't occur with netscape as the browser) Microsoft's web site point to Adobe.
    The Problem is that the .ocx Adobe puts out for use with IE times out if the report take stoo long to start sending back data. We had report that worked and some that didn't. We took a report that worked and put a sleep command in it and when the sleep command got to 10 the report quit working.
    My suggestion: move to netscape, make your reports as fast as absolutely possible.
    Jeff
    null

Maybe you are looking for

  • Question on functions etc.

    Say for instance I declared in a function called Function1 an array e.g. int [] sumarr = new int [4]; Then I filled the array with values. How can I use this array(with contents) in another function, say function2. How do I call it in main if it hasn

  • Flat file upload in Process Chain error!

    Dear Expert:    We wirte routine in infopackage and use ftp upload flat file from BW Application server(AL11--> can open the file), I manually upload, it can sucessful upload, but in Process chain, it always deal with the process and display yellow l

  • How do I remove adobe download assistant from my computer

    How do I remove the adobe download assistant from my computer

  • IPod nano 7th gen not recognised by iTunes. Mac (Yosemite)

    Problem: I am connecting my iPod using the original cable and iTunes does not recognise it as a device. Yes, I tried the The Five Rs: Reset, Retry, Restart, Reinstall, Restore. Yes, I tried closing iTunes -> connecting iPod -> waiting for iTunes to o

  • Wlst 10.3.5 project on samplecode site

    Hi, since samplecode.oracle.com is decommisioned, where can I find the wlst project samplecode that was hosted there? There were some wlst 10.3.5 samples over there I thought. Can someone advice? thanks,