Button to send form to Ms Word in NAV5
zyyraf
Member Posts: 9
Hello
I'm using NAV 5.0sp1 with StyleSheet Tool 1.1.
I must run 'Program Selection' form from my own button on my form, to send my form to Ms Word/Excel (exsactly like clicking button 'Send Options' from toolbar.
I've try to run 'SelectStyleSheet' function from codeunit 1. 'Program selection' form is runnig but when I click on 'send' button nothing is happened.
In codeunit 1 is function LunchApp, but I don't know how to init parameters to this this ('DataXml' and 'ApplicationXML').
Does anyone knows how to solve it?
Thanks!
I'm using NAV 5.0sp1 with StyleSheet Tool 1.1.
I must run 'Program Selection' form from my own button on my form, to send my form to Ms Word/Excel (exsactly like clicking button 'Send Options' from toolbar.
I've try to run 'SelectStyleSheet' function from codeunit 1. 'Program selection' form is runnig but when I click on 'send' button nothing is happened.
In codeunit 1 is function LunchApp, but I don't know how to init parameters to this this ('DataXml' and 'ApplicationXML').
Does anyone knows how to solve it?
Thanks!
0
Comments
-
Part of this functionality is done by the client itself. You cannot fully replicate the Send to functionality through C/AL code...0
-
kine wrote:Part of this functionality is done by the client itself. You cannot fully replicate the Send to functionality through C/AL code...
I don't want to replace this functionality.
I want only add to my button the same behaviour as is in toolbar, because my client don't want to use the toolbar to send forms to MS Office.0 -
And it is what I mean. I am not talking about replace, but replicate... Only the button on toolbar generates the correct data for the function in CU1. The functions in CU1 are interface between C/AL world and the NAV client itself. And the data passed into this function are generated directly by the NAV client (fin[sql].exe). You cannot make same thing through C/AL... But you can use SendKeys to simulate the shortcuts to run the standard function (Ctrl+E or Ctrl+W).0
-
ooo, sorry.
Than you for info0
Categories
- All Categories
- 75 General
- 75 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
