Comova,
If you look at the bottom of the template editing pages, you'll see a list of all of the values you can insert into your email template to have replaced by the code. The very last one is "@pdf - Add anywhere in the template to have the invoice PDF attach to the email". You'll just need @pdf somewhere in your template to make it work.
Processing....
var win_w;
var win_h;
if (self.innerHeight)
{
win_w = self.innerWidth;
win_h = self.innerHeight + 300;
}
else if (document.documentElement && document.documentElement.clientHeight)
{
win_w = document.documentElement.clientWidth;
win_h = document.documentElement.clientHeight + 300;
}
else if (document.body)
{
win_w = document.body.clientWidth;
win_h = document.body.clientHeight + 300;
}
var o = document.getElementById("div_overlay");
o.style.height=win_h + 'px';
o.style.width=win_w + 'px';
---
Jeremy
DotNetInvoice Support