Hi All,
Is it possible to export amount to notepad from Statement when Print = Yes? Any idea?
Thousand thanks for your help.
Warmest Regards,
Vanessa
*This post is locked for comments
Hi All,
Is it possible to export amount to notepad from Statement when Print = Yes? Any idea?
Thousand thanks for your help.
Warmest Regards,
Vanessa
*This post is locked for comments
Sure. Try this:
Variable:
FileMgt - Codeunit - File management
DestinationFile - Text1024
Code:
DestinationFile := FileMgt.SaveFileDialog('Window Title','file.txt','Text files (*.txt)|(*.txt)');
MESSAGE(DestinationFile);
Also, you might want to check this out:
blogs.msdn.com/.../nav-pattern-of-the-week-silent-file-upload-and-download.aspx
I'm using the method that Jose Castro provided. Thanks for your help.
By the way, can I just select the file that I need to save as instead of prefix the file name(File1.CREATE( 'C:\Output2.txt');)? Such as prompt a window to request for Open or Save or Cancel the file.
Yes, you can directly export as txt file.
Use the link provided by Jose Castro as sample
I believe what Mohana was referring to was something like using the tools in this link www.navision-girl.com/.../create-and-write-to-text-file-from.html
You can use the hierarchy and structure tools a report provides and combine that with the writing directly to an external file (as shown in the previous link).
Just create the file at the start of the report, write data on each data item you require and close the file when the report execution finishes. That will create a .txt file you can open after with notepad :-)
Hi Mohana,
First of all, thanks for your replied.
If write in report, is it only export details to Microsoft Excel? Is it possible to export details to notepad directly? Any sample?
Thousand thanks for your help.
Warmest Regards,
Vanessa
You can write a report which creates and opens notepad and writes data..
André Arnaud de Cal...
292,865
Super User 2025 Season 1
Martin Dráb
231,723
Most Valuable Professional
nmaenpaa
101,156
Moderator