saving reports to PDF in navision 4.0

rksaurabhrksaurabh Member Posts: 18
Hi all,
I have a query regarding saving report to PDF in navision 4.0 using Adobe acrobat 7.0 professional. I am able to create PDF using PDF creater but my client don't want to go for any other software. They are using original version of acrobat 7.0. so is there anyway by which we can save report to pdf using adobe acrobat.Can somebody help me with this problem

Thanks in advance.

Comments

  • SavatageSavatage Member Posts: 7,142
    did you search the forum for "acrobat"?
  • KabutoKabuto Member Posts: 12
    I assume you mean they have Acrobat Reader which won't create PDFs. There are a couple of free ones like PDFCreator. Creates a printer driver to create the PDF. You can also setup a linux server that will use Ghostscript to create PDFs. Never done the latter.
  • rsaritzkyrsaritzky Member Posts: 469
    We have Adobe Acrobat Pro version 9 which also has a print driver. I don't remember if Acrobat 7 had this same feature, but using Acrobat or any of the print-to-PDF utilities seems straightforward. Bullzip PDF is one mentioned here on the forum that we use and works well (and is free). Others have had success with PDF Creator. I also like PDFFactory - it makes very small PDF files - especially compared to Acrobat.
    Ron
  • rksaurabhrksaurabh Member Posts: 18
    Thanks for the comments and advice.
    But problem still remains.
    I have tried with PDFcreator and BullZip, its working fine for me but my client don't want to go for any other software.
    Adobe acrobat 7.0 has the utilites to create PDF using printer setup which acrbat 9 has. but don't know which automatin to use for PDF conversion...
    Please help me if any code is there regarding this.
  • rsaritzkyrsaritzky Member Posts: 469
    So are you saying that you have to stay with Acrobat 7.0, and not even upgrade to Acrobat 9.0?

    Ron
    Ron
  • SavatageSavatage Member Posts: 7,142
    As a customer myself - I don't understand why they care which program is used to get what they want done.. as long as it gets done.

    It not like the other programs cost anything... :-k
  • matttraxmatttrax Member Posts: 2,309
    Savatage wrote:
    As a customer myself - I don't understand why they care which program is used to get what they want done.. as long as it gets done.

    Although I agree, it is another program to make sure is installed on new machines. Another application to support and troubleshoot. We use PDFCreator and it works great. Very few problems.
  • rksaurabhrksaurabh Member Posts: 18
    My client already has adobe license and don't want to go for any 3rd party source.
    When i installed adobe i can see automation which provides function to create PDF but not getting exact function to use.
    Can anybody help please with the code.
    I need it very urgently.
    Thanks for your support
  • rsaritzkyrsaritzky Member Posts: 469
    Do you have to stay with Acrobat 7.0, or can you upgrade to Acrobat 9.0?
    Ron
  • matttraxmatttrax Member Posts: 2,309
    rksaurabh wrote:
    When i installed adobe i can see automation which provides function to create PDF but not getting exact function to use.
    Can anybody help please with the code.
    I need it very urgently.

    Not that everyone isn't willing to help, as I am also curious how this would work with Acrobat, but Mibuso might not be the best place to be asking the question. Your question is Adobe specific and has little to do with NAV, so you may want to browse some of their user groups (if there are any).
  • rsaritzkyrsaritzky Member Posts: 469
    I think that posting of automation examples is a valuable contribution to MIBUSO. I've contributed such examples in the past. But we need to know which automation platform.
    Ron
  • matttraxmatttrax Member Posts: 2,309
    rsaritzky wrote:
    I think that posting of automation examples is a valuable contribution to MIBUSO.

    Absolutely, just maybe not the place to go if it really is an urgent need.
  • gvolkovgvolkov Member Posts: 196
    You will need to use two automation servers.
    Adobe Acrobat 7.0 Type Library - AcroApp
    and
    Adobe Acrobat 7.0 Type Libraru - AcroAvDoc


    then using the CAL Symbol menu you will be able to see all the methods offered.
    Open - will open the file for example

    i have used adobe adobe automation before for one of my customers, and all the functions you need are listed there. I do not remember exactly how i did it, but i could dig some examples out later if you still need them.
    Microsoft Certified Technology Specialist
    Microsoft Certified Business Management Solutions Professional
    Microsoft Certified Business Management Solutions Specialist

    http://www.navisiontech.com
  • rksaurabhrksaurabh Member Posts: 18
    gvolkov wrote:
    You will need to use two automation servers.
    Adobe Acrobat 7.0 Type Library - AcroApp
    and
    Adobe Acrobat 7.0 Type Libraru - AcroAvDoc


    then using the CAL Symbol menu you will be able to see all the methods offered.
    Open - will open the file for example

    i have used adobe adobe automation before for one of my customers, and all the functions you need are listed there. I do not remember exactly how i did it, but i could dig some examples out later if you still need them.


    Thanks gvolkov. atleast some idea is given. i tried those automation but still not able to convert reports into PDF. If you could please help it more in this.
  • rksaurabhrksaurabh Member Posts: 18
    matttrax wrote:
    rksaurabh wrote:
    When i installed adobe i can see automation which provides function to create PDF but not getting exact function to use.
    Can anybody help please with the code.
    I need it very urgently.

    Not that everyone isn't willing to help, as I am also curious how this would work with Acrobat, but Mibuso might not be the best place to be asking the question. Your question is Adobe specific and has little to do with NAV, so you may want to browse some of their user groups (if there are any).

    Many places i saw people asking questions to use adobe to create nav report into PDF but they are not giving exactly how we can. Because if we can select adobe printer to save report into PDF manually then through some how we can create through code also.. that i need.
  • SavatageSavatage Member Posts: 7,142
    We all know what you need.
    Most of us don't use Adobe to create PDF's.
    So it's not like we're holding back anything.
    If someone had the information you seek I'm sure they would post it.
    I lke many use the free PDF programs where their are many details posts on how to do it.

    A good suggestion was to look for an adobe forum that can give you a list of the automations
    Also review the PDFCREATOR one and see if you can switch it up.
    When it calls for a PDFCreater auto see if their is a corresponding Adobe one.
  • gvolkovgvolkov Member Posts: 196
    Creating a PDF file using Acrobat is very similar to PDFCREATOR, i have done both. As soon as i find my code, i will post it.

    In the meantime, get Acrobat SDK, and take a look there.

    steps are quite simple:

    1. print report to Acrobat Distiller Printer.
    2. set required properties.
    done
    Microsoft Certified Technology Specialist
    Microsoft Certified Business Management Solutions Professional
    Microsoft Certified Business Management Solutions Specialist

    http://www.navisiontech.com
  • gvolkovgvolkov Member Posts: 196
    could not find my code yet, but here is something you may be able to use:

    Add a variable 'Windows' type: Automation Subtype 'Windows Script Host Object Model'.WshNetwork
    Rec.SETRECFILTER;
    IF ISCLEAR(Windows) THEN
    CREATE(Windows);
    Windows.SetDefaultPrinter('Adobe PDF');
    REPORT.RUN(205,FALSE,FALSE,Rec);
    

    in production you will want to revert the default printer back to the original. This solution also gives you flexibility as to where you will sava the pdf file.
    Microsoft Certified Technology Specialist
    Microsoft Certified Business Management Solutions Professional
    Microsoft Certified Business Management Solutions Specialist

    http://www.navisiontech.com
  • rksaurabhrksaurabh Member Posts: 18
    gvolkov wrote:
    could not find my code yet, but here is something you may be able to use:

    Add a variable 'Windows' type: Automation Subtype 'Windows Script Host Object Model'.WshNetwork
    Rec.SETRECFILTER;
    IF ISCLEAR(Windows) THEN
    CREATE(Windows);
    Windows.SetDefaultPrinter('Adobe PDF');
    REPORT.RUN(205,FALSE,FALSE,Rec);
    

    in production you will want to revert the default printer back to the original. This solution also gives you flexibility as to where you will sava the pdf file.

    Thanks gvolkov,
    As u said it will give the flexibility to save the pdf file,i tried to save it but nowwhere i was able to find out the property to save it as pdf in any of the location using code. i don't want any dialog window to open.
    Could u please provide some more information.
    regards
    Raj
Sign In or Register to comment.