Opening files in Notepad
marvinq
Member Posts: 69
Hi,
I have stored a url for a text file in NAV. Now the question is, how can I in NAV open this file in windows notepad?
Thanks!
I have stored a url for a text file in NAV. Now the question is, how can I in NAV open this file in windows notepad?
Thanks!
0
Comments
-
So when you click on the link which program is opening it? Word?
You change the association for TXT types.
http://windows.microsoft.com/en-US/wind ... by-default0 -
Thanks for replying
Now I am using: HYPERLINK('[ur]'), and everything opens in Internet Explorer
The thing is that the files are ".html" files, I want them to open in notepad so I can edit them, however in Windows I prefer that .html files open in IE.
Other ideas?0 -
The association post above still applies.
Windows by default has HTML files open with Internet Explorer.
See attached pic.
I don;t know if it's a good idea to change the association of html files to notepad.
Best to create a command button to notepad and from notepad open the file you want.0 -
Hi,
It was much easier than I thought. There is an example in the NAV help-file on topic: SHELLOBJECT Codeunit 98123 SHELL ex { OBJECT-PROPERTIES { Date=30-08-04; Time=14:12:57; Modified=Yes; Version List=; } PROPERTIES { OnRun=BEGIN // The following is not trusted and will give a warning. ExecName := 'C:\windows\notepad.exe'; param := 'C:\MyFile.txt'; ret := SHELL(ExecName, param); // The following is trusted and will not give a warning. param := 'C:\MyFile.txt'; ret := SHELL(TEXT000, param); // The following is not possible - will only give an error // message during runtime. This is also if its a TextConst: ExecName := 'C:\windows\notepad.exe C:\MyFile.txt'; ret := SHELL(ExecName); END; } CODE { VAR ret@1000 : Integer; param@1001 : Text[30]; TEXT000@1002 : TextConst 'ENU=C:\windows\notepad.exe'; ExecName@1003 : Text[30]; BEGIN END. } }
... and it works
Thanks anyhow
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
- 327 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