How can i add today's date in the pdf or excel when it's relative button is been clicked??

How can i add today's date in the pdf or excel when it's relative button is been clicked??

SukeshGandhamSukeshGandham Posts: 4Questions: 2Answers: 0

I have a requirement when I click on PDF or print or excel I should show Today's date in the document it might be a print or pdf or excel sheet, I Should show that it is generated on this day to have a reference.

Help me how to proceed????

This question has an accepted answers - jump to answer

Answers

  • rf1234rf1234 Posts: 2,801Questions: 85Answers: 406
    Answer ✓

    https://datatables.net/reference/button/excelHtml5

    use title, messageTop or messageBottom for this.

    when I define the buttons I use this for example (replace my variable names with yours):

    {extend: "excelCashFlow",
                title:    function () { return cfTitle; },
                filename: function () { return cfFilename; },
                messageBottom: function() {
                    return tableFooter + cashFlowTable.rows().count();
                }
            },
    
  • SukeshGandhamSukeshGandham Posts: 4Questions: 2Answers: 0

    Thanks , rf1234.

This discussion has been closed.