Note: Office only
mso-ansi-font-size: large | larger | <length> | medium | <percentage> | small | smaller | x-large | x-small | xx-large | xx-small
| /* HTML to Microsoft Word Export | |
| * This code demonstrates how to export an html element to Microsoft Word | |
| * with CSS styles to set page orientation and paper size. | |
| * Tested with Word 2010, 2013 and FireFox, Chrome, Opera, IE10-11 | |
| * Fails in legacy browsers (IE<10) that lack window.Blob object | |
| */ | |
| function saveDoc() { | |
| if (!window.Blob) { | |
| alert('Your legacy browser does not support this action.'); |
| Model:: | |
| /*Select*/ | |
| select('col1','col2') | |
| ->select(array('col1','col2')) | |
| ->select(DB::raw('businesses.*, COUNT(reviews.id) as no_of_ratings, IFNULL(sum(reviews.score),0) as rating')) | |
| ->addSelect('col3','col4') | |
| ->distinct() // distinct select | |
| /*From*/ |