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

vanwero
Member Posts: 28
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.
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.
0
Comments
-
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)0
-
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.0 -
/exit ?0
-
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.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions