Print PDF file

Ashu_bhatt
Member Posts: 28
Hi All,
I need a solution to print pdf file which is already imported as a blob in navision. There can be mulilple pdf files which can print at a time (default printer).
I have done my investigation and came across some wonderful solution like
Root := Filename
SHELL('"C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe"',' /p /h ',Root);
but the problem with this solution is that if another client has acrobat 8 installed it won't work. I am using window Vista
Thanks for you help
Ashok
I need a solution to print pdf file which is already imported as a blob in navision. There can be mulilple pdf files which can print at a time (default printer).
I have done my investigation and came across some wonderful solution like
Root := Filename
SHELL('"C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe"',' /p /h ',Root);
but the problem with this solution is that if another client has acrobat 8 installed it won't work. I am using window Vista
Thanks for you help
Ashok
0
Comments
-
Is acrobat 8 installed in another folder?0
-
no another NAV client has different version of Adobe which is 80
-
you can put this instruction in a batch file where you can change it on each client pc.
from navision you will only run the batch file.
is this feasable for you ??Best Regards
Mohamad Barada
Independent ERP & CRM Consultant
+961 70 9127000 -
Yes, if you like to share code O:)moh_barada wrote:you can put this instruction in a batch file where you can change it on each client pc.
from navision you will only run the batch file.
is this feasable for you ??0 -
Ashu_bhatt wrote:Hi All,
I need a solution to print pdf file which is already imported as a blob in navision. There can be mulilple pdf files which can print at a time (default printer).
I have done my investigation and came across some wonderful solution like
Root := Filename
SHELL('"C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe"',' /p /h ',Root);
but the problem with this solution is that if another client has acrobat 8 installed it won't work. I am using window Vista
Thanks for you help
Ashok
Where do you put this code? OnPostReport? How can I print reports from navision using this code? I am always getting error messageThere was an error opening this document. This file cannot be found.
Or should we export report into some file before printing it to pdf? But then your code has only ouput file name, not input.Tomas,
Dynamics NAV Enthusiast0
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