Excel Buffer/Automation
Hohenzollern
Member Posts: 18
Hi to all
Can someone explain me please, how to use Automation? For example I have such simple code (using excel buffer, as u see).
Can someone explain me please, how to use Automation? For example I have such simple code (using excel buffer, as u see).
WITH ExcelBuffer DO BEGIN
RESET;
DELETEALL;
SETRANGE("No.",Rec."Accountable person");
NewRow;
AddColumn('First Name',FALSE,'',FALSE,FALSE,FALSE,'');
AddColumn('Middle Name',FALSE,'',FALSE,FALSE,FALSE,'');
AddColumn('Last Name',FALSE,'',FALSE,FALSE,FALSE,'');
CreateBook();
CreateSheet('Sheet 1','Report',COMPANYNAME,USERID);
GiveUserControl();
END;
How can I do the same using Automation? I was looking through the forum but didn't find what can help me. Thx for any links. 0
Comments
-
It is not clear what you mean by "using Automation"... the used functions are using the Excel automation libraries to do the export. What you want to know more? Just look into the functions what they are doing...0
-
Take a look at the code in the Excel Buffer table, that is where the actual automation takes place.0
-
I was talking about smth like 'Microsoft Excel 14.0 Object Library'. Just cannot find simple examples of how to use it's functions. But I succeed) Thx for your answers.
Anyway, If there is still something I can learn/read, mb some basics, I will be glad to see them. Best regards.0 -
I know what automation is. Take a look at the code in the Excel Buffer table, that is where you will find the actual automation code. For instance in the CreateBook function, you will find the code to instantiate the Excel application, and a reference to the methods of this variable.0
-
This is the documentation I use whenever I'm in need of doing something with Excel or Word in C/SIDE: http://docs.softartisans.com/officewrit ... ppobj.aspxBeautiful things can be performed using XSLT/XPATH/XML, Yes, I'm a geek0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 322 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

