Hi Mydbr Team,
I have try the page break per record in PDF using following code but its not working an also I have update MYdbr version also. But I didn't get any improvement. Cloud you please help for me.
CREATE PROCEDURE sp_DBR_Delivery_Tickets
(vCompanyid int,StartDate date,EndDate date,Salesperson text,StoreLocation int,pagedisplay int)
BEGIN
SELECT 'dbr.template', '#invoice';
select 'dbr.export.options', 'pagebreak', 1;
select 'dbr.css', '.page-break.page {page-break-before:always} .page-break.page1 {page-break-before:auto}}';
select 'dbr.resultclass', 'page-break';
select 'dbr.wkhtmltopdf', "--header-html ''"; /* Do not use header in export using wkhtmltopdf */
select 'dbr.export.options', 'autosize', 0; /* Turn off autosize */
################## Query ##########
select 'dbr.purehtml', '<script type="text/javascript">$(document).ready(function() {
var variable = $(".nsl").parent().css( "display", "none" );
$(".separator" ).each(function( index ) {
var str = $(this).text();
str = str.replace(/####/g," ");
$(this).html(str);
});
});</script>';
select 'dbr.purehtml', '<style>
@media print
{
hr {page-break-after:always;}
}
</style>';
END
Thanks,
Sivanesan.V