Column values shift towards left for null values when export to excel

Post Author: pssuresh
CA Forum: Exporting
All,
I have a strange problem when using crystal report 10 export through C# Code. Consider in a row there are 3 columns and i am exporting to excel. ex.Student_id,Student_name,Student_Section. If Student_name values are null, then student_section values get displayed under student_name. There is a column shift towards left when there are null values. If anybody has already faced this problem, please post ur answer.
Note:  When i just export to excel directly from crystal report, it works fine. i face problem only when i export through .Net code. I guess it is the problem with some formatting through code. if any body has fix, let me know.
Thanks,
Suresh.P.S

Post Author: pssuresh
CA Forum: Exporting
Thanks for your reply. Even i have done the same thing yesterday to solve that problem. But we have nearly 100 of reports and started migrating now. The best solution crystal reports suggest is this.
http://support.businessobjects.com/library/kbase/articles/c2014430.asp
Thanks,
Suresh.P.S

Similar Messages

  • Checking for null value in arraylist

    Hi
    i have an excel file which i i am reading into an arraylist row by row but not necesarrily that all columns in the row mite be filled. So how do i check for null values in the array list.
    try
                        int cellCount = 0;
                        int emptyRow = 0;
                        HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream(file));
                        HSSFSheet sheet = workbook.getSheetAt(0);
                        Iterator rows = sheet.rowIterator(); 
                        myRow = new ArrayList();
                        int r = 1;
                             while (rows.hasNext())
                                  System.out.println("Row # " + r);
                                  HSSFRow row = (HSSFRow) rows.next();
                                  Iterator cells = row.cellIterator();          
                                  cellCount = 0;
                                  boolean isValid = false;
                                  while (cells.hasNext())
                                       HSSFCell cell = (HSSFCell) cells.next();
                                       switch (cell.getCellType())
                                            case HSSFCell.CELL_TYPE_NUMERIC:
                                                 double num = cell.getNumericCellValue();     
                                                 DecimalFormat pattern = new DecimalFormat("###,###,###,###");     
                                                 NumberFormat testNumberFormat = NumberFormat.getNumberInstance();
                                                 String mob = testNumberFormat.format(num);               
                                                 Number n = null;
                                                 try
                                                      n = pattern.parse(mob);
                                                 catch ( ParseException e )
                                                      e.printStackTrace();
                                                 System.out.println(n);
                                                 myRow.add(n);                                             
                                                 //myRow.add(String.valueOf(cell.getNumericCellValue()).trim());
                                                 //System.out.println("numeric: " +cell.getNumericCellValue());
                                                 break;
                                            case HSSFCell.CELL_TYPE_STRING:
                                                 myRow.add(cell.getStringCellValue().trim());
                                                 System.out.println("string: " + cell.getStringCellValue().trim());
                                                 break;
                                            case HSSFCell.CELL_TYPE_BLANK:
                                                 myRow.add(" ");
                                                 System.out.println("add empty:");
                                                 break;
                                       } // end switch
                                       cellCount++;
                                  } // end while                    
                                  r++;
                             }// end while
                   } myRow is the arrayList i am adding the cells of the excel file to. I have checked for blank spaces in my coding so please help with how to check for the black spaces that has been added to my arraylist.
    I have tried checking by looping through the ArrayList and then checking for null values like this
    if(myRow.get(i)!=null)
      // do something
    // i have tried this also
    if(myRow.get(i)!="")
    //do something
    }Edited by: nb123 on Feb 3, 2008 11:23 PM

    From your post I see you are using a 3rd party package to access the Excel SpreadSheets, you will have to look in your API for you 3rd party package and see if there is a method that will identify a blank row, if there is and it does not work, then you have to take that problem up with them. I know this is a pain, but it is the price we pay for 3rd party object use.
    In the mean time, you can make a workaround by checking every column in your row and seeing if it is null, or perhaps even better: check and see if the trimmed value of each cell has a lenth of 0.

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • How to check for null values in bpel?? Please Help! very urgent!!!

    Hello Guys,
    I have a problem. I have an external webservice to which I have to post my request. My task is to create an Webservice and Service Assembly to which others would post request and get response. I have to create SA to deploy onto the bus.
    The problem is that there are optional elements in the request and response xsd's. In the Response sometimes certain feilds may come or they may not. for Example:- my response could contain a tag like this <firstName></firstName>
    I have to copy these feilds in my bpel process from one variable to another.(like in the mapper).
    My Question is , Is there any way in BPEL process or BPEL mapper where I could Check for null values in the request or response???
    Your inputs would be very helpful.
    Thanks
    Rajesh

    Thanks for replying man :)
    Ok I will be more clear.
    Here is a snippet of one of the xsd's that I am using.
    <xs:element name="returnUrl" nillable="false" minOccurs="0">
                        <xs:annotation>
                             <xs:documentation>Partner specifies the return URL to which responses need to be sent to, in case of
    Async message model.
    </xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                             <xs:restriction base="xs:anyURI">
                                  <xs:maxLength value="300"/>
                                  <xs:whiteSpace value="collapse"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
    This means that the return URL field can be there or it may not be there. But if it is there it cant be null because nillable=false. But the whole <returnURL> </returnURL> can be there or it may not be there because minOccurs=0.
    My requirement is , if returnURL is there in the response with a value, then in my BPEL mapper I should map it else I should not map it.
    Thats the issue.
    and Yes kiran, the node be non-existant.
    So can you please help me with this.
    Thanks
    Rajesh

  • Report is showing "null" string for null values.

    hi ,
    I am new to BI Publisher and creating a report in BI Publisher. In the result set for null values, report is printing as "null". I checked the query , it gives blank (empty value) data for null values. But in report it is coming as "null" value (string "null"). I require to show the report as blank data for null values. Can you please help me to find solution for this ?.
    Thank you very much in advance.
    Regards
    Gayathri.

    it shouldnt happen like that
    try these
    <?xdoxslt:ifelse(ADDRESS3!='',ADDRESS3,'')?>
    or
    <?xdoxslt:ifelse(ADDRESS3!='null',ADDRESS3,'')?>
    if those didnt work send me your template and xml to my email i can try that at my side .
    Email [email protected]

  • Help: matrix report grid lines missing for null values only on server side

    Hi,
    I created a matrix report in pdf format. The output in great when run through report builder locally, it renders all necessary details. However, after the report being moved into AS server, the report does not show grid lines for null values.
    It looks to me this has something to do with configurations and hope someone know what needs to be done.
    Any suggestions are greatly appreciated.
    Jimmy

    Thanks for replying.
    DESFORMAT is PDF.
    There should be a fix as I had same issue with same Oracle version at my previous company. DBA fixed the issue on AS server.
    I found your post on 09/28/2010 with a link to patch set: Re: Null value fields disappear  in pdf output format
    We worked out with the work around without install the patch.
    Jimmy
    Edited by: WJHORA on Sep 8, 2011 2:16 PM

  • Megge column when export to excel

    User is requesting Excel column header to split for infoobjects that are displaying key & text. See attachment showing the column header splitting.
    (Currently all key & text headers merge when exported into Excel apart from last object in row.

    Hi,
    this is not posibble. You can switch on the parameter REPEATED_TEXTS_DISPLAYED at the Analysis Item, but this only repeats the characteristic values, not the headers.
    The export to Excel shows the same as you see in the Analysis Item in Web.
    best regards
    ARNE

  • Lost collapsing columns when export to excel

    I have created a report with row grouping, works correctly working in Report Server Browser, 
    after export the report to excel, when clicking on the + in Excel only 1 or 2 of about 100 lines appears, or there is no + head to click for other groups
    a similar report works when exported to excel.
    any solution what to do or whats possibly wrong?
    thank you

    Hi Karl,
    According to your description that you are experiencing the issue when you export the report to excel, drill down report not display all the fields after expand the "+"and some group which should have "+" not shown, right?
    I have tested on my local environment and can’t reproduce the issue, the issue can be caused by the incorrect setting of the visibility and also can be related to the excel rendering.
    Microsoft Excel has limitations with how it manages hidden and displayed report items when they are exported. Groups, rows, and columns that contain report items that can be toggled are rendered as Excel outlines. Excel creates outlines that expand and collapse
    rows and columns across the entire row or column which can cause the collapse of report items that are not intended to be collapsed. In addition, Excel's outlining symbols can become cluttered with overlapping outlines. To address these issues, the following
    outlining rules are applied when using the Excel rendering extension:
    The report item in the top-left corner that can be toggled can continue to be toggled in Excel. Report items that can be toggled and share vertical or horizontal space with the report item that can be toggled in the top-left corner cannot be toggled in
    Excel.
    To determine whether a data region will be collapsible by rows or columns, the position of the report item that controls the toggling and the position of the report item that is toggled are determined. If the item controlling the toggling appears before
    the item to be toggled, the item is collapsible by rows. Otherwise, the item is collapsible by columns. If the item controlling the toggling appears beside and above the area to be toggled equally, the item is rendered with row collapsible by rows.
    To determine where the subtotals are placed in the rendered report, the rendering extension examines the first instance of a dynamic member. If a peer static member appears immediately above it, the dynamic member is assumed to be the subtotals. Outlines
    are set to indicate that this is summary data. If there are no static siblings of a dynamic member, the first instance of the instance is the subtotal.
    Due to an Excel limitation, outlines can be nested up to 7 levels only.
    Article about the show and hide in the excel for your reference:
    http://msdn.microsoft.com/en-us/library/dd255234.aspx
    Thanks for your understanding.
    Regards
    Vicky Liu

  • Column Header in 2 rows in report file but export to excel data only displays only bottom row of column header

    Post Author: blofrese
    CA Forum: Exporting
    I am using Crystal XI and need to output several columns worth of data. Do to so I attempted to have the data presented in 2 rows within the same section.
    Example:Page Header b contains:  7 columns  5 columns
    Details a contains:  7 columns  5 columns
    When exporting to excel data only I only see the bottom 5 column header info and all the detail data in the correct order. How do I get all the Headers to display on the export file?
    Thank you for your time.

    Post Author: jw1234
    CA Forum: Exporting
    I have the same problem. Have you find the solution yet??
    I'm trying to export as Excel data only and have 2 page header band. It only display the 2nd band with the bottom label. None of the 1st band shows up. 
    Page Header a contains:Report TitleDate Range
    Page Header b contains:Dept Name4 columns
    Please help. Thanks!

  • Merge columns when exporting to excel data only

    Hi,
    I have a report with headers in fowling format.
             Quantity         |
    first day   |  last day |
    When exporting to excel data only I want output in following format and want to merge upper header cells.
    Quantity
    First Day
    Last Day
    Please reply.Thanks.

    Hi,
    You can achieve this requirement Please follow the below document.
    How to WYSIWYG SAP Crystal Reports Export to XLS
    I hope this is the best formatting example suited for this requirement.
    Ludek thanks for preparing this document and sharing with us......This is the best formatting ex.
    Refer Link: Crystal Reports Crystal to Excel
    Thanks,
    DJ

  • Workarounds for project crashing when exporting?

    I have developed a project in captivate 6 which is now crashing captivate when I export it.   I can preview it in 'Web Browser' and 'HTML 5 output'.  But when I export it as a SCORM package it crashes.  I was able to do that yesterday but today it's crashing.
    Any suggestions?  Any one?
    Slides contain nothing fancy except just mp3s, text and graphics.
    Specs
    Captivate 6 project
    Tested on both Mac and PC
    From,
    Luke L

    Hi Luke,
    In Project Preferences, Start / End there is an option preload startscreen.
    Best regards.
    Philippe
    Le 15 oct. 2012 à 21:48, Luke L PSA <[email protected]> a écrit :
    Re: workarounds for project crashing when exporting?
    created by Luke L PSA in Import/Export - View the full discussion
    thank you tchiboo.
    Which start screen is this?   Thanks for the help desperate to know.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4775908#4775908
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4775908#4775908
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4775908#4775908. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Import/Export by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Display columns for Null Values in Crosstab

    Hi All,
    I have developed a crosstab in CR based on SAP BW Query. Report requirement demands to display all columns even though data is not present for those columns. However this report doesn't show the columns when there is no data. Can you please help to resolve this issue !!!
    Regards,
    Samir

    Samir,
    As Abhilash stated, the crosstab rows/columns are like groups.
    If you do not have a value to create a column, it will not show in the crosstab. Do you have a table that lists all the values you wish to show in the columns? Is it used in the report? Perhaps you can use it to create the columns by using a left outer link from the table with all the values to data table you are reporting on, and use it for your columns
    If the columns are dates, and you do not have data for a particular date, that can be done.
    [This post has a solution for a SQL server|How to dynamically create a table to join with;.
    [Here is another solution|Generating Calendar Months for the year;.
    There are other posts regarding this issue. I can not think of one at the moment for building a table for values other than a date but I am pretty sure I have seen one.
    Debi

  • Is it possible to filter a table for NULL values in a column? (11g)

    I am using the out-of-the box table filtering provided by ADF Faces RC, but cannot figure out how to filter on Null value that are in the table.
    I have tried "IS NULL" and "= NULL", but nothing works.
    I have a backing bean that intercepts the filtered values before the filter is applied, and I can't set it there either.
    Does anyone know how this is accomplished?

    No, it is not. Worse, many people will view this in any old PDF viewer, most of which won't have overprint preview at all.
    You need to send very clear instructions about this, with specific screen shots - or better, avoid tools and constructions that require it. Probably some wording about "need to view with suitable professional tools" will make the message more palatable.

  • Check for NULL values

    Hi,
    I have a table with columns a1, a2, a3, a4 and a5. The column a1 is the primary key for the table. I want to check if all the other columns except a1 have null values. How can I do that?
    Thanks,
    Machaan

    For fun;
    select a1,
           a2,
           a3,
           a4,
           a5,
           nvl2(a2, 0,1) + nvl2(a3, 0,1) + nvl2(a4, 0,1) + nvl2(a5, 0,1) num_nulls
    from sample_data;
            A1         A2         A3         A4         A5  NUM_NULLS
             1          2                                           3
             2                                                      4
             3                                4                     3
             4                                4          4          2
             5                                           2          3
             6                    -2                                3
             7          1          2          3          4          0
             8         -1         -2         -3         -4          0

  • How to check for null values in pl sql?

    Hello,
    I have an sql statement where I read the db column into a number of variables, some of the columns contain NULL values or empty varchars. How can I check if my variable contains any data?
    Thanks,
    J

    to check if your variable contain null or not use like this
    if v_variable is null if you use
    if v_variable=NULL this is right according to syntax but it will not give you desired result
    SQL> declare
      2  v_empname varchar2(20);
      3  v_comm number;
      4  begin
      5  select ename,comm into v_empname,v_comm from emp
      6  where empno=7839 and comm is NULL;
      7  dbms_output.put_line(v_empname);
      8  if v_comm is NULL then
      9  dbms_output.put_line(v_empname);
    10  end if;
    11  end;
    12  /
    KING
    KING
    PL/SQL procedure successfully completed.but if you will use = null then you will not get result
    SQL> declare
      2  v_empname varchar2(20);
      3  v_comm number;
      4  begin
      5  select ename,comm into v_empname,v_comm from emp
      6  where empno=7839 and comm is NULL;
      7  dbms_output.put_line(v_empname);
      8  if v_comm = NULL then
      9  dbms_output.put_line(v_empname);
    10  end if;
    11  end;
    12  /
    KING                   -------------king will get printed only once.
    PL/SQL procedure successfully completed.

Maybe you are looking for

  • AP INVOICE작성중 PO MATCH시 ORA-01403 ERROR.

    제품 : FIN_AP 작성날짜 : 2004-10-25 AP INVOICE작성중 PO MATCH시 ORA-01403 ERROR. ======================================== Problem Description AP Invoice작성시 Tax Code를 User의 코드로 선택후 PO Match를 하게 되면 아래와 같은 Error Message가 뜨면서 전표가 생성이 않됨. Tax Code가 VAT일 경우에는 PO Mat

  • Sort order for group by functions

    I have table TAB1(notenum number, linenum number, linetext varchar2(100)). Each note can have multiple lines of text. Eg data NOTENUM     LINENUM     LINETEXT 1     1     THIS IS LINE1. 1     2     THIS IS LINE2. 2     1     THIS IS LINE1 OF NOTE2. 2

  • Approval for F110 after payment proposal

    Hi, I am having a new requirement for F110 tcode, before payment run and after payment proposal somebody has to see the vendor, customer and bank detail etc., and he shall approve it or reject and once he approve which ever item is approved will auto

  • Maximum size possible of hard disk in my IMAC G5 20 inch?

    I am using an IMAC G5, 2GHz with a 400 Gb hard disk. I would like to buy a larger disk, 500 Gb minimum or even 750 Gb. - What is the maximum size the IMAC can handle? - Where would I find a document on apple.com to provide further details on the hard

  • I have lost the toolbar that reads "File" "Edit" etc. How do I get it back?

    I have lost the toolbar that reads "File" "Edit" etc. How do I get it back?