Discussion:
solution for exporting reports to pdf with company paper
(too old to reply)
Bart
2010-09-05 20:37:03 UTC
Permalink
Hello,

Our company paper consists of a color header and a big transparant logo on
the whole page.

When i print the invoice, it prints directly from tray 2 where the company
paper is located and everything goes fine.

Only downfall is, sometimes a customer asks for example a copy of an invoice
trough mail. If i export the report to pdf, you dont see any company
information, so I have to export the report to PDF and later merge it with
other software with our company paper.

Does anybody have/know a solution to merge the company paper automatically
from AX? Another option I can think of is to store the header in the report
and trough code say that if an invoice is printed by printer to hide the
header.

Help would be appreciated.
saeidu
2010-09-20 12:00:03 UTC
Permalink
Hi Bart,

I assume that if you are printing to preprinted stationary then you will
have labels and images turned off (made invisible) and will only be printing
actual text.

One way of achieving what you want is to use Code to determine if you are
printing “Original Invoice” or “Copy Invoice”, if it is the original Invoice
then do nothing else if it is a copy Invoice then you can turn on the labels
and images (make visible) and then you can save this to a PDF

e.g. in the Fetch method of the SalesInvoice Report

if (printCopyOriginal == PrintCopyOriginal::Copy)
{
Companylogo.visible(true);
Company_name.visible(true);
addressline1.visible(true);
addressline2.visible(true);
addressline3.visible(true);
Companyphone.visible(true);
Companytelefax.visible(true);
Company_email.visible(true);
Company_url.visible(true);
CompanyCoRegNum.visible(true);
}

etc etc

Loading...