How manually create Excel Template with Sections?

KeeperRU
Member Posts: 58
Hello, I investigating Excel Templates..... I wonder, how "Import Template" works?
Table 14919 :
I want to Import my own Template, but how NAV find out my Sections Height?
How can I mark my sections in my excel template file? So NAV could properly import it.
Any link on MSDN?
Table 14919 :
LOCAL LoadSheetSectionHeights(ServerFileName : Text;SheetName : Text) List := ReportBuilder.GetReportSectionHeights(ServerFileName,SheetName); FOR I := 0 TO List.Count - 1 DO BEGIN SectionInfo := List.Item(I); ExcelTemplateSection.INIT; ExcelTemplateSection."Template Code" := Code; ExcelTemplateSection."Sheet Name" := SheetName; ExcelTemplateSection.Name := SectionInfo.Name; ExcelTemplateSection.Height := SectionInfo.Height; ExcelTemplateSection.INSERT; END;
I want to Import my own Template, but how NAV find out my Sections Height?
How can I mark my sections in my excel template file? So NAV could properly import it.
Any link on MSDN?
0
Best Answer
-
OK, i get it myself.5
Answers
-
OK, i get it myself.5
-
Would be nice if you leave here info where to look for others who looks for same info laterIt is hard to swim against self bloodstream... (c) Old, experienced kamikadze.0
-
To prepare your Excel Template - You should use Named Range in Excel.
http://www.excel-easy.com/examples/names-in-formulas.html
For example - any standard NAV report, open Excel Template from NAV and CTRL+F3.
You should create Names for sections (Header, Body, Footer etc) and fields to export data (SellerName, PostingDate).
Then you could easily export data from NAV:ExcelReportBuilderMgr.AddSection('REPORTHEADER'); ExcelReportBuilderMgr.AddDataToSection('SellerName',HeaderDetails[1]); ......
and so on.
0
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
- 320 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