SpreadsheetFormatColumns no work that goes wrong?
Server: CF10
Platform: Windows and Linux (Win in windows DEV in PROD)
I'm so generate this impressive excel file for a client but to get the date fields to behave properly. Everything seems to work perfectly, but when I send data to excel to be generated, excel treats it as any text and when it filed gets sorted it manages it as such.
More information: the column I'm trying to set up is called Date of arrival it is happen to mm/dd/yyyy format (I tried to format is d/m/YY, but when it happens in the sheet that does not work as well)
I also included a picture of the sorted row. It don't think it's valid, but it is not just sort in chronological order.
Code:
("< cfset expandPath("./TDYData_(#DateFormat(now(),'mmddyy')#).xls = filename ") >
<! - make an object worksheet - >
< cfset s = spreadsheetNew ("TDYData") >
<!--> Add a header line
< cfset
<!--> format header
< cfset spreadsheetFormatRow (s,
{
"BOLD" = true,
fgColor = "lemon_chiffon."
FontSize = 10
},
(1) >
<!--> append query
< cfset spreadsheetAddRows (s, myExcel) >
< cfset SpreadSheetAddFreezePane (s, 0, 1) >
< cfset spreadsheetFormatColumn (s, {dataformat = "d/m/yy"}, 17) / >
< cfset spreadsheetFormatColumn (s, {align = "right"}, 16) / >
< name cfheader = "content-disposition" value = "attachment; filename = TDY_Data_ (#DateFormat (now (), 'MMDDYY') #) .xls ">"
< cfcontent type = "application/msexcel" variable = "#spreadsheetReadBinary (s)" # "reset ="true">"
Any ideas?
Thank you
In my view, that the question is because you do not use SpreadsheetSetCellValue() to enter data. He will respect your dataFormat.
It's kind of a pain to enter manually (via cfoutput and cfloop) data in the cells, but it gives you more granular control over things like formatting and others.
In addition, if you use integers (integers only) in all cells, it will appear as though that is inserted as text, too. You will need the dataformat, insert data and position the dataformat, once again. Weird, I know, but it works.
HTH,
^_^
Tags: ColdFusion
Similar Questions
-
HelloI created a following materialized view
CREATE MATERIALIZED VIEW PUBLIC_ALL_ACTIVE_EMPLOYEES_MV
Full REFRESH
Start by sysdate next sysdate + interval '30' minute
in select * from PUBLIC_ALL_ACTIVE_EMPLOYEES
Select sysdate, mview_name, last_refresh_date of
from user_mviews where mview_name ='PUBLIC_ALL_ACTIVE_EMPLOYEES_MV'
1 29/09/2013-01:57:19 a PUBLIC_ALL_ACTIVE_EMPLOYEES_MV 29/09/2013-01:34:32 a
Select * of all_refresh;
1 AAGOSI PUBLIC_ALL_ACTIVE_EMPLOYEES_MV 60 Y Y N 1497 29/09/2013-01:44:03 a sysdate + interval minute ' 30 "N 1 0 0"
Why next date column gives a time back
SELECT * FROM dba_jobs;
8 1497 AAGOSI AAGOSI AAGOSI 29/09/2013-01:44:03 13:44:03 a 0 N sysdate + interval '30' minute dbms_refresh.refresh ('"AAGOSI".) "PUBLIC_ALL_ACTIVE_EMPLOYEES_MV" '); = "AMERICAN" NLS_TERRITORY NLS_LANGUAGE = 'AMERICA' NLS_CURRENCY = ' $' NLS_ISO_CURRENCY = 'AMERICA' NLS_NUMERIC_CHARACTERS ='.,' NLS_DATE_FORMAT = "DD-MON-RR' NLS_DATE_LANGUAGE ="AMERICAN"NLS_SORT = 0102000200000000 'BINARY' 0
Why next date gives time here too
Thank you
Tony
Hello
Yes the problem was developer tool PL/SQL, which is the old Version of the database.
He is very good with SQL * MORE
Thank you
Tony
-
Cannot open the e-mail. I can connect on the MSN home page and when I right-click the outlook icon it shows the e-mail Inbox, but cannot access e-mail. I just get this error
"Something going wrong on a server that contains information about your user account and the mailbox is not found."
This error is on the MS and they are aware and working on a fix. Have you tried connecting mail.live.com directly using your e-mail address and the password?
For later use, you would get more (and larger) response if you posted this in the Outlook.com (e-mail) section, where are the experts.
-
are there any current HP printers that use the HP 02 print cartridges? Old Photosmart C6180 printer goes wrong and have a lot of cartridges.
The Site of HP Pageyield lists the following printers compatible with 02 cartridges:
- " HP Photosmart 8200 printer
- " Printer HP Photosmart D7100
- " Printer HP Photosmart D7200
- " Printer HP Photosmart D7300
- " Printer HP Photosmart D7400
- " All-in-one HP Photosmart 3100 Series
- " HP Photosmart 3200 all-in-one series
- " All-in-one HP Photosmart 3300 series
- " HP Photosmart C5100 all-in-one series
- " HP Photosmart C6100 all-in-one series
- " HP Photosmart C6200 all-in-one series
- " HP Photosmart C7100 all-in-one series
- " HP Photosmart C7200 all-in-One series
- " HP Photosmart C8100 all-in-one series
I do not believe there are all the models currently available that use cartridge 02.
I heard that HP has (had?) a trade-in program for its intact packaging expired cartridges. See this post for a suggestion.
-
I work in a sensitive project where I have a specific slide which will not move forward. I created a click box that goes to the next slide, and it remains in the same blade if it is in a loop. Very strange. What might be missing?
You can check the Advanced Interaction Panel? You have a note attached to the interactive objects in the simulation? If so, check the desired option Quiz, more specific preferences.
-
I downloaded the trial version of adobe acrobat dc and need to connect now. But he said that the computer is offline or the clock goes wrong, what can I do?
Hello
Please see the steps mentioned in this document KB sign of troubleshooting, activation or connection errors. CS5.5 and later, Acrobat DC.
Kind regards
Nicos
-
Portable drive device goes wrong
Alerts this disk device goes wrong on my laptop of HP 2000 and said that I have to back up my files or I won't lose them. Indicates the name of the drive is Hitachi HTS543232A7A384 SATA peripheral Disk Volume: C:. D:\ I contacted HP support and they said, it must be replaced. I don't know much about computers, so I have a lot of questions. Is this drive the 'hard' for my PC? About how much how much it costs to get it repaired? It would be cheaper to get a new PC? (paid $300 for this PC) What would make the disc go bad after only a year and a half? It was the result of a virus? It hurt more than if I continue to use my PC t that I tried to use my Norton 360 to backup my files, but I don't know what I'm doing. Norton Save things like photos and emails or it records only the things that make the PC work?
Very good questions. Yes, it is commonly called the 'hard drive '. An exact replacement for your player is $ 43 on amazon.com:
http://www.Amazon.com/Travelstar-Z5K320-HTS543232A7A384-internal-drive/DP/B00555EG7S
For a few dollars more, you can get a larger capacity drive which is faster and improve performance. Let us know if you are interested by this.
This shows how to replace the drive.
http://www.YouTube.com/watch?v=Yxs3DgRExaU
Norton 360 tutorial:
http://www.YouTube.com/watch?v=QHVDg1dgksY
You choose what you want to backup. You did a restore DVD when the laptop is new? If this isn't the case, maybe you can always use HP Recovery in the program menu. This will be the easiest way for you to get the software on the new drive.
Hard drives are very delicate and mysterious and can go bad for no apparent reason, but it is an urban legend that a virus can make a record hard to spoil. That's why we need to save, save, save. Never trust of important data on a single hard drive.
If it's 'the Answer' please click on 'Accept as Solution' to help others find it.
-
I really don't see what goes wrong?
Hello
been working on this site and really really can't know what ive done wrong. to consult http://treesbeastsandhairythings.com/test there seems to be a large gap inbetween pictures and I just do not understand why or how his arrival? Ive done the image at the bottom half of the table a background because I put the text and other images ontop.
If anyone can see where im going wrong, it would be much apreciated!
Thank you very much
Ed
I'm afraid of the way in which the page is put together will cause you more problems on the track.
The gap is due to which, it seems, combination of things: a dog wandering
attribute just before to start your nav images, then a line break
down to the next line. However, as soon as you remove the offending attributes, your page breaks.What you should do (because you use a tabular presentation), 4 separate tables is implemented.
First table will be your header image (with a single cell table)
A table with the exact number of cells to organize each of your nav buttons
Follows that with a table (a cell if you have only one content area and no sidebar) to organize your content
and a final table to hold your footer information.
The way in which the provision is now, as soon as you start adding text in this central area guests will collapse even further.
You have not gone too far in the development of this page, so I would really start before start all other pages, to ensure that it works properly before going any further.
Hope this helps :-)
--
Nadia
Adobe® Expert community: Dreamweaver
--------------------------------------------------
Unique templates CSS | Tutorials | SEO articles
http://www.DreamweaverResources.com
--------------------------------------------------
Book: Ultimate CSS reference
http://www.SitePoint.com/launch/005dfd4/3/133
---------------------------------------------------
-
Update of the Aurora is a failure and I can't download the last Aurora on the firefox site. The url provided points http://www.mozilla.org/en-US/firefox/channel/#aurora to https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora/firefox-26.0a2.en-US.mac.dmg and it seems to hang (it seems strange that it is https and ftp...)
Have you tried to close and restart Aurora?
If something goes wrong with the updater, so it can get stuck in the connection, especially if a part has been already downloaded (updates\0 folder contains a update.mar file) and in such a case, you may need to delete the folder updates\0 to restart the download of the update of Firefox.
-
Satellite A30 - 614L: Sound goes wrong and stops completely
After some time using laptop computer, his first goes wrong on and outside and after awhile stops completely. When it really starts to go wrong is quite unpredictable.
Sometimes after 10 min, but also sometimes after hours. I have tried to re - install the driver the most recent, but which did not help. When the noise was gone, the only cure is a reboot.
Who knows how to solve this problem?
Hello
I put t know why it happens but I read several post in this forum and it seems that this problem has disappeared after completely new recovery with the delivered Toshiba Recovery CD.
You should also check it. -
After the update to el Capitan my iMac will not be asleep. I put it to sleep and turn off the mouse and keyboard that goes with it, and 5-10 minutes later, he wakes up on his own. Now, I have to stop it after use and each time only. The Major pain. Any help would be greatly appreciated.
Please test after taking each of the steps that you have already tried:
Step 1
Take all of the measures suggested in this support article, including those under the title "If the previous steps do not work." It is the starting point for a new effort to solve the problem.
Note that, as stated in the article, the computer will not sleep, if some sharing services are enabled. In the menu bar, select
▹ System Preferences... ▹ Sharing
Disable all sharing services.
Step 2
If sharing music iTunes home sharing is enabled, disable it or quit iTunes. Do the same with third-party applications that have a similar feature.
Step 3
Select
▹ System Preferences... ▹ Accessibility ▹ Speakable Items: Off
Step 4
Select
▹ System Preferences... ▹ ▹ Advanced Bluetooth...
and uncheck the two boxes marked
Open Bluetooth Setup Assistant at startup if...
Step 5
Step 6
Back up all data.
Triple-click on the line below on this page to select, then copy the text to the Clipboard by pressing Control-C key combination:
/var/vm
In the Finder, select
Go ▹ go to the folder...
from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.
A folder named 'vm' should open. Inside, there may be a file named 'drag '. Move this file and only this one in the trash, but do not yet empty. You will be asked for your password. Close the folder window.
Restart the computer and empty the trash.
-
I just started to use the Muse for our design agency and learning how to build us a new site, I managed to create a basic Viewer that contains sliding images, what I have to do now is have a PDP window that goes into details on projects, what I want is a piece of text or icon that when you ride on it , and then click a separate window opens with additional information in, once finished reading the news, you can click to close the box, any advice on how to do this?
The best way to do what you ask is with the widget of Composition. Start with the ToolTip predefined, which by default displays the info on working capital. You can change the display option to click, which is what you are looking for. You can also add the close button or the info disappear in slowing.
David
-
Is there such a thing as a USB wireless, that does not need USB cable upstream that goes into the usb slot in the main computer? I've looked everywhere but I can't find one. I hate the son, and I try to clear my desk of as many people as possible.
# USB is cable only.
-
Got MacBookPro 2010 3.06 G Hz-intelcore 2 DUO that goes well with adsl 20 M - want to know if I can improve it to 300 M
What is an 'adsl 20 M'?
What do you mean by 'improving 300 m'?
This is the Office Mac Pro forum. I asked that your post be moved to the MacBook Pro laptop forum.
Please move on MacBook Pro forum. Thank you
-
I have a controller that goes with my wireles receiver its a xbox controller when I turn it on it connected to the xbox at this post, he had to be to my receiver. so I unplugged but he then started blinking. Please help me
Hi Iyemeefem,To provide the proper resolution, I would need more information on your side.
1. which version of the operating system are you using?I suggest make you sure that Xbox 360 controller for Windows are correctly configured.Check out the link: set up your Xbox 360 for Windows controllerYou can check the link for more information.Troubleshoot your Xbox 360 for Windows controller
http://support.Xbox.com/en-us/Games/PC-games/Xbox-controller-for-Windows-helpIf the problem persists, I suggest you to contact Xbox support for help.Hope this information helps. Answer the post with an up-to-date issue report to help you further.
Maybe you are looking for
-
2015 Macbook Pro crashing and trackpad not working not
I have a Macbook Pro 2015 I got in December 2015. In the last 3 days it has planted 3 times. The mouse is not responding, the screen freezes and stays on even when I close the lid even in Crans working on the trackpad (I can't in press). The only way
-
Invalid electronic serial number after swapping out motherboard, HP Compaq 6200 Pro SFF
Hello I have just replaced a motherboard under warranty and I try to find the utility to change S/N in the BIOS, have obtained a location for the equivalent laptop but can't find the PC version using a USB. I have CSN access, but cannot find the util
-
The wireless signal is now coming up on my laptop, but it will not just connect. What should I do?
-
I INSTALLED THE MEMORY AND HE FOUND ME BUT THEN THE MOUSE DID NOT ANSWER. HAS RELEASED THE NEW MEMORY AND STILL NO RESPONSE
-
Can I please any help to find AppData?
I have recently changed/updated in Windows XP Professional to Windows 7 Professional, but have been finding a lot of things I need to change. One is to create a Quick Launch toolbar and the second is edit/control ads in my Start menu. These two are f