The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
How to display string starts with 0 in export excel - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: How to display string starts with 0 in export excel (/showthread.php?tid=1247) |
How to display string starts with 0 in export excel - ferri - Apr 30th, 2011 Hi, I have a string value of 01/07/2011 in a date column. When exporting in excel, it will remove the 0 into 1/7/2011 and it's aligned to the right. Is it possible to add something to the smarty template so that the 0 will be printed in excel? Thank you. RE: How to display string starts with 0 in export excel - Ben - Apr 30th, 2011 Hi Ferri, Ah yes... I encountered this once. I think you need to append a ` or ' character to the start of the cell. Excel does a lot of "clever" stuff to help you out. ![]() Gives this thread a read through. You'll need to tweak the Excel export type in the Export Manager module a little tweak to add the extra character. http://forums.formtools.org/showthread.php?tid=503 Good luck! ![]() - Ben RE: How to display string starts with 0 in export excel - ferri - May 1st, 2011 Thanks for the hints! I have come up with a working solution: in the Excel export type in the Export Manager, use this: Code: {else} RE: How to display string starts with 0 in export excel - Ben - May 1st, 2011 Excellent! Glad you found a solution - and thanks for posting your fix. ![]() - Ben |