Stylesheet buttons - How to set filename
Luc_VanDyck
Member, Moderator, Administrator Posts: 3,633
When you use the "Send to Word" and "Send to Excel" icons from a form, NAV assembles some XML's and send this to Word or Excel. Is it possible to set the filename of the generated document to some value? Now this filename is based on the Form's caption which is displayed, but I want a different default filename.
I have already tried to change the caption-attribute in the DataXML, but this didn't do it.
If this filename is assembled in the fin.exe/finsql.exe then I guess I'm stuck.
A 2nd question is, if it's possible to retrieve the modified document, if the user has changed it inside Word/Excel... but I have a strong idea what the answer is to this one.
I have already tried to change the caption-attribute in the DataXML, but this didn't do it.
If this filename is assembled in the fin.exe/finsql.exe then I guess I'm stuck.
A 2nd question is, if it's possible to retrieve the modified document, if the user has changed it inside Word/Excel... but I have a strong idea what the answer is to this one.
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
0
Comments
-
Have you tried to change the first text of the exported document to something else? (as I wrote in PM - the file name is based on the first line of text in the document...)0
-
There is no such thing as "first text of the exported document", as everything is enclosed in XML-tags. And which XML are you referring to: ApplicationXML or DataXML?No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
It seems that NAV client is directly "creating" the file name. I tried to modify the only one string with the caption in the application xml, but the filename was not changed. It seems that the client is doing more than just sending the output XML. I tried to use default template to export data to notepad, and the create xml has still same name as for other applications.0
-
Indeed. You'll notice that in the Temp-dir, a document is created with the caption as filename. But this document is created using the fin.exe/finsql.exe I presume ...No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
I even tried to modify the Parameter-field in the "Send-To Program" table, but then NAV gives a Runtime Error when clicking the Send-to-Word icon.
The parameter "/t %1" could be of use so the user needs to choose a filename when saving the document.
](*,)No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Did you find a solution to this? I could also use to set filename and path for the file.Navision developer0
-
No, I haven't been able to set the filename of the generated XML-document.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)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
