Hi,
I want to use the Acrobat PDF Writer to send PDF invoices to our clients by email.
Therefore I want to save the invoice as 'invoicenumber.pdf', but I can´t find out, how to pass over the 'save as' dialog and set the filename directly.
After some time I found a way to set the path fix in the windows registry. Now I can save the invoice as c:\invoice.pdf and copy it via the shell command as 'invoicenumber.pdf'.
Acrobat PDF Writer was often recommended in this forum. Is there any better way to solve this problem?
Thanks
Mario
0
Comments
I can give you a small example, how I have managed it with mailing invoices. I have created a new button in the sales form with those code lines:
path := 'D:\'+code+'_'+STRSUBSTNO ('%1',WORKDATE)+'.html';
REPORT.SAVEASHTML(404,path,FALSE,rec);
mailen.OpenNewMessage(emailadr,path);
where path = Textvar, where I store the path to save this file; in the textvar 'code' I store the number of the invoice and append the current date; 404 = number of the report and 'rec' in your case the sales invoice header; to codeuint 397 (=mailen) I pass the Emailadress (= var emailadr) of the customer.
Michael
> I can give you a small example, how I have
> managed it with mailing invoices. I have
> created a new button in the sales form with
> chose code lines:
[...]
thanks a lot. But I need PDF. The PDF Writer was mentioned many times in this forum so hope to get an answer later.
Try http://www.mynavision.net/dlinfo.asp?FileID=112 for sending invoices by email. It´s faster and better to use. You can also add much more text to the email and tell your customer, when and how to pay.
Regards,
Mario
I have no experience with this, but it looks promising.
I found 3 solutions:
1. Amyuni PDF (http://www.amyuni.com)
You can use it as automation
2. Acrobat Distiller
http://www.navision.net/forum//link.asp?TOPIC_ID=2704
3. Acrobat Writer < Version 4
The older versions are controlled by an .ini file called "__PDF.INI".
You can add the following line to avoid the DocInfo dialog and to set the path and create the complete ini file by C/AL:
PDFFileName = c:\rechnungen\RE051815.pdf
bDocInfo = 0
I like the Acrobat PDF Writer solution, because compared to Amyuni the pdf files are better.
Regards,
Mario
But I found out, that PDFWriter is backwards compatible
[...]
So you can control the registry by the ini file. The ini file must be placed in the printer spool directory. If there is a value set in the ini file, it is mapped to the registry.