pdfmake button

pdfmake button

tinac99tinac99 Posts: 7Questions: 6Answers: 0

Hi,

I included the line below to the mvc layout web page and it adds at least 13 seconds in loading a web page.

There are some pages where I exporting data to pdf is required.

@section Scripts {
<br /><br />
<script>

        $(document).ready(function () {
            $('#tableResults').DataTable({
                "iDisplayLength": @AppConstants.DATATABLE_PAGE_SIZE,
                dom: 'Bfrtip',
                buttons: [
                    'copy', 'csv', 'excel', 'print', 
                       {
                            extend: 'pdfHtml5',
                            orientation: 'landscape',
                            pageSize: 'LEGAL'
                        }
                    ]
            });
        });
</script>

}

Is there a way to make it quicker?

thanks,

tinac99

Answers

  • tinac99tinac99 Posts: 7Questions: 6Answers: 0

    This is the line which adds 13 seconds to page load.

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @tinac99 ,

    This is the line which adds 13 seconds to page load.

    Which line is that? Are you saying it takes 13 seconds to export, or for the table to load initially.

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.