Printing PDF-files (without dialog box) from Navision Attain

vanwerovanwero Member Posts: 28
edited 2004-07-08 in Navision Attain
Hi, I'm working on a project and the customer asks me to print PDF-files from within navision. Because he doesn't want to see a dialogbox each time, I'm working with /t instead of /p. I do the following:

AcrobatPathName := 'C:\AddOn\AcrobatReader\Reader\AcroRd32.exe';
FileName := 'C:\document1.pdf';
PrinterName := '\\maggy\BROTHER';

SHELL(AcrobatPathName + ' /t ' + FileName + PrinterName)

Does anybody knows what I do wrong here?

Thanks!
R.

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Maybe you can tell us what the problem is (eg. what error message you receive). But I guess you need a space between FileName and PrinterName.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • vanwerovanwero Member Posts: 28
    Instead of working with the shell-commando (It's not working always that correctly), I've worked now with a batch commando where I'm executing the following code:

    AcrobatPathName /t FileName PrinterName

    Everything is working fine but now I want to call acrobat in the invisible-mode. (or close it back again at the end). In the Acrobat Reader version 4.0, "/t" has the following meaning: Print the PDF without print-dialogbox and run Acrobat in invisible mode. But I am working with the Acrobat 5.0 version and here the "/t" means that he's only not showing the printer-dialogbox... Does anybody knows how I can run Acrobat 5.0 in the invisible-mode or how I can close it in my batchfile? (maybe this solution is even better because otherwise Acrobat is still open).

    Thanks
    R.
  • Jeff_FierceJeff_Fierce Member Posts: 32
    /exit ?
  • Jeff_FierceJeff_Fierce Member Posts: 32
    I copied a nice solution for Navision pdf printing without client software via CUPS. Set up or use any Linux machine with Samba, install/use CUPS (default printing system on most *ix machines) and define a virtual pdf printer, which is published via Samba. Connect the Clients to the printer (e.g. map network drive) and you can print any printable document to the virtual pdf printer. The pdf file can be emailed or printed out. Cute.
Sign In or Register to comment.