exportToPDF(account, docId, tableId, output, linesOnly, pageSize, font)
Export table to PDF
Only docId & tableId is required.
docId : Document Id of the Coda document
tableId : Table Id or Table Name of the desired table that you want to export.
output : file or base64 . By default it's file, so url will be returned. You need to use a button as action.
linesOnly : true or false. By default it's false. If true, horizontal lines will be used instead of grid.
pageSize : Choose a page size of the PDF. By default it's A4. You can choose various sizes like A0, A1, A2, Letter, etc. Autocomplete is provided.
font: Choose one of the 24 standard fonts. By default, it's helvetica font.
Parameters Added in version 2.2.0 (NEW)
landscapeMode: If true , page orientation will be landscape. By default, its false (portrait)
colsPerPage: Number of columns per page. Page width is equally divided by the total columns per page. By default, set to 5 in portrait mode & 7 if landscape/horizontal
OpenWindow(exportToPDF([Rupjyoti Nath], "IEORyRB__5","Students" ) )
Don’t love grid, you can just pass linesOnly parameter as true to use horizontal line as separator!
exportToMarkdown(account, docId, tableId, align, align_each)
Export table to Markdown table
Only docId & tableId(or name) is required.
align: List of characters ('l','r' or 'c') for all columns separately. Will use alignment accordingly.
align_each: Just a character ('l','r' or 'c') , same alignment will be used for all columns.
The formula returns a markdown string for the table.
exportToMarkdown([Rupjyoti Nath], "IEORyRB__5","Students" )
exportToHTML(account, docId, tableId, borderColor, backgroundColor, textColor, stripped)
Export table to HTML
Only docId & tableId (or name) is required.
borderColor : Provide border colour of the table in hex.
backgroundColor : Provide a background colour in hex.
textColor : Provide a text colour in hex.
stripped : true or false. Default is true, so only even rows (1 based indexing including header) are background coloured. If you want entire table to have the background colour, you should pass false.
exportToHTML([Rupjyoti Nath], "IEORyRB__5","Students" )
exportToCSV(account, docId, tableId, output)
Export table to CSV
Only docId & tableId(or name) required.
output: If 'string' , csv string will be returned instead of a downloadle url/ file export. Default is file/url.
OpenWindow(TableExporter::exportToCSV([Rupjyoti Nath], "IEORyRB__5","Students" ))