Format-number not working for me with preview to excel

Hi,
I have a report with 8 fields across within a table.
Each field is formatted in the same way, with format-number like this (there are 8):
<?format-number:total-year-remaining;’PT999G999D99’?>
(that's the type-your-own form-field help text in the word template).
When I preview the PDF, the data looks fine (8 cells shown below):
.00 (.10) (.10) .00 (.50) (.50) (.60) (.60)
But when previewing to Excel, there are two problems:
1. Only the data in the last field (the 8th one) is formatted with the oracle mask:
(.60)
But upon closer inspection, there are two blank spaces after the number in that cell, and the value itself is treated like a string, e.g. '(.60) '. In fact if I ask excel to format this cell like a number with currency and two decimal places, in won't do it because of trailing spaces. Its just not a number to excel at that point. Probably the ('s don't help things either.
2. The data in the first seven fields in excel are numeric, and I can format them in excel as currency, but I wanted XMLP to handle this, not the excel user.
The bottom line is this: I want both PDF and excel output. I want both forms to have the fomat mask applied correctly. And I want excel to treat each cell as a number. Is this possible?
Thanks
Adam

Anatoli,
Hello!
I don't know if my situation is the same as yours, but after a lot of head-scratching, forum searching and template rebuilding, I finally figured out my problem.
I had one column that no matter what I did kept appearing in Excel as text. I'd format it to Number in Excel and nothing. When trying to sum the column, Excel would not recognize any of the values as numbers. I even did the reformatting on the XML Word template to number, and the currency format that Adam mentions. Still no go. The $ and ',' appeared, but column still formatted as string.
I just finally noticed Adam's mention of the 2 extra spaces at the end of the numbers and sure enough mine was doing the same thing. Take out the 2 spaces and voila! Number!
Every time I redid my template in Word (07 and 03), I used the wizard. (Add-ins>Insert>Table>Wizard) walked through the steps, not really changing anything. Then I would preview and the spaces would be there. The column that I was having problems with was the last column of the table, which would get the text 'end G_ASSIGNED_CC' inserted in after the field name - separated by 2 spaces. Once I took out these two spaces, so the column now shows 'COSTend G_ASSIGNED_CC', it worked fine in Excel - all numbers.
Hope that helps someone out there as I was having a heck of a time finding anything (solutions anyway) on this.
Thanks,
Janel

Similar Messages

  • Caps lock with number not working for main password

    hello when I start my macbook pro I have a login with numbers in it so I use the caps lock to write it but it doesn't work I have to use shift instead!!! when I use the caps lock for writing mail or anything numbers work fine with it!!! Anyone have an idea??
    thk  sam

    If you used the Shift key to originally enter your password with the number keys the Caps Lock key does NOT do the same thing as Shift for the number keys.
    This is Shift and numbers,
    #^*)$@&
    This is Caps LOCK WITH NUMBER KEYS,
    1234455667788999
    As you see the Caps Lock only works for typing LETTERS Not Numbers or any other symbol found on the keyboard.
    To be able to use all the upper case symbols you need to use the Shift key.><?":{}+_)(*&^%$#@!~
    Even if the CAPS LOCK IS ON. ,./';\][=-0987654321`

  • Assign Source of supply is not working for contract with material group

    Dear Experts,
    I have searched all the threads and gone through before posting my query. So i would ask moderators to go through the thread properly before rejecting this.
    We have value contracts with respect to a particular material group without material and with item category W in the contract item, Please note that for the materials with this material group, the source determination is not set and source list is also not maintained.
    When we create PR for the material with this contract, and when we click on assign source of supply contracts used to get popped up, but recently from few days, when we click on assign source of supply we are getting an error " no source found for this item ".
    Can anybody help on this.
    Regards

    @ Biju,
    As mentioned earlier, we are not creating PR with reference to contract.
    first we are creating contract with item category W (material group), without material and plant details.
    we create PR with or without material with account assignment K and with the material group in the transaction ME51N, and after inputting all the fields, we click on assign source of supply, it was proposing the existing contracts with respect to material group earlier, but it is not happening for particular material group(it is working for all other material groups)
    Hope it is clear.
    @ Dev Patra,
    we are using DIEN-Service material types and we assign that particular material group to only service material type.
    we have not ticked, source list in the material master, we donot have any source list for the materials under that material group.( please check the note 457110- question number 14.)
    Regards

  • Design Standard CS 5.5 serial number not working for Photoshop

    I am trying to install the Design Standard CS 5.5 but am having trouble with Photoshop.  All of the programs installed and open correctly except for Photoshop.  When I try to launch it, the Adobe Application Manager comes up saying that the serial number is "not valid for this product."  The serial seemed to work during the install and both InDesign and Illustrator launch without any problems.  I have also tryed uninstalling and then reinstalling Photoshop, but I still have the same problem.  I am running Mac OS X 10.6.8.

    Are you definitely installing Design Premium CS5, not a similar sounding Creative Suite? And not CS5.5?

  • CR not working for me with VS2010

    OK with VS2008 I had no problem..  But with VS2010 I can't get Crystal Reports working at all...
    I have installed
    - VS 2010 Sp1
    - Full Crystal Reports 2008 Sp3
    - CRforVS_13_0_1
    - CRforVS_redist_13_0_1 (for 32bit and 64bit)
    I have tried unistalling everything including VS and rebuilding my machine but that didn't work....
    What happens is when I create a new project and add a crystal report (or try to use any existing ones) the code behind files are blank and I have the error as below...
    Error     1     Custom tool error: "Code generator 'ReportCodeGenerator' failed.  Exception stack = CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: The Report Application Server failed
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)
       at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath, String resourceNamespace)
       at CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)"     c:\users\joele\documents\visual studio 2010\Projects\WindowsFormsApplication1\WindowsFormsApplication1\CrystalReport1.rpt     1     1     WindowsFormsApplication1
    Can someone help with this please?
    Edited by: jeisner on Sep 13, 2011 9:14 AM

    Yes as per list I have CR for VS installed   "- CRforVS_13_0_1"
    I can modify CR reports fine within the designer but get that error on build and the code behind files are not generated..
    As to other points...
    "No C:\temp folder" - I have one
    "x86 or x64 only, don't use AnyCPU" - Tried all three and same issue
    "Framework for your project must be set to Full version and not the Client." - It is
    "If you are using ADO.NET ... ... " - I am not, I can start a fresh project and do nothing else other than add a crystal report and it does not work..
    Thanks for the suggestions, any more possible  "gotcha's" with this version of crystal reports???
    Edited by: jeisner on Sep 14, 2011 2:07 AM

  • Runtime.exec does not work for commands with lengthy outputs

    I need to use Runtime.exec to run some custom commands on a Unix box. I have been doing this for quite some time now and had begun to feel comfortable when recently I started facing a problem. The thing is, whenever there is a command which prints a lot of data on to the console, the program is not able to exit from the waitFor method. Is there some thing that can be done about this?
    Following is a part of the code I use:
    Runtime rt = Runtime.getRuntime();
    Process p = rt.exec (command);
    System.out.println ("Got the process");
    int exitValue = p.waitFor();
    System.out.println ("Exit value: " + exitValue);When the output of the "command" is lengthy, it hangs after printing "Got the process".
    PS: By lengthy output, I mean that the command results in printing lines to the console which might be more than 100 in number. Say, something like what "ls -R /" would do in Unix / Linux.

    From java.lang.Process API doc:
    The Runtime.exec methods may not work well for special processes on certain native platforms, such as native windowing processes, daemon processes, Win16/DOS processes on Microsoft Windows, or shell scripts. The created subprocess does not have its own terminal or console. All its standard io (i.e. stdin, stdout, stderr) operations will be redirected to the parent process through three streams (Process.getOutputStream(), Process.getInputStream(), Process.getErrorStream()). The parent process uses these streams to feed input to and get output from the subprocess. Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, and even deadlock.
    So you need to consume the process' output. Check the StreamGobbler example from this article.
    Hope it helps.

  • Format number not working correctly in XML Publisher Report

    Hi,
    I have requirement to print sum(column1) with number format with commas on the header.
    I tried giving <?format-number:sum(//CURRENT_COST);'99G990D00'?> this formula is sum current cost column and displaying as 140.253.123.00 but i want to display the same as 140,253,123.00
    i even tried <?xdoxslt:xdo_format_number_l(sum(CURRENT_COST),'999G999D99','EN-us')?> but its even giving the same result as  140.253.123.00
    Please let me know if anyone had the same issue.
    Thanks.

    Hi,
    You can't mix the XMLP extended functions (ie anything prefixed with xdofx) with xsl functions (see user guide - Extended SQL and XSL Functions).
    You could look at using the Choose statement or doing a set of IF statements
    ie <?if:CURRENCY='JPY'?>format...<?end if?><?if:CURRENCY...<?end if?>
    If you go with the multiple IF statements you will probably need to use <?if@inlines:CURRENCY='JPY'?> otherwise you will get carriage returns (see IF statements in boilerplate text in the user guide).
    Thanks
    Paul

  • Serial Number not working for a re-install

    I am still trying on this one... I needed to replace my hard Drive. I have been trying to re-install Keynote on my new hard drive but the Installer window won't recognize the Serial Number. It will allow me to open old Keynotes but not save any edits. Any help is appreciated. Thanks!

    Error "The serial number is not valid for this product" | Creative Suite

  • Serial number not working for cs3

    I bought an imac from apple in 2008 and I also purchased CS3 Design Premium. I have all the original cd's and it will not accept the serial number to install or re install.
    HELP

    Error "The serial number is not valid for this product" | Creative Suite

  • Probe is not working for class with variable refnum

    I have a class whose purpose is to send data through a network stream. Its private data consists of an array of typedef clusters and a single variable refnum of the network stream writer. If I try to probe a wire whose data type is this class, it simply states "No Debug Info" and displays the private data grayed out without any data in it. The probes do not work in member VIs or non-member VIs. But if I remove the variable refnum, then the probe works fine and I can see the array of typedefs. If I unbundle the class and probe the array and refnum then the probes display the data correctly. 
    Why is the variable refnum in the private data breaking the class's probe? Is there a workaround other than unbundling and probing?

    Hello Arthur,
    Would you be able to attach the simplest version of a program that has this probe issue? This will help me troubleshoot a lot better. 
    Ben D.
    Applications Engineer
    National Instruments

  • Serial Number Not working for XSAN. PLEASE HELP!

    When I purchased the XSAN software it was version 1.0 well I installed the software on all the machines and then did the updates to XSAN 1.2, but when I go to add clients serial numbers in XSAN ADMIN 1.2 it does the Metadata Controller (which is running the XSAN ADMIN program) just fine I can see the clients but when I enter my password it says "Valid Serial Number with No Expiration Date" so I click OK. Now it has a green light next to it, but when I click Save Settings it goes back to orange and give me the error "Error while writing settings (Invalid Serial Number)". Any help would be much appreciated. Thanks.
    Powerbook G4   Mac OS X (10.4.2)  

    When I had an issue similar to yours, it was because I had typed the serial number in capital letters (just like the license showed) but it had to be in lower case. When I switched them it worked just fine.

  • Why is the serial number not working for my premiere elements 12?

    Can anyone help me with why my serial number is invalid

    You might want to contact Adobe directly (this is a user to user help forum, not Adobe support)
    Select a reason, then click I STILL NEED HELP to activate Premiere Elements chat
    -http://helpx.adobe.com/contact.html?product=premiere-elements&topic=activating-my-product- or-serial-number-issues

  • ICal Server external Email Invitations Not working for names with umlauts!!

    Hi,
    I was testing external email invitations with iCal Server on Lion Server and encountered that if a Name that can Be resolved via iPhone or mac addressbook or even the sending iCal Account contains an umlaut something like this show up in iCal Server error log:
    2011-09-26 17:01:18+0200 [-] [mailgateway] 2011-09-26 17:01:18+0200 [-] [twext.web2.server#error] [Failure instance: Traceback: <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 90: ordinal not in range(128)
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:388:errback
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:455:_startRunCallbacks
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:542:_runCallbacks
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1076:gotResult
    2011-09-26 17:01:18+0200 [-] [mailgateway]      --- <exception caught here> ---
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1018:_inlineCallbacks
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/python/failure.py:350:throwExceptionIntoGenerator
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /usr/share/caldavd/lib/python/twistedcaldav/resource.py:310:renderHTTP
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1018:_inlineCallbacks
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/python/failure.py:350:throwExceptionIntoGenerator
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /usr/share/caldavd/lib/python/twext/web2/static.py:127:renderHTTP
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1018:_inlineCallbacks
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/python/failure.py:350:throwExceptionIntoGenerator
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /usr/share/caldavd/lib/python/twext/web2/resource.py:109:renderHTTP
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1020:_inlineCallbacks
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /usr/share/caldavd/lib/python/twistedcaldav/mail.py:334:http_POST
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /usr/share/caldavd/lib/python/twistedcaldav/mail.py:958:outbound
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /usr/share/caldavd/lib/python/twistedcaldav/mail.py:1199:generateEmail
    2011-09-26 17:01:18+0200 [-] [mailgateway]      ]
    2011-09-26 17:01:18+0200 [-] [caldav-1]  [AuthorizedHTTPGetter,client] [twistedcaldav.scheduling.imip#error] Could not do server-to-imip request : <twistedcaldav.scheduling.imip.ScheduleViaIMip object at 0x103c65ed0> 500 Internal Server Error
    2011-09-26 17:01:18+0200 [-] [caldav-1]  [AuthorizedHTTPGetter,client] [twistedcaldav.scheduling.scheduler.ScheduleResponseQueue#error] Error during PUT for mailto:someemailaddress@yourdomain: iMIP request failed
    And No Email is send!
    If changing the Umlaut ü to something like ue in the Sender or Receiver Name everything is alright!
    Thank you Apple for obviously Not testing Lion Server for international use :-/
    Maybe this help someone else who is using umlauts with iCal Server external Email invitations
    Regards
    Eldrik

    Hello Daryn,
    Thinks for commenting. I am very upset that Apple just said "No" when I asked for this to be fixed. There appears to be no way to submit this as an official bug that keeps ical from running.
    Apple actually had me reinstall my whole server and the issue was still there and then they just said "Oh, well I will email someone about it.".
    This is the first time Apple has stunk it up in my books. This is bad support for Server.
    Brad

  • Substitute Variables VI does not work for names with underbars. What can I do?

    For example, I want to change "p_0=p_1+p_2;" into "x0=x1+x2;". However the VI does not do it and returns just the same formula. Is this the specification? I enclosed a sample VI to show it.
    Attachments:
    SubTest.vi ‏44 KB

    You problem is in "Find String Identifier" (a subVI of "Substitue Variables") - it searches your variables and tries to split any other characters out of it (it only accepts alphanumeric and spaces as variable names, not special characters - hence your "p_0" becomes "p", and then "p" is not found in your substitution rules, so the original is piped through instead.
    Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.

  • Custom date format is not working for me

    I have a bunch of dates imported from another spread sheet. They look like this:
    February 04, 2014 at 09:24AM
    Numbers 3.2 sees this as Text, so I went about making a custom date format. It looks like this:
    However, I cannot make Numbers see it as a date. It keeps saying it is a string. If I select the cell containing the date and set the format to "My Custom Format", nothing happens - at all.
    What am I doing wrong?
    Thanks in advance,
    Michael

    Hi Michael,
    The Custom format you designed will display a normal Dave and Time value in the way your import presents it. That's not what you want though.
    To comvert the imported format to a regular Numbers format, use a conversion expression in a new column.
    Assuming your Imported Date is in Column B, Insert a Column and use this expression:
    =DATEVALUE(LEFT(B, LEN(B)−11))+TIMEVALUE(RIGHT(B, 7)
    Format your new column to the way you want to see Date/Time in your document.
    Jerry

Maybe you are looking for

  • Most efficient way to work with large projects

    I have just purchased Premier elements and need to produce a two hour edited project. Would the best way be to break the task into a few smaller projects and join them up after editing or just to create on long project? Any advice please

  • Bold text in linux... And formatting output in linux console

    Hello everyone, I was wondering if there is a library of some sort that allows you to print text to the user but in bold or coloured or something like that? Thanks, Gary.

  • How to know the program attached to each button ?

    Hello, When I press on various buttons in SAP various ABAP programs/functions are launched/executed. How can I know the name of the program/functions that is attached to these buttons? I want to debug through these programs/functions because they hav

  • Create a database field in Repetitive Area

    Hi, I generated a report from query, but I can't insert a database field in a Repetitive Area using PLD. I've tried inserted a Text Field and changed to Database field, but there is nothing shown. does anyone can help? Thanks Kim

  • Can't send emails after Mountain Lion update

    After I updated from Lion to Mountain Lion, I could receive messages from my service provider's account, but I could not send messages.  Mail Connection Doctor showed the information "Could not connect to SMTP server" for both SMTP servers, and when