How to save Navision Reports as PDF

1456810

Comments

  • ara3nara3n Member Posts: 9,255
    Try to download and reinstall Ghost script for vista.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • visheshvishesh Member Posts: 60
    Hi ara3n,

    Thanks for your reply.
    Can you tell me how i can find the ghostscript for vista.
    Should I google it or there is some specific link for that.

    Thanks in advance.
    Vishesh Singh
    Technical Consultant
  • ara3nara3n Member Posts: 9,255
    yep google should give you the links.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • davmac1davmac1 Member Posts: 1,283
    I saw an earlier question about whether pdf995 could be used, but no answer.
    I am working with a site that already has pdf995. Will this work or should I try and convince them to switch to a different pdf writer?
    I need to be able to individually email and batch email documents.
  • ara3nara3n Member Posts: 9,255
    It looks like it's possible.

    You can read the faq here.

    http://www.pdf995.com/faq_dev.html
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • davmac1davmac1 Member Posts: 1,283
    Thanks - it looks like the previous contractor took a lot of shortcuts to make one report work. All your work and everyone else's feedback on this topic has been very helpful.
  • WogWog Member Posts: 13
    Hi

    I have a problem with bioPDF automation. Our customer has more than 10 users, so we had to buy biPDF instead of using free bullzip.
    On single computer it works fine, but when I need to install it on several computers, the bioPDF automation is registered under different GUID than on previous computer.
    So the code does work on one computer only and on others it doesn't.

    Does someone know how to force bioPDF to register automation under the same GUID all the time?

    Thanks in advance.
  • ara3nara3n Member Posts: 9,255
    Are you sure you didn't download a newer Version of BioPDF?

    All the users should be on the same version.

    Otherwise you have to create two codeunit for each DLL GUID and based on User Setup call a different Codeunit.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • WogWog Member Posts: 13
    I am sure the versions are the same because I tested it just before posting to forum.
    I downloaded newest version of bioPDF and installed it on two computers. Automation servers have differrent GUIDs :x

    More codeunits is a solution but not the solution I was hoping for.
    I just want to make bioPDF installer register the automation under the same GUID on every machine I install it.

    But thank you for your reply anyway.
  • ara3nara3n Member Posts: 9,255
    you could try and edit the registery and change the GUID to the same value.

    Have you tried that?
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • mikelangelo11mikelangelo11 Member Posts: 4
    Direct exporting to excel is available for FORMS in Navision 5.0, but if you want to export the report to excel, you need to do the coding, which generally uses Table 370 (excel buffer), like "Analysis by Dimension" has the option to export to excel..
  • NavBoy13NavBoy13 Member Posts: 15
    Hello,

    I was testing with the Bullzip PDF creator. Everything works great, but the initialization takes a long time... about 30 seconds.
    When I run print the report straight after the first one, the initialization is very fast.

    The code responsible for this long time of waith is

    BullZipPDF.LoadSettings;

    The operating system is Windows 2003 server. Does anyone has the same problem?

    Thanx!
  • ara3nara3n Member Posts: 9,255
    it takes long is because it has to start the bullzip executable. If you have the exe running already then it shouldn't take that long.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • NavBoy13NavBoy13 Member Posts: 15
    the Bullzip executable?
    I have my task manager open and when I print the report, I can't see anything of a bullzip proces...

    The only .exe I can find is the gui.exe
  • ara3nara3n Member Posts: 9,255
    Yes it's GUI.exe
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • NavBoy13NavBoy13 Member Posts: 15
    this makes no difference. It is still very slow at startup.
  • Remco_ReinkingRemco_Reinking Member Posts: 74
    ara3n wrote:
    welcome.
    another way is to use stylesheets functionality combined with MS-WordAutomation (from office 2007) since in Word-2007 the SaveAs PDF is supported. See for details also the aswer in post http://www.mibuso.com/forum/viewtopic.php?f=23&t=43516
  • NavBoy13NavBoy13 Member Posts: 15
    The problem is that I use the PDF printer to generate password protected PDF files for e-invoicing...
  • ara3nara3n Member Posts: 9,255
    maybe it's the password creating that causes the slowdown. try it without it.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • david_86david_86 Member Posts: 19
    hello ara3n
    i use this ur code but i only chane a report with anather report

    Form - OnOpenForm()
    IF ISCLEAR(PDFCreator) THEN
    CREATE(PDFCreator);
    IF ISCLEAR(PDFCreatorError) THEN
    CREATE(PDFCreatorError);

    ReportID := REPORT::"itemlist";
    And i add a record table in code commande button in the last line
    REPORT.RUNMODAL(ReportID,false,true,Item);
    but wen i run i not find any thing in m file pdf under c:
    i wait ur help if u can and thanks
  • ara3nara3n Member Posts: 9,255
    do you get a pdf file without changing the code?
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • david_86david_86 Member Posts: 19
    ok thanks ara3n
    i can now save m report to pdf
    and i need know how i can send this report with mail
    thanks
  • ara3nara3n Member Posts: 9,255
    there is a cu 397 that you can use to send email
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • alexe86alexe86 Member Posts: 4
    i sherche a solution for send mail without cu 397
  • NavBoy13NavBoy13 Member Posts: 15
    ara3n wrote:
    maybe it's the password creating that causes the slowdown. try it without it.

    When I try it without the password protection, it is still the same problem.
    When I run my client on a Windos 7 pc, it is very fast. The problem is my Server 2003 pc...
  • DigiTecKidDigiTecKid Member Posts: 46
    Oh an d the reason I was actually here....


    Has anyone else come across the error where PDF objects created in ver. 0.9.3 won't run on 0.9.5 and vica versa. Basically the comand below will only run on a coumputer running the same version of PDFCreator that it ws complied with.

    The issue is the command
    PDFCreatorOption :=  PDFCreator.cOptions;
    

    Which gives the message:
    This message is fo C/AL programmers:
    Invalid assignment. It is not possible to assign a _clsPDFCreatorOptions to a clsPDFCreatorOptions.

    Its clearly an issue with wich dll you have registered, and I am pretty sure its a PDF creator issue, not a NAV issue.

    Its damn anoying having to use a different computer to compile objects to get this to work, and worst is when a client has computers with differnt version of PDF creator installed.

    Has anyone solved this?

    Just a quick thanx David. I'm using PDFCreator 1.1.0 with Lanham's Email solution and was banging my head trying to figure out why it was working on some computers and not on others. Apparently when it's run it checks for updates and pops up a prompt for you to download and install the latest update. Some users were and some weren't hence the intermittent error. I now have everyone on the correct version. I've added a line of code (based on their documentation: http://wpkg.org/PDFCreator#Disabling_Au ... e_Checking) to keep this from happening:
    PDFCreatorOption.UpdateInterval := 0; //Never check for updates
    I won't know "for sure" this works until the next update, but I'll keep this bookmarked to to let you know.
  • DigiTecKidDigiTecKid Member Posts: 46
    FYI, the next update has come out and my client's PDFCreator software did not try to auto-update. So it looks like my fix worked.
    http://prdownloads.sourceforge.net/pdfcreator/PDFCreator-1_2_0_setup.exe?download
  • bigbossibigbossi Member Posts: 3
    Hi,

    friendly regards from Germany :D - this is my first post \:D/

    i wanna choose an existing profile (with watermark) in the PDF Creation codeunit (with PDF Creator usage). What options i have to use ? i seeked in the online help and tried some options, but nothing works fine.

    regards
    bigbossi
  • bigbossibigbossi Member Posts: 3
    Hi Mohana,

    thanks for the posts - but they dont help me.

    I want to use an existing PDFCreator Profile in the codeunit to create the PDF File. I use an existing codeunit to create PDF from Reports - but unfortunately they do not use my PDF Creator Profiles. One of the existing PDF Creator Profiles use AddWatermarktoPDF.vbs. This Profile i wanna use in the CU :wink:

    but without a popup dialog from PDFCreator to choose the Profile i want.

    regards
    bigbossi
Sign In or Register to comment.