Acrobat PDF Writer - save as

mhp1234mhp1234 Member Posts: 6
edited 2002-05-31 in Navision Financials
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

Comments

  • QuasimodoQuasimodo Member Posts: 45
    Hi Mario,

    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
  • mhp1234mhp1234 Member Posts: 6
    Hi 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
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Have you tried pdfFactory http://www.fineprint.com/software/pdffactory/standard/index.html ?

    I have no experience with this, but it looks promising.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • mhp1234mhp1234 Member Posts: 6
    Hi,

    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
  • PrebenRasmussenPrebenRasmussen Member Posts: 137
    MarioP: Could you tell us which key/location to change in the registry?
  • mhp1234mhp1234 Member Posts: 6
    PrebenRasmussen: "The key is HKCU\Software\Adobe\Acrobat PDFWriter"

    But I found out, that PDFWriter is backwards compatible
  • mhp1234mhp1234 Member Posts: 6
    PrebenRasmussen:

    [...]
    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.
Sign In or Register to comment.