Options

Create PDF file with NAS

Cyber-JediCyber-Jedi Member Posts: 25
Hi!

I have a problem. I've tried Adobe Acrobat, PDF995 and some more...

My problem is that I want the NAS to create an PDF file from an report.
NAS is running as a Service on a Windows 2003 Server, the rervice is running as a valid system user.
All code works except the printer doesn't create a PDF file..

I get the following in Application Log:
Printer:
Right PDF printer
do not exist on this computer

Anyone had this problem or a solution to it?


Best Regards,

Jonas H.

Answers

  • WaldoWaldo Member Posts: 3,412
    You tried Amyuni?

    We use it for same purpose (creating pdf with NAS) with success...

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • Cyber-JediCyber-Jedi Member Posts: 25
    No, that one I didn't try!

    I'll try it tomorrow... Getting back with result asap.
  • hedegaardhedegaard Member Posts: 25
    Remember that it is the NAS account that is actually printing.

    If you log on to the NAS server as the NAS user account it should have the pdf printer available.

    When you direct the print to the PDF printer it must be the NAS user that has the printer. So maybe you need to change the Printer Selection for the NAS user in Navision.

    Some ideas anyway. Good luck.

    /anders
  • Cyber-JediCyber-Jedi Member Posts: 25
    hedegaard wrote:
    Remember that it is the NAS account that is actually printing.

    If you log on to the NAS server as the NAS user account it should have the pdf printer available.

    When you direct the print to the PDF printer it must be the NAS user that has the printer. So maybe you need to change the Printer Selection for the NAS user in Navision.

    Some ideas anyway. Good luck.

    /anders

    Thanks for the idea. But I have allready thought of that and tried that to.
  • Cyber-JediCyber-Jedi Member Posts: 25
    Waldo wrote:
    You tried Amyuni?

    We use it for same purpose (creating pdf with NAS) with success...

    Now when I tried It I got the same error message, is this a 3.60 issue?
  • WaldoWaldo Member Posts: 3,412
    Don't think it is, because we use it on a 3.60 NAS Service...

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • Cyber-JediCyber-Jedi Member Posts: 25
    Waldo wrote:
    Don't think it is, because we use it on a 3.60 NAS Service...

    Could you please give me some detail of your solution?

    Everything is working EXCEPT the PDF creation.
  • Cyber-JediCyber-Jedi Member Posts: 25
    SOLVED!!!

    You have to set to use system defualt printer when running the REPORT.RUN

    Then it works!

    Thanks everyone for tyring to give me some ideas.

    /Jonas
  • RoiRoi Member Posts: 33
    Hi All,

    Can any body tell me how to view PDF file from Navision 4.0 ?

    Roi
  • WaldoWaldo Member Posts: 3,412
    HYPERLINK('Filename.pdf');
    
    ... should do it.

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • RoiRoi Member Posts: 33
    Thank you Waldo
    Waldo wrote:
    HYPERLINK('Filename.pdf');
    
    ... should do it.
  • RoiRoi Member Posts: 33
    Hi All,

    Can Any body tell me how to save other application file (Word or PDF) in the Navision DB and then how to view that files from Navision on their own application.

    Thanks & Regards
    Roi
  • WaldoWaldo Member Posts: 3,412
    You should check the "Attachment" codeunits and tables. Everything you have to know is in there... .

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • RoiRoi Member Posts: 33
    Hi Waldo,

    Last three days I tried to understand how to do this one using AttachmentManagement codeunit and Attachment table.

    But I am new to the Navision so can u pls explain me it in simple way.but I know it may be hard to explain it.but if u can please.

    Do I want to use all the method in that codeunit and table????

    Can u send me sample object or code.

    Please Help. ](*,) ](*,) ](*,) ](*,) ](*,) ](*,)

    Best Regards
    Roi
    Waldo wrote:
    You should check the "Attachment" codeunits and tables. Everything you have to know is in there... .
  • RoiRoi Member Posts: 33
    Hi,

    In my "attachment" table, "LinkToMessage" Function there is an Automation parameter called "CDOMessage", in my table it subtype show as "Unknown Automation Server.Unknown Class".

    I want to know why it shows like this?What i have to do?

    (I am using Navision 4.0 SP1.)

    But in same function there is an Automation variable called CDOHandler with "Navision Attain ApplicationHandler'.CDOHandler" Automation.

    Thank You
  • cunnycunny Member Posts: 129
    Cyber-Jedi wrote:
    SOLVED!!!

    You have to set to use system defualt printer when running the REPORT.RUN

    Then it works!

    Thanks everyone for tyring to give me some ideas.

    /Jonas

    As I konw, Navision will choose the printer which has been set for the user in "Pinter Selection" table. If it find the printer it will use it to run printing job for the user. If not it will chosse the system default printer which has been setup in the oprating system. That means we do not need to change the default system printer to some pdf printer. Actually we can define the pdf printer for the user who wants to run the pdf printer task in "Printer Selection" table. Then you can select it with giving some simple setfilter coding before running report.run(). But you should be aware that the third parameter of report.run() must be false which means you dont want to use system default printer.
    cunny Lee
    MCP - MBS Navision
    jle@naviworld.com
Sign In or Register to comment.