How to open file with its application?
erp-technical
Member Posts: 7
Hi,
I am in need to open a file and show it to user. File may be in server (Disk) and file path will be stored in Navision database. ](*,)
I want to open the file (Word,Excel or Pdf) from Navision code irrespective of type of file.
(It may be same as Shortcuts in Navision 4.0)
Can anybody help me?
Thanks in Advance
Siva
I am in need to open a file and show it to user. File may be in server (Disk) and file path will be stored in Navision database. ](*,)
I want to open the file (Word,Excel or Pdf) from Navision code irrespective of type of file.
(It may be same as Shortcuts in Navision 4.0)
Can anybody help me?
Thanks in Advance
Siva
0
Comments
-
Remember: Search is your friend
See thread http://www.mibuso.com/forum/viewtopic.php?t=8658 where following solution can be found:gandrius wrote:I suggest to use Automation instead of function HYPERLINK()
ShellExt Automation 'Microsoft Shell Controls And Automation'.Shell
and then enough to write few lines of code
CREATE(ShellExt);
ShellExt.Open("File Name");
CLEAR(ShellExt);No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
It is not necessary to use an automation.
You can also use HYPERLINK.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
-
Some examples of which filetypes it doesn't support?Mark Brummel wrote:HYPERLINK does not support all filetypes
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
I think it was this
http://www.microsoft.com/Businesssoluti ... ttings.xml
But I remember reading more but I cannot find it anymore
0 -
There are many Ways ....
the simplest
hyperlink(Directory + Document) ->
hyperlink('C:\Temp\' + '123.doc');
Tis starts the standard application for the fileexten. *.doc
RegardsDo you make it right, it works too!0 -
=D>
Thanks alot for all who joined to give the solution
Siva0 -
Hi all,
I have one problem.
I want to create one command button 'Open File'.
When I click on that it should display the attachment directly without exporting it to hdd.
Can i do the same? if yes then how? I dont have the file path. i have only File name, file size, file data, content type.
Please help me out0 -
Create a file in the tempdirectory, write the info to it and then use HYPERLINK to run it.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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

