Library for creating PDF

ta5ta5 Member Posts: 1,164
Hi
We are looking for a Library to create PDF from withing Navision, using the library as automation object. A product with an evaluation possibility will be preferred.

A short code snippet would be appreciated.

Thanks in advance.
Thomas

Answers

  • ara3nara3n Member Posts: 9,256
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ta5ta5 Member Posts: 1,164
    Hi Rashed
    Thanks for replying. I've seen the link, but I need something to create a pdf from the scratch. I think it will work somehow like this:

    1) create automation object
    2) create document
    3) create line with text, images, etc
    4) create tables, etc
    5) write document and close it

    Any ideas?
    Thanks in advance
    Thomas
  • ara3nara3n Member Posts: 9,256
    there are SDK out there that you can get but they are not free.
    Here is an example one. with pdf doc on how to use it with VB code that you can look at.

    http://www.verypdf.com/pdfsdk/index.html#dl

    Download it and try it, and if you like it purchase it.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ta5ta5 Member Posts: 1,164
    Thanks, I'll give it a try.
    By the way: First I wanted to use
    http://www.primopdf.com/primopdf_api.aspx, but strangely engough I cant see the automation server from within navision.
    What could be the reason, the DLL are registered, I have even registered them again with regsvr32?

    Thomas
  • ara3nara3n Member Posts: 9,256
    I don't know. There isn't enough documentation on COM in Nav.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ta5ta5 Member Posts: 1,164
    ara3n wrote:
    there are SDK out there that you can get but they are not free.
    Here is an example one. with pdf doc on how to use it with VB code that you can look at.

    http://www.verypdf.com/pdfsdk/index.html#dl

    Download it and try it, and if you like it purchase it.

    I have downloaded the trial version of VeryPDF PFD editor toolkit.
    In order to use it in Navision, it must be registered with regsvr32.exe.

    Unfortunately we get an error. The error is in german (our windows is Swiss German) and means approximately:
    "Verywrite.dll has been loaded but the entry point for DLLRegisterserver has not been found. The file cannot be registered".

    Any ideas?

    Thanks in advance

    Thomas
  • ara3nara3n Member Posts: 9,256
    My guess that it's a .NET dll and you need to use Regasm.exe instead of regsvr32
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ta5ta5 Member Posts: 1,164
    Solved:
    regsvr32.exe pdfshell.dll

    pdfshell.dll is included in the "Pro"-Edition only.
    http://www.verypdf.com/pdfsdk/pdf_editor_toolkit_pro_trial.zip

    Many thanks for all your inputs.
    Thomas
Sign In or Register to comment.