DESFORMAT=spreadsheet and formatting issues in excel

Hi all,
Using reports builder 10 I have created a report layout for use with spreadsheets but am having trouble with a couple columns. In the data model the columns are just a straight select, they are varchar2 in the table.
The columns themselves contain entries like 00000001234 where the values differ, but are always padded with zeros to be 11 chars long. This is not a numeric column although it only contains numbers. in the properties of the report they are shown as varchar2 but when I run the report or generate it to .xls and open it, the column always appears without the padded zeros like excel thinks it is a number.
Is there a way to get around this?
Edited by: a small rabbit on Feb 24, 2009 9:54 AM

That just makes || :din_gp_pin|| be displayed in the column of the report instead of the actual value.
EDIT: changed the line to VARIABLE :=  ' '||:din_gp_pin||' ' ; and the value shows up in the spreadsheet, but it still cuts off the leading zeros. so instead of 00001234567 I get 1234567
Edited by: a small rabbit on Apr 1, 2009 8:32 AM

Similar Messages

  • Importing Excel Files and Formatting Issues

    Good afternoon ladies and gentlemen. When in doubt, post in the forum! Anyway, I am using java via ODBC to connect to an excel file to extract some info from it, using SQL statements. Everything can be extracted without any problems, however, Excel keeps pi$$ing me off by changing the format of the cell data.
    Firstly, I highlight every cell in my Excel file and format it as "Text."
    Then I extract the cell info by using a ResultSet and getting a String (even for numeric data - ResultSet.getString(...))
    What is getting on my nerves is that not only does it not extract numeric values followed by a string, when it does extract numeric values, it is adding a ".0" after the value.
    For example, if the cell value is 123, it will return 123.0
    If the cell value is 123SHOE, it returns null
    Furthemore, when editing the Excel file, after having every cell formatted as "Text," if I enter a number, say, as a zipcode, 123450000, it brings up an error! But the very definition of "Text" states that "Text format cells are treated as text even when a number is in the cell."
    The moral of the story is, I want to convert all data in the Excel file to "Text" and when extracting data from the file, I need to be able to extract numbers, numbers followed by characters, and everything else.
    Any suggestions?
    Thanks much,
    Josh

    Hey Dr. Clap, quick question for ya. I was checking out the Apache POI you recommended. More specifically HSSF. I noticed in the documentation that "String cells cannot conatin numbers and numeric cells cannot contain strings." Unfortunately, this is not going to work well with my app as some of the primary keys (I use the term loosely) are Strings which contain numbers. My main problem is that my app wont recognize the Strings containing numbers, so it returns null, and Excel is chopping off the leading zeroes and is popping up with an error because numbers are in the String. However, as I stated before, Excel notes that text cells can contain numbers!
    FYI, I am using Pervasive SQL to extract a given list of users in a DB (which I dont want to connect to directly) and am saving that generated query (list of users) into a text file. I then open the text file in Excel which parses it correctly and assigns the cells the correct values. So I don't think I can format the cells as text because I am importing the file I generate. I love doing things ass backwards :) Another reason I am using Excel files is so anyone can use the software so long as they have an Excel file with the appropriate columns within the file.
    Thanks yet again and I'll keep searching.
    Josh

  • Multiple queries and formatting issues

    I am running a report with 2 queries in a csv format. It displayed the right format with one query but with the new query , I have all sorts of formatting issues. The data is displayed in random cells. Why would this happen? Any ideas?
    thanks

    Sripathy,
    No, the data is not mixed up. However, the data is displayed in random fashion. Data which should be displayed in one cell, is coming in 2 cells. Sometimes, it is skipping a few cells. It could be due to field widths- I tried changing the widths of the groups in the Data model and also in the layout editor, but nothing has worked so far. Does it not automatically adjust the width depending on the data. I have Vertical elasticity Expand and horizonta Fixed.
    Thanks,
    Srikanth

  • NaN and Export Issue in Excel

    Hi
    I have an Issue that I need to calculate value on below condition 
    ((ReportItems!txtPayaClick.Value/ReportItems!txtPayExpLH.Value)-1)*100.
    But Above give me errorthat is showing  "NaN" as an Result.
    Then I used;=IIF(ReportItems!txtPayExpLH.Value=0,0,((ReportItems!txtPayaClick.Value/ReportItems!txtPayExpLH.Value)-1)*100)
    This Time when I Export the report in excel Format It gives me same error (NaN) .
    Kindly help me .
    Thanks

    Hello,
    The issue is due to the IIF function always evaluates both the true part and the false part, even though it returns only one of them. This means both the true part and the false part need to be evaluated.
    In order to resolve the issue, please refer to the following expression:
    =IIF(ReportItems!txtPayExpLH.Value=0,0,
    ((ReportItems!txtPayaClick.Value/IIF(ReportItems!txtPayExpLH.Value=0,1, ReportItems!txtPayExpLH.Value))-1)*100)
    Alternatively, we can use following custom code to work around the issue:
    Public Function Divider (ByVal Dividend As Double, ByVal Divisor As Double)
    If IsNothing(Divisor) Or Divisor = 0
    Return 0
    Else
    Return Dividend/Divisor
    End If
    End Function
    Then, use following expression:
    =Code.Divider(ReportItems!txtPayaClick.Value, ReportItems!txtPayExpLH.Value)
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Retaining changes and format  of  imported excel data.. please help.

    Is there some kind of secret that Im mising out on that will allow me to make changes to the data in the excel cell range in which I import to an InDesign document?
    It was working fine, until I had to add a line of data to the import field range, and now it asks me every time I open the InDesign file to apply changes.. And now when I update said imported data, it comes up as little red dots, and I have to change all of the cell parameters to get the text to show.
    Obviously this is very annoying, and Im hoping there is an easy solution. Im thinking it must involve re-linking the data in the InDesign file, and I must be doing something wrong not to be able to get it to keep the changes I've made and the format it is in so that I do not have to the "red dot" fix every day.
    Hopefully Ive explained this well enough.. Im dying for some help :)
    Thanks in advance
    J

    Im not sure I want it to not keep the link..
    I'll explain what Im using InDesign for, maybe it will help..
    I use it to update daily information (numbers/data) for a publication. I update and save all of the info in the Excel files that contain the data, and then I use InDesign to place all of the data together in a file (which I then turn into a PDF).
    All of the other data that Im pulling into the InDesign file from the same excel file do not go all screwy and give me red dots, only the one box of info that Ive had to add a line of data to.. and like I say, now it updates and pulls into InDesign as different font size and red dots.
    If I turn of that link option like you say, will my daily info still update and pull into the InDesign file?
    Again, thanks for your help.
    J

  • Output Device and Format issues in Background?

    Hi, all:
    I have a issue. when I run the job as the background. whatever I choose which Output Device and Output Format. after finishing job.  double click on the spool number. the Output Device is always LP01. Format is X_PAPER.
    Anybody knows what happend in SAP.
    Thanks in advance.

    Hi Yunfa Zhang,
    what is defined as ABAP program in the Job's step? Maybe it ignores whatever you specify and reads the LP01 from somwwhere else, i.e. your user settings.
    Regards,
    Clemens

  • Date format issue in Excel

    Hi,
    I have a date in XML file which is in the format of YYYY-MM-DD. When i output to excel, the date needs to come as MM/DD/YYYY. I am able to format the dates as MM/DD/YYYY, but if there is a 0 in the Month or Date, it is coming as M and D instead of MM or DD.
    Eg: 2008-11-01 comes as 11/1/2008 in the excel, want it to come as 11/01/2008
    Any solution for this? I tried using subst-ringing the parts and lpad-ing with 0s, but the zeroes get stripped when you come to excel. I am not able to lpad with space, since the field is inexplicably, automatically changing to number type and gives "Cannot convert to number" error.

    Hi ,
    Its a strange requirement but still lookig for answers..
    1) Tried the User Profile and it the file is being generated in the format the use has.  However
         if we open the excel file ( Right click and say format Cells---->In this case it shows GENERAL).....The user wants the cell
         always in the date format so that can have sort and other macros...
    To Reiterate................
    1) We have to generate the Files in the date format that the user profiel has and also the excel file should show the date cells in date format but not general....

  • SVN Source - File permissons and format issues

    Hi,
    I checked out source from svn repository and tried to build, permissions on files are wrong, is it SVN doing or repository have files with that permission?
    I also noticed, tomcat sh files have again wrong permission (no execute or read) and also in dos file-format, which means it would throw ": bad interpreter: No such file or directory" error, if executed on *nix boxes. I have to convert those using dos2unix..
    BTW! things failed even when I was trying using sudo...

    On Thursday 28 Feb 2008, Abdul Qabiz wrote:
    > Hi,
    I checked out source from svn repository and tried to build,
    > permissions on files are wrong, is it SVN doing or repository have files
    > with that permission?
    Wrong in what way ? On which files ? On what O/S ? What SVN revision ?
    > means it would throw ": bad interpreter: No such file or directory" error,
    > if executed on *nix boxes. I have to convert those using dos2unix..
    I had no such problems in my SuSE or Unbuntu Linux boxes.
    Tom Chiverton, stupid web forum
    This email is sent for and on behalf of Halliwells LLP.
    Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority.
    CONFIDENTIALITY
    This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.
    For more information about Halliwells LLP visit www.halliwells.com.

  • Blacks Dots at top of webpage and formating issue with table

    I have a basic page with a table layout, spry horizontal menu, spry accordion menu and a bit of Jquery mixed in for the content.
    In Safari and Chrome two black dots appear at the top of the page. I'm not sure where these are coming from. Thoughts?
    In Firefox and IE the two dots do not apprear.
    Also the spry horizontal menu bar is spupposed to be closer to the "logo" image at the top of the page. Every browser adds space between that image and the spry menu bar.
    Here's a link to the test site.
    http://www.treehousearch.com/TH-test/Boxwood.html
    I'm using CS4.
    On Win7 64bit.
    thanks in advance

    The dots are as a result of <li> class="links" id="projects"> (see below). Are they supposed to be there and whats happened to the <ul> tags which should surround them?
    <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a class="MenuBarItemSubmenu" href="#">PORTFOLIO</a>
            <ul>
              <li><a href="#">ARCHITECTURE</a></li>
              <li><a href="#">LANDSCAPE ARCHITECTURE</a></li>
            </ul>
          </li>
          <li><a href="#">ABOUT US</a></li>
          <li><a href="#">CONTACT US</a></li>
        </ul></td>
    LOOK HERE >>>>>>>>>>>>>
        <li class="links" id="projects">
        <li></li><td width="1" height="20"></li>
    To get rid of the dots add the below css to your css stylesheet.
    #projects {
    list-style: none;
    As Snake has pointed out the code is corrupt anyway - you have stray <td> tag in the middle of the <li> tags so you need to clean that section of your code up a bit.

  • Pls help:sending oracle reports with desformat=spreadsheet to email

    Is there a way to send the reports with desformat=spreadheet to email(destype=mail). I tried to execute the commandline with destype=mail desname=[email protected] desformat=spreadsheet but I am getting a report with html type attachment. How could I make it xls(excel) instead of html

    When having lots of repeating frames and fields placed in a complex pattern, the Oracle Reports doesn't know how to place them in the .xls cells.
    You ought to have a second layout for the report (containing the same data) that would print when the desformat = spreadsheet and would be be rather simple in comparison to the one that would print when desformat=pdf/html.
    In case you have several repeating frames it is best to have all the fields in those frames placed and vertically aligned on the same row in the layout, from left to right. This should give a reasonable output.

  • UML Class diagrams: Printing and formatting

    I really like the UML capabilities of NetBeans 5.5. In particular, I like the ability to create a "centered" dependency class diagram by right-clicking on a class and selecting "Generate Dependency Diagram."
    However, I am having trouble with some basic printing and formatting issues. I am hoping that I'm just being stupid, but I haven't been able to find documentation on how to fix this. I am using Red Hat Enterprise (3.4.6-3).
    I recently reverse engineered an 800 class project, and it didn't take too long. Less than a minute, probably.
    1. Can't get a landscape printout. Fiddle with Page Setup and Print menu items, set to landscape, but almost always get a portrait mode printout. Why?
    2. The arrowheads are frightfully small. How do you make them bigger?
    3. How can you globally set a preference to only show public attributes and operations for all classes?
    Thanks for the help.
    Dave Godbey

    Good to hear your feedback. Thanks.
    #1. there's a known bug on printing to landscape mode. However, the following workaround should print you a landscape diagram.
    - from the diagram window toolbar, click on the Print Preview button
    - from the Print Preview dialog, click on Print Setup
    - from the Print Setup dialog, click on Page Setup at the bottom left
    - from the Page Setup dialog, toggle the Landscape orientation radio button
    - press the OK button on the Page Setup and Print Setup dialogs: Your print preview should now be displayed in landscape orientation
    - now click on the Print button from the Print Preview dialog to print
    #2. I believe your diagram must be big so that the arrowheads are displayed small. Currently I don't see a way to make them bigger. Sorry for the inconvenience. I can file an enhancement on this for you or you can file one for yourself too thru the following URL.
    http://uml.netbeans.org/issues/enter_bug.cgi?component=uml
    #3. As for global preference to show only specific attributes or operations, there's an enhancement bug already, but the current version of the tool doesn't have this preference setting.

  • Displaying image in report DESFORMAT ='SPREADSHEET' (Excel)

    Hi,
    I want to display a logo in Excel report. I have created one formula column with function
    function CF_4Formula return Char is
    begin
    return('/report/xls/gelogo_new.bmp');
    end;
    I have placed the image in the above path. When I execute the report image is not appearing in it.
    What could be the issue?
    Below is the code in After Parameter form Trigger.
    :DESTYPE = 'FILE'
    :DESNAME := '/report/stg/'||:p_report_name||'_'||:p_calendar_month||:p_calendar_year||'.xls';
    :DESFORMAT: 'SPREADSHEET'
    Also please tell me how to set/see the default directory of REPORTS_PATH in Unix server.
    Can anyone please help me out with this issue.
    Thanks,
    Kishore.

    Thanks for the response. Sadly yes, the path is correct. I've
    tried both the relative path and the full path (e.g.
    ../images/theimage.jpg and
    http://mysite.com/images/theimage.jpg)
    . Putting either address into a browser will return the correct
    image if I'm in the right location.
    So, I can get this expression: IIf(query.image NEQ "",
    DE("../images/smProds/" & query.image), DE("None")) to display
    the correct path, but what I really need is the image located at
    that spot to display in the report. What is happening is that
    report builder is returning the string, but not the image. When I
    looked at the tutorial it implied that the image would be displayed
    rather than the string.
    Is there something in report builder that determines whether
    the actual image is displayed? A property setting that I'm missing?
    Or maybe the expression iteself is wrong i.e. it is doing exactly
    what it should (display the string) and a different expression
    format is required to get the image iteself. For example, flagging
    some text as a hyperlink to the image? Not sure how you would pass
    the image name value in that case.
    Appreciate your suggestions.

  • No Excel Controls for desformat=Spreadsheet report output

    I created a report in 10g and ran the report from Reports Server with desformat=sppreasheet option. But, the spreadsheet is not having any excel controls(menu items, toolbar etc) like how we see a regular Excel spreadsheet. Can some one help me if there is any setting to make the Excel controls appear in o/p generated via reports server.
    Thank you.

    When we select the SPREADSHEET Option in 10g, either I will have the output generated as Free Flow Text in the Internaet Explorer(Where you right click and take Export to Excel) or the Report will be generated in the Excel Format(Specify the desname=<Filename>.xls with no Grid Lines...

  • EXCEL FOR MAC 2011 Date Format Issue

    Excel for Mac 2011 14.1.0  on iMac OSX 10.7.5.  I see no forum category for Microsoft Office for Mac so just chose iMac. Checked Microsoft site first with no success.
    PROBLEM:
    In new spreadsheet I selected one column and formatted to date format. 
    It was working fine.  Then after I'd been doing some editing and having issues, I closed the file then opened it again.
    The cells/column I'd formatted for dates was showing the date as strange numbers.  Like this:  Instead of 9/12 it shows 41894.
    Even though the individual as well as column cell format is still  "Date" with example style of "3/14" selected, it will not work.
    I cannot find a way to "Clear Formatting" either -- only Clear Contents.
    However, when I cut and paste the cells to another worksheet the date is fine -- but I've lost all my formatting and don't want to start over.  Besides, I need to know what is causing the problem.
    HELP!!  Is this a bug?

    Granny,
    You will probably find help on the Microsoft Office website. Excel isn't covered here.
    Jerry

  • Export to PDF, Excel, Excel (Data Only) formatting issues

    Hi Community
    I have a report that consists of 5 subreports. Out of the 5 subreports, 3 of them have a similar format whereas the other 2 are different.
    Iu2019m currently facing an issue whereby the exports to excel works fine, but excel (data only) has some alignment issues(i.e. the data appears below the correct columns). However, when the report is tweaked to make export to excel (data only) appear correctly, the export to excel had its data shifted out of alignment. There is no impact to pdf exporting at the moment.
    Are there any people who are facing similar issues? Is there any resolution or workaround? I appreciate any help. Thanks.
    FYI, the version of crystal reports is Crystal reports is Crystal reports 2008 and we are using the crystal report viewer interface to export into excel and pdf formats. The excel version is 2007.
    Regards

    DW, i've also run into issues with multiple sub reports. I resolved it by putting each sub report into it's own section, and then suppressing the sub report (Note, if ur trying to export subreport data to excel, I don't think its going to work. You'd need to create shared variables and then bring those sub report shared variables into your main report).
    Once you bring your shared variables into the main report, suppress your sub reports, and then export to excel, you're still left with a dataset that has missing rows. This is ok. You can solve it easily within the excel file itself by sorting the data on a unique ID like Account #. This removes the extra rows.
    Not the most elegant solution, but it works.

Maybe you are looking for